LEADTOOLS Support
General
LEADTOOLS SDK Examples
example of L_CopyBitmap2() with uMemory : TYPE_USER
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, January 19, 2011 5:47:32 AM(UTC)
Groups: Registered
Posts: 3
Hi,
I have a pBitmap that I want to duplicate ( BitmapHandle and also duplicate the image bits).
The source of BITMAPHANDLE is TYPE_USER ( I maintain the memory buffer).
Could you show me a sample code how to duplicate it ( duplicate also the data/image bits) so to have destination also of type TYPE_USER.
Thanks,
Patrick
#2
Posted
:
Thursday, January 20, 2011 5:12:44 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Patrick,
The steps are:
- Call the L_CopyBitmap2 function with the TYPE_USER Flag.
- Allocate a memory buffer with the same size of the bitmap data and copy the pixel data to the new memory buffer.
- change the data pointer of the bitmap to the new memory buffer by using the L_SetBitmapDataPointer function.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
General
LEADTOOLS SDK Examples
example of L_CopyBitmap2() with uMemory : TYPE_USER
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.