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?
gflLoadBitmapFromHandle
Moderators: helmut, XnTriq, xnview
-
- Author of XnView
- Posts: 45988
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: gflLoadBitmapFromHandle
ThanksAsh wrote:VERY good soft (thank you), but very small 'help'.

You can't with gflLoadBitmapFromHandle! These functions are used when you want to use your own IO functions.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?
The next release will have a callback to be able to abort a load process.
Pierre.
gflLoadBitmapFromHandle
You wrote:
(i hope, it request last 90K on next step)
... by the way.... the "Tell"-function: what it doing?
Thank you!
well, if 'read' function will put in buffer only first 10K (all *.jpg file is 100K), what gflLoadBitmapFromHandle will do?These functions are used when you want to use your own IO functions
(i hope, it request last 90K on next step)
... by the way.... the "Tell"-function: what it doing?
Thank you!
-
- Author of XnView
- Posts: 45988
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: gflLoadBitmapFromHandle
No, read callback works like read/fread file IO.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)
It's to know where we are in the data, like ftell.... by the way.... the "Tell"-function: what it doing?
Pierre.