←Select platform

FromDibPtr Method

Summary

Creates a new image from the specified Windows device independent bitmap (DIB) stored in an unmanaged pointer.

Syntax

C#
VB
WinRT C#
C++
public static Leadtools.RasterImage FromDibPtr(  
   IntPtr hdib 
) 
Public Shared Function FromDibPtr( _ 
   ByVal hdib As IntPtr _ 
) As Leadtools.RasterImage 
public static Leadtools.RasterImage FromDibPtr(  
   IntPtr hdib 
) 
 function Leadtools.RasterImage.FromDibPtr(  
   hdib  
) 
public: 
static Leadtools.RasterImage^ FromDibPtr(  
   IntPtr hdib 
)  

Parameters

hdib
Handle to the Windows DIB.

Return Value

The newly created RasterImage object.

Remarks

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.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools Assembly
Click or drag to resize