This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, December 10, 2008 6:14:39 AM(UTC)
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.
#2
Posted
:
Thursday, December 11, 2008 3:32:25 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
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.