gflLoadBitmapFromMemory error [Delphi]

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

Moderators: XnTriq, xnview

Post Reply
Nols Smit
Posts: 16
Joined: Mon Jun 27, 2005 6:38 pm

gflLoadBitmapFromMemory error [Delphi]

Post by Nols Smit » Mon Sep 19, 2005 2:42 pm

Hi,

I’m my Delphi program, I declared a memory stream:

Bigms: TmemoryStream;

The following statement in my program:
e := gflLoadBitmapFromMemory(Pchar(BigMS), BigMS.Size, gfl_bmp, lp, finfo);

give a compile error:
[Error] UserSessionUnit.pas(198): Undeclared identifier: 'gflLoadBitmapFromMemory'

But the following statement executes without a problem:
e := gflLoadBitmap(Pchar(ImageFilePathName), gfl_bmp, lp, finfo);

(I can't read the image file directly because it is a web application, created by using the IntraWeb components of AtoZedSoftware)


Any suggestions?


Nols Smit

User avatar
xnview
Author of XnView
Posts: 31738
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: gflLoadBitmapFromMemory error [Delphi]

Post by xnview » Tue Sep 20, 2005 7:59 am

Nols Smit wrote:Hi,

I’m my Delphi program, I declared a memory stream:

Bigms: TmemoryStream;

The following statement in my program:
e := gflLoadBitmapFromMemory(Pchar(BigMS), BigMS.Size, gfl_bmp, lp, finfo);

give a compile error:
[Error] UserSessionUnit.pas(198): Undeclared identifier: 'gflLoadBitmapFromMemory'

But the following statement executes without a problem:
e := gflLoadBitmap(Pchar(ImageFilePathName), gfl_bmp, lp, finfo);

(I can't read the image file directly because it is a web application, created by using the IntraWeb components of AtoZedSoftware)


Any suggestions?
Yes normal, i forgot to add this function to the delphi wrapper.
Pierre.

Post Reply