LEADTOOLS Support
Imaging
Imaging SDK Questions
L_paintDC returns error -1 (ERROR_NO_MEMORY)
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, November 10, 2005 7:46:50 PM(UTC)
Groups: Registered
Posts: 2
I am using LeadTools 13 and Borland C++ Builder version 5.0 for
development. I am often getting error while using L_paintDC to
display the bitmap.the return code is (-1) i.e ERROR_NO_MEMORY. I am
using TImage Component of BCB. I am supplying the Image canvas handle
as hdc for L_PaintDC function. Still unable to track the problem. how
to solve this? anybody please..
#2
Posted
:
Friday, November 18, 2005 5:54:36 AM(UTC)
Groups: Tech Support
Posts: 23
Thanks: 3 times
L_PaintDC will return ERROR_NO_MEMORY if:
- It fails to allocate one or more data buffers during the render.
- The call to StretchDIBits fails.
to help you, we would need to know:
- the size of your image and bits per pixel
- the display device capabilities
- the current setting of L_SetDisplayMode
- the parameters you are passing
Ike
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
L_paintDC returns error -1 (ERROR_NO_MEMORY)
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.