lazarus/components/onlinepackagemanager/vst/opkman_VTGraphics.pas
balazs ccd6e22a24 Online package manager. Initial commit.
git-svn-id: trunk@53390 -
2016-11-20 19:57:34 +00:00

33 lines
872 B
ObjectPascal

unit opkman_VTGraphics;
{$mode delphi}
interface
uses
opkman_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, {%H-}Height, Row: Integer): Pointer;
function GetBitmapBitsFromBitmap(Bitmap: HBITMAP): Pointer;
implementation
{$i opkman_vtgraphicsi.inc}
end.