how to save picture into JPEG2000 file format?

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

Moderators: helmut, XnTriq, xnview

Post Reply
londinium
Posts: 4
Joined: Mon Jul 30, 2007 9:47 am

how to save picture into JPEG2000 file format?

Post by londinium »

Good day for all users of this excellent library!

At first execuse me my English. It is not my native language, so I can do different errors. My question is - I want to use GFL SDK 2.66 to save picture into JPEG2000 file format, I have found that library Xjp2.dll is needed to support this format. But how can I use this library? I have called function _gflSetPluginsPathname in my code before calling _gflLibraryInit. What have I to do after this?

Thank you a lot for your answers.

Londinium
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: how to save picture into JPEG2000 file format?

Post by xnview »

londinium wrote:Good day for all users of this excellent library!

At first execuse me my English. It is not my native language, so I can do different errors. My question is - I want to use GFL SDK 2.66 to save picture into JPEG2000 file format, I have found that library Xjp2.dll is needed to support this format. But how can I use this library? I have called function _gflSetPluginsPathname in my code before calling _gflLibraryInit. What have I to do after this?

Thank you a lot for your answers.

Londinium
gflSetPluginsPathname and gflLibraryInit, which number do you have gffFormatGetIndex("jp2") ?
Pierre.
londinium
Posts: 4
Joined: Mon Jul 30, 2007 9:47 am

Post by londinium »

Thanks a lot for answer. I have called _gflSetPluginsPathname, then _gflLibraryInit and then _gflGetFormatIndexByName("jp2") and obtained FormatIndex=138. Then I have used function _gflSaveBitmap and normally saved bitmap into JPEG2000 format.
Now I have one small question. According to documentation for JPEG I can change the following parameters of GFL_SAVE_PARAMS structure: Quality,Progressive and OptimizeHuffmanTable and what about JPEG2000? What parameters of GFL_SAVE_PARAMS I can change if necessary?

Thanks a lot
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

londinium wrote:Thanks a lot for answer. I have called _gflSetPluginsPathname, then _gflLibraryInit and then _gflGetFormatIndexByName("jp2") and obtained FormatIndex=138. Then I have used function _gflSaveBitmap and normally saved bitmap into JPEG2000 format.
Now I have one small question. According to documentation for JPEG I can change the following parameters of GFL_SAVE_PARAMS structure: Quality,Progressive and OptimizeHuffmanTable and what about JPEG2000? What parameters of GFL_SAVE_PARAMS I can change if necessary?
JPEG2000 use only Quality
Pierre.
londinium
Posts: 4
Joined: Mon Jul 30, 2007 9:47 am

Post by londinium »

Thanks :D
Post Reply