Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.28
|
Leadtools Namespace > RasterImage Class > FromDib Method : FromDib(IntPtr) Method |
public static RasterImage FromDib( IntPtr hdib )
'Declaration
Public Overloads Shared Function FromDib( _ ByVal hdib As IntPtr _ ) As RasterImage
'Usage
Dim hdib As IntPtr Dim value As RasterImage value = RasterImage.FromDib(hdib)
public static RasterImage FromDib( IntPtr hdib )
+ (nullable LTRasterImage *)fromDib:(LTHandle *)dib error:(NSError **)error
function Leadtools.RasterImage.FromDib(IntPtr)( hdib )
public: static RasterImage^ FromDib( IntPtr hdib )
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.