CoronaExternalFormatBPP()

Revision Release 2022.3683
Keywords iOS, Solar2D Native, C, CoronaGraphics.h, CoronaExternalFormatBPP
See also CoronaGraphics.h
Corona C Functions

Overview

Helper function which returns the number of bytes-per-pixel (BPP) that the given bitmap format has. For example, this function will return 4 for a kExternalBitmapFormat_RGBA format, 3 for a kExternalBitmapFormat_RGB format, and 1 for a kExternalBitmapFormat_Mask format.

Syntax

int CoronaExternalFormatBPP( CoronaExternalBitmapFormat format )
format

The pixel format to be queried for how many bytes-per-pixel it has.