Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, January 19, 2011 5:47:32 AM(UTC)
patrick.verleysen

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, January 20, 2011 5:12:44 AM(UTC)
Maen Hasan

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.119 seconds.