We're trying to use LTISceneBuffer::exportData() to export to a Windows RGB dib section. It works fine with 8 bit MrSID files but not with 16 bit MrSID files.
The call looks like this:
scenebuff.exportData((void *&)pBits,3,LizardTech::LTISceneBuffer::addAlignment(rectImage.Width() * 3,sizeof(DWORD)),1);
We expected that exportData() would output the data in the specified format (24 bits per pixel) but the end result is garbage - pretty colors but garbage none the less.
Using C++ 6.0 with Geo SDK 4.0.9.713
Any help would be appreciated.
exportData problem
Moderator: jskiffington
2 posts
• Page 1 of 1
The LTISceneBuffer is designed around the data type of the data source -- in this case, 16-bit unsigned data.
If you want to convert your data to 8-bit, you need to add an image stage after the reader which does the conversion. I think there is some demo code showing how to do this in the examples directory.
-mpg
If you want to convert your data to 8-bit, you need to add an image stage after the reader which does the conversion. I think there is some demo code showing how to do this in the examples directory.
-mpg
- mpg
- Posts: 29
- Joined: Thu Jan 24, 2008 1:50 pm
- Location: LizardTech
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
- Forum index
- The team • Delete all board cookies • All times are UTC - 7 hours
