FileCreate + FileAddPicture

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

Moderators: XnTriq, helmut, xnview

Patrick

FileCreate + FileAddPicture

Post 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 ...)
User avatar
xnview
Author of XnView
Posts: 43163
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: FileCreate + FileAddPicture

Post 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.
Patrick

Post 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
User avatar
xnview
Author of XnView
Posts: 43163
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Post 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.