Home | GR32_OrdinalMaps | TByteMap |
TByteMap.Assign
procedure Assign(Source: TPersistent); override;
Description
Copies data from another object, specified by the Source parameter.
This method supports following classes:
- nil – assigns an empty data array;
- TByteMap – copies data bytes from another byte map;
- TBitmap32 – transforms bitmap data using the ReadFrom method with ctWeightedRGB conversion type.
TByteMap also overrides the protected AssignTo method, making it possible to assign bitmaps from byte maps, so that both following lines are correct:
ByteMap.Assign(Bitmap32); // an analog to BM := Intensity(B32);
Bitmap32.Assign(ByteMap); // an analog to B32 := Gray32(BM);
See Also
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007