lazarus-ccr/components/virtualtreeview-new/branches/4.8/VTGraphics.pas
blikblum 3c284d1f60 Created branch 4.8.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1121 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2010-01-07 22:49:28 +00:00

33 lines
846 B
ObjectPascal
Executable File

unit VTGraphics;
{$mode delphi}
interface
uses
DelphiCompat, Types, LCLIntf, LCLType;
type
// Describes the mode how to blend pixels.
TBlendMode = (
bmConstantAlpha, // apply given constant alpha
bmPerPixelAlpha, // use alpha value of the source pixel
bmMasterAlpha, // use alpha value of source pixel and multiply it with the constant alpha value
bmConstantAlphaAndColor // blend the destination color with the given constant color und the constant alpha value
);
procedure AlphaBlend(Source, Destination: HDC; const R: TRect; const Target: TPoint; Mode: TBlendMode; ConstantAlpha, Bias: Integer);
function CalculateScanline(Bits: Pointer; Width, Height, Row: Integer): Pointer;
function GetBitmapBitsFromBitmap(Bitmap: HBITMAP): Pointer;
implementation
{$i vtgraphicsi.inc}
end.