CopyComponents

procedure CopyComponents(
  Dst: TCustomBitmap32;
  Src: TCustomBitmap32;
  Components: TColor32Components); overload;

procedure CopyComponents(
  Dst: TCustomBitmap32;
  DstX: Integer;
  DstY: Integer;
  Src: TCustomBitmap32;
  SrcRect: TRect;
  Components: TColor32Components);overload;

Description

CopyComponents copies the provided TColor32Components from Source to Destination (read: no blending etc. is involved). The first version doesn't take specific source and destination settings and will therefore resize (and implicitly clear) destination so it is same size as the source. The second version will not modify size of the destination and therefore leaves the components not overwritten by the operation untouched.

See Also

TCustomBitmap32, Color Types, Rectangle Types, ApplyBitmask