Home | GR32 |
TDrawMode
type TDrawMode = (dmOpaque, dmBlend, dmCustom, dmTransparent);
Description
TDrawMode defines how the bitmap is combined with the background. This is the type for DrawMode property of TBitmap32 class, and it is also passed as parameter in BlockTransfer and StretchTransfer functions.
- dmOpaque – a color information from the foreground image completely replaces the background data;
- dmBlend – foreground and background colors are blended together using per-pixel opacity of the foreground bitmap (stored in its alpha channel), multiplied by its MasterAlpha;
- dmCustom – colors are mixed using OnPixelCombine event, that is essentially a call-back function allowing for any custom blending routine.
- dmTransparent – color key transparency: any pixel that matches TBitmap32.OuterColor is treated as transparent.
See Also
BlockTransfer, TBitmap32.DrawMode, TBitmap32.MasterAlpha, TBitmap32.OnPixelCombine, TBitmap32.OuterColor, StretchTransfer, TBitmap32
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007