LEADTOOLS (Leadtools assembly)
LEAD Technologies, Inc

FromDib(IBuffer,Int32) Method






Data containing the Windows DIB.
Byte offset into hdib where the data starts.
Creates a new image from the specified Windows device independent bitmap (DIB) stored in a managed array. .NET support WinRT support
Syntax
public static RasterImage FromDib( 
   IBuffer hdib,
   int offset
)
'Declaration
 
Public Overloads Shared Function FromDib( _
   ByVal hdib As IBuffer, _
   ByVal offset As Integer _
) As RasterImage
'Usage
 
Dim hdib As IBuffer
Dim offset As Integer
Dim value As RasterImage
 
value = RasterImage.FromDib(hdib, offset)
public static RasterImage FromDib( 
   IBuffer hdib,
   int offset
)
 function Leadtools.RasterImage.FromDib(IBuffer,Int32)( 
   hdib ,
   offset 
)
public:
static RasterImage^ FromDib( 
   IBuffer^ hdib,
   int offset
) 

Parameters

hdib
Data containing the Windows DIB.
offset
Byte offset into hdib where the data starts.

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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImage Class
RasterImage Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.