ImageGear Professional v18.2 > API Reference Guide > Core Component API Reference > Core Component Objects > IGCoreCtl Control > IGCoreCtl Methods > RasterSizeGet Method |
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.
RasterSizeGet(Width as Long, BitCount as Long) as Long
Name | Description |
---|---|
Width | Width of raster in pixels |
BitCount | Number of bits per pixel |
Size of raster in bytes.
N/A
None