Graphisoft®

GX ModuleVersion: 16

GXPixelTypeFromPixelSize

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

    GSPixelType GXPixelTypeFromPixelSize (
      UInt32   pixelSize
    );

Parameters

pixelSize
Size of a pixel in bits. Can be 1, 8 or 32.

Return Values

GSPT_BlackWhite, GSPT_256Gray or GSPT_ARGB.

Requirements

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

See Also

Graphics functions, GXPixelSizeFromPixelType