Page 1 of 1

FileCreate + FileAddPicture

Posted: Tue Aug 10, 2004 5:53 pm
by Patrick
Hi,

I use your DLL for a while on Windows 98 and it is really a good product (I use the release 1.90 with no problem for my usage).

My question is relative to the functions gflFileCreate, gflFileAddPicture and gflFileClose.

I have 2 icon files (.ico) and I want to create a single icon file containing these 2 icons.

First, I call gflFileCreate with the FormatIndex of the save_params structure filled with 20 (which is the format index for the .ico format).

I receive an error code "Bad format index" !

Why ?

Thanks for your help

P.S. The destination file doesn't exists before the call.

(Je suis Français mais ce forum étant tout en Anglais je poste en Anglais malgrè une maitrise aléatoire de la langue ...)

Re: FileCreate + FileAddPicture

Posted: Wed Aug 11, 2004 9:12 am
by xnview
Patrick wrote:I use your DLL for a while on Windows 98 and it is really a good product (I use the release 1.90 with no problem for my usage).

My question is relative to the functions gflFileCreate, gflFileAddPicture and gflFileClose.

I have 2 icon files (.ico) and I want to create a single icon file containing these 2 icons.
First, I call gflFileCreate with the FormatIndex of the save_params structure filled with 20 (which is the format index for the .ico format).
I receive an error code "Bad format index" !
Why ?
Currently gflFileCreate support only DCX/TIFF format.
Pierre.

Posted: Wed Aug 11, 2004 8:49 pm
by Patrick
OK, I understand ....

but, is it possible to create a TIFF file with 2 bitmaps (from the 2 .ico files) and after creating it to convert this TIFF file into a .ico file (with the 2 icon inside) ?

Thanks

Patrick

Posted: Thu Aug 12, 2004 6:18 am
by xnview
Patrick wrote:but, is it possible to create a TIFF file with 2 bitmaps (from the 2 .ico files) and after creating it to convert this TIFF file into a .ico file (with the 2 icon inside) ?
No, sorry.
Pierre.