Creates a new image from the specified Windows device independent bitmap (DIB) stored in a managed array.
public static Leadtools.RasterImage FromDib(
IBuffer hdib,
int offset
)
Public Overloads Shared Function FromDib( _
ByVal hdib As IBuffer, _
ByVal offset As Integer _
) As Leadtools.RasterImage
public static Leadtools.RasterImage FromDib(
IBuffer hdib,
int offset
)
function Leadtools.RasterImage.FromDib(IBuffer,Int32)(
hdib ,
offset
)
public:
static Leadtools.RasterImage^ FromDib(
IBuffer^ hdib,
int offset
)
hdib
Data containing the Windows DIB.
offset
Byte offset into hdib where the data starts.
The newly created RasterImage object.
When this method is completed, there are two copies of the image in memory: the original DIB and the RasterImage it creates. Freeing one will not affect the other.
This method supports the standard DIB formats (BI_RGB and BI_BITFIELDS) as well as some FOURCC (Four Character Code) formats that some capture cards output.
These are the FOURCC that LEADTOOLS supports at the moment:
YVU9 (YUV9), I420 (YUV12), YUV2 , YV12 , IF09 , IYUV , UYVY , cyuv, YUY2, YVYU, Y41P, Y211, Y41T, Y42T.
This method does not support signed images.
For more information on DDBs and DIBs, refer to Using DIBs, DDBs, and the Clipboard.
Products |
Support |
Feedback: FromDib(IBuffer,Int32) Method - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.