How to use gflLoadBitmapFromMemory

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
Sturman
Posts: 2
Joined: Fri Nov 10, 2006 12:50 pm

How to use gflLoadBitmapFromMemory

Post by Sturman »

How to use gflLoadBitmapFromMemory with Delphi's TMemoryStream?

Thank You
Sturman
Posts: 2
Joined: Fri Nov 10, 2006 12:50 pm

Post by Sturman »

make it myself
in module libgfl.pas added:

function gflLoadBitmapFromMemory(const data: pointer;data_length:integer;length:integer; var bitmap: PGFL_BITMAP;
var params: TGFL_LOAD_PARAMS;
var info: TGFL_FILE_INFORMATION): GFL_ERROR; stdcall;

in program:
...
var ms: TMemoryStream;
...
gflLoadBitmapFromMemory(ms.Memory, ms.Size, gfl_bmp, lp, finfo);

it work!
Post Reply