gflLoadBitmapFromHandle

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

Moderators: helmut, XnTriq, xnview

Ash

gflLoadBitmapFromHandle

Post by Ash »

Hi,
VERY good soft (thank you), but very small 'help'.

I want to receive an information about load process and have a chance to abort it. I see the solution of this problem in use the 'gflLoadBitmapFromHandle' - function.

Question: in structure 'GFL_LOAD_PARAMS' -> fields ' (GFL_READ_CALLBACK) Read, Tell, Seek' : what is this functions prototype?
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: gflLoadBitmapFromHandle

Post by xnview »

Ash wrote:VERY good soft (thank you), but very small 'help'.
Thanks ;-)
I want to receive an information about load process and have a chance to abort it. I see the solution of this problem in use the 'gflLoadBitmapFromHandle' - function.
Question: in structure 'GFL_LOAD_PARAMS' -> fields ' (GFL_READ_CALLBACK) Read, Tell, Seek' : what is this functions prototype?
You can't with gflLoadBitmapFromHandle! These functions are used when you want to use your own IO functions.
The next release will have a callback to be able to abort a load process.
Pierre.
Ash

gflLoadBitmapFromHandle

Post by Ash »

You wrote:
These functions are used when you want to use your own IO functions
well, if 'read' function will put in buffer only first 10K (all *.jpg file is 100K), what gflLoadBitmapFromHandle will do?
(i hope, it request last 90K on next step)

... by the way.... the "Tell"-function: what it doing?

Thank you!
User avatar
xnview
Author of XnView
Posts: 45988
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: gflLoadBitmapFromHandle

Post by xnview »

Ash wrote:well, if 'read' function will put in buffer only first 10K (all *.jpg file is 100K), what gflLoadBitmapFromHandle will do?
(i hope, it request last 90K on next step)
No, read callback works like read/fread file IO.
... by the way.... the "Tell"-function: what it doing?
It's to know where we are in the data, like ftell.
Pierre.
Guest

Re: gflLoadBitmapFromHandle

Post by Guest »

Thank you for your answer.