Assign

Graphics32

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

ReadFrom, TByteMap