Graphisoft®

GX ModuleVersion: 16

GXPixelSizeFromPixelType

Returns the number of bits per pixel corresponding to a given GSPixelType.

    UInt32 GXPixelSizeFromPixelType (
      GSPixelType  pixelType
    );

Parameters

pixelType
Can be one of the following: GSPT_ARGB, GSPT_ALongRGB, GSPT_256Gray or GSPT_BlackWhite.

Return Values

The number of bits in a pixel. Can be 1, 8 or 32.

Requirements

Version:
GX 10 or later
Header:
Graphics2D.h
Import Library:
GXImp.lib
Module:
GX.dll [WIN], GX.framework [MAC]

See Also

Graphics functions, GXPixelTypeFromPixelSize