Page 1 of 1
how to save picture into JPEG2000 file format?
Posted: Wed Jan 02, 2008 9:05 am
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
Re: how to save picture into JPEG2000 file format?
Posted: Wed Jan 02, 2008 2:12 pm
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") ?
Posted: Wed Jan 02, 2008 5:56 pm
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
Posted: Thu Jan 03, 2008 10:03 am
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
Posted: Thu Jan 03, 2008 11:55 am
by londinium
Thanks
