ImageGear Professional for Windows ActiveX
RasterSizeGet Method

 

Description:

Calculates the size of a raster in bytes based on a specified raster width and number of bits per pixel. The size is calculated assuming that the raster uses DWORD-padding as is the case in standard DIB format. Also, bit counts of 9-15 are treated as 16. The calculation is (Width * BitCount) / 8, with DWORD padding.

Syntax:

      RasterSizeGet(Width as Long, BitCount as Long) as Long

Parameters:

Name Description
Width Width of raster in pixels
BitCount Number of bits per pixel

Return Value:

Size of raster in bytes.

Bits Per Pixel:

N/A

Sample:

None

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback