Page 1 of 1

gflLoadBitmapFromHandle

Posted: Wed Oct 06, 2004 2:23 pm
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?

Re: gflLoadBitmapFromHandle

Posted: Wed Oct 06, 2004 2:40 pm
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.

gflLoadBitmapFromHandle

Posted: Wed Oct 06, 2004 3:08 pm
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!

Re: gflLoadBitmapFromHandle

Posted: Wed Oct 06, 2004 4:10 pm
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.

Re: gflLoadBitmapFromHandle

Posted: Wed Oct 06, 2004 4:25 pm
by Guest
Thank you for your answer.