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, December 10, 2008 6:14:39 AM(UTC)
martin.pastor

Groups: Registered
Posts: 19


Dear Friends,

I am using LeadTools 13 Pro with Visual Studio 8 (with API). I need to load an image file and obtain the pointer to the pixels. How can I do? Is there somebody who can help me?

Thanks in advanced.

Martín Pastor.
 

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, December 11, 2008 3:32:25 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

Was thanked: 1 time(s) in 1 post(s)

Martín,

There are two ways to do this:
(1) You can create the Bitmap using the L_CreateBitmap and pass TYPE_USER to the uMemory parameter. Then pass your own pointer to the pData parameter. For more information, please read the following help topics in the LEADTOOLS API help file:
- L_CreateBitmap
- L_SetBitmapDataPointer

(2) After loading the image, use the L_GetBitmapRow function to copy the image data from the bitmap to a buffer that you specify.
For more information, please read the following help topic in the LEADTOOLS API help file:
- L_GetBitmapRow

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-2020, Yet Another Forum.NET
This page was generated in 0.036 seconds.