Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ChangeFromDib Method
See Also 
Leadtools Namespace > RasterImage Class : ChangeFromDib Method



hdib
The DIB handle to be changed.
Changes a Windows device independent bitmap (DIB) to a LEAD RasterImage object.

Syntax

Visual Basic (Declaration) 
Public Shared Function ChangeFromDib( _
   ByVal hdib As IntPtr _
) As RasterImage
Visual Basic (Usage)Copy Code
Dim hdib As IntPtr
Dim value As RasterImage
 
value = RasterImage.ChangeFromDib(hdib)
C# 
public static RasterImage ChangeFromDib( 
   IntPtr hdib
)
C++/CLI 
public:
static RasterImage^ ChangeFromDib( 
   IntPtr hdib
) 

Parameters

hdib
The DIB handle to be changed.

Return Value

The newly created RasterImage object.

Example

For an example, refer to ChangeToDib.

Remarks

This method results in only one copy of the image, and it invalidates the DIB handle.

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.

The following formats are the FOURCC formats that LEADTOOLS currently supports:

  • YVU9 (YUV9)
  • I420 (YUV12)
  • YUV2
  • YV12
  • IF09
  • IYUV
  • UYVY
  • cyuv
  • YUY2
  • YVYU
  • Y41P
  • Y211
  • Y41T
  • Y42T

This function does not support signed images.

For more information on DDBs and DIBs, refer to Using DIBs, DDBs, and the Clipboard.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also