DDF_SAME_SIZE =DDF_SAME_DRAW;
// display profiling
PD_CAN_DRAW_DIB= $0001;// if you can draw at all
PD_CAN_STRETCHDIB = $0002;// basicly RC_STRETCHDIB
PD_STRETCHDIB_1_1_OK = $0004;// is it fast?
PD_STRETCHDIB_1_2_OK = $0008;
PD_STRETCHDIB_1_N_OK = $0010;
type
hDrawDib = THandle;
TDrawDibTime = record
timeCount: LongInt;// see below
timeDraw: LongInt;// time to draw bitmaps
timeDecompress: LongInt; // time to decompress bitmaps
timeDither: LongInt;// time to dither bitmaps
timeStretch: LongInt;// time to stretch bitmaps
timeBlt: LongInt;// time to transfer bitmaps (BitBlt)
timeSetDIBits: LongInt; // time to transfer bitmaps (SetDIBits)
end;
function DrawDibBegin(hdd: hDrawDib; hDC: THandle; dxDest, dyDest: Integer;
var lpbi: TBitmapInfoHeader; dxSrc, dySrc: Integer; wFlags: UInt): Boolean; stdcall;
function DrawDibChangePalette(hdd: hDrawDib; iStart, iLen: Integer;
var lppe: TPaletteEntry): Boolean; stdcall;
function DrawDibClose(hdd: hDrawDib): Boolean; stdcall;
function DrawDibDraw(hdd: hDrawDib; hDC: THandle; xDst, yDst, dxDst, dyDst: Integer;
var lpbi: TBitmapInfoHeader; Bits: Pointer; xSrc, ySrc, dxSrc, dySrc: Integer;
wFlags: UInt): Boolean; stdcall;
function DrawDibEnd(hdd: hDrawDib): Boolean; stdcall;
function DrawDibGetBuffer(hdd: hDrawDib; var lpbi: TBitmapInfoHeader;
dwSize, dwFlags: DWord): Pointer; stdcall;
function DrawDibGetPalette(hdd: hDrawDib): THandle; stdcall;
function DrawDibOpen: hDrawDib; stdcall;
function DrawDibProfileDisplay(var lpbi: TBitmapInfoHeader): Boolean; stdcall;
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-27468-16.html
美国有他的算盘
不能认同
这生意多好做啊”