CopyComponents

Graphics32

CopyComponents

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

procedure CopyComponents(
  Dst: TBitmap32;
  DstX: Integer;
  DstY: Integer;
  Src: TBitmap32;
  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

ApplyBitmask, TBitmap32, TColor32Components, TRect