1) convert gfl_bmp to a Delphi TBitmap via the code given in the gfl Delphi sample
2) convert (fastlib does that) Delphi TBitmap to fastlib's DIB via essentially using the "GetDIBits"-API which expects a handle to a bitmap (hBmp):
Code: Select all
procedure TFastBMP.LoadFromhBmp(hBmp:Integer);
var Bmp: Windows.TBitmap; memDC: Integer;
begin
GetObject(hBmp,SizeOf(Bmp),@Bmp);
SetSize(Bmp.bmWidth,Bmp.bmHeight);
memDC:=CreateCompatibleDC(0);
SelectObject(memDC,hBmp);
GetDIBits(memDC,hBmp,0,Height,Bits,bmInfo,DIB_RGB_COLORS);
DeleteDC(memDC);
end;
If my thought is right i would be very happy about any information how to do so.
The question is: what steps do i need to operate on the results of "gflLoadBitmapIntoDIB" so that i can retrieve the gfl image equivalent to the API-call of "GetDIBits"?
Best Regards and many thanks for any hint

klaus2