ImageGear Professional for Windows ActiveX
PlatformDIBExport Method

Description:

Exports an image as a platform-specific DIB. It will perform whatever conversions are necessary in order to store the image in the specified DIB format.

Syntax:

      PlatformDIBExport( 
Format as enumIGDIBExportFormats,
UseAlpha as Boolean,
Left as Long,
Top as Long,
Width as Long,
Height as Long,
Buff as Long) as IIGPlatformDIB

Parameters:

Name Description
Format
  • IG_DIB_EXPORT_FORMAT_WINDOWS - Export DIB in standard Windows DIB format. 9-16bpp grayscale images cannot be exported in this format. CMYK images will be exported as 24bpp RGB.
  • IG_DIB_EXPORT_FORMAT_IG_LEGACY - Export DIB in ImageGear legacy format. In this format, DIB compression can be IG_BI_GRAYSCALE for 9-16bpp grayscale, in which case the DIB bit depth will be the actual bit depth from 9 to 16. Also, DIB compression can be IG_BI_CMYK for CMYK images, in which case the DIB bit depth will be 32.
UseAlpha If the image contains an alpha channel, and this is set to True, the alpha channel will be blended into the color channel(s) during export.
Left X coordinate of starting point for region to export.
Top Y coordinate of starting point for region to export.
Width Width of region to export. Specify 0 to export entire region.
Height Height of region to export. Specify 0 to export entire region.
Buff Location in memory of buffer to store DIB at. Pass 0 to have the IGPlatformDIB object automatically allocate a buffer.

Return Value:

Returns new instance of IGPlatformDIB Object.

Bits Per Pixel:

N/A

Sample:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback