This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, October 24, 2008 9:23:46 AM(UTC)
Groups: Registered
Posts: 1
I need to be able to load a bitmap from tiff data already loaded in memory is this possible?
#2
Posted
:
Sunday, October 26, 2008 5:18:38 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Yes. If you have the TIFF image loaded into Windows HGLOBAL heap memory, you can pass its handle to our LBuffer::SetHandle() function and then load the image into LBitmap using the LMemoryFile class.
If the data is in a memory location that you have the address to, but it's not a heap memory buffer, you can do one of 2 things:
1. Either copy it into an LBuffer object (using the appropriate constructor, for example) then load it.
2. Or if you don't want to copy it, you can use one of our DLL API functions that load from a memory address (pointer), such as L_LoadBitmapMemory.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.