Saving as multipage TIFF
Moderators: XnTriq, helmut, xnview
Saving as multipage TIFF
Hi, I want to know, how to save a couple of images into one TIFF file - using GflAx with VB or PHP. I know how to read images from multipages TIFF files. Thanks.
-
- Author of XnView
- Posts: 44920
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Saving as multipage TIFF
Only possible with libgfl.dllprasse wrote:Hi, I want to know, how to save a couple of images into one TIFF file - using GflAx with VB or PHP. I know how to read images from multipages TIFF files. Thanks.
Pierre.
Re: Saving as multipage TIFF
Can you please provide some sample code in C++ ? For example, if all images to be saved are stored in separate files.xnview wrote:Only possible with libgfl.dllprasse wrote:Hi, I want to know, how to save a couple of images into one TIFF file - using GflAx with VB or PHP. I know how to read images from multipages TIFF files. Thanks.
-
- Author of XnView
- Posts: 44920
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: Saving as multipage TIFF
Anonymous wrote:Can you please provide some sample code in C++ ? For example, if all images to be saved are stored in separate files.xnview wrote:Only possible with libgfl.dllprasse wrote:Hi, I want to know, how to save a couple of images into one TIFF file - using GflAx with VB or PHP. I know how to read images from multipages TIFF files. Thanks.
Code: Select all
{
GFL_LOAD_PARAMS load_option;
GFL_SAVE_PARAMS save_option;
GFL_FILE_INFORMATION file_info;
GFL_BITMAP *bitmap;
GFL_ERROR error;
GFL_HANDLE handle;
int i;
gflGetDefaultSaveParams( &save_option );
save_option.FormatIndex = gflGetFormatIndexByName("tiff");
error = gflFileCreate( &handle, dstfilename, count, &save_option ) )
for ( i=0; i<count; i++ )
{
gflGetDefaultLoadParams( &load_option );
error = gflLoadBitmap( filename[i], &bitmap, &load_option, &file_info );
gflFileAddPicture( handle, bitmap );
gflFreeBitmap( bitmap );
}
gflFileClose( handle );
}
Pierre.