ImageGear Professional for Windows ActiveX
PlatformDIBExportSizeCalc Method

Description:

Returns the size of a DIB (in bytes) that would be exported by PlatformDIBExport Method if the same parameters were used. You can use this to allocate your own storage for the DIB, but this is not required as the IGPlatformDIB Object can automatically allocate and free a buffer for the DIB.

Syntax:

      PlatformDIBExportSizeCalc(
Format as enumIGDIBExportFormats,
UseAlpha as Boolean,
Left as Long,
Top as Long,
Width as Long,
Height as Long) as Long

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.

Return Value:

Returns number of bytes needed to store exported DIB using given parameters.

Bits Per Pixel:

N/A

Sample:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback