getBitsPerPixel

fun getBitsPerPixel(format: Int): Int

Use this function to retrieve the number of bits per pixel of an ImageFormat.

Return

the number of bits per pixel of the given format or -1 if the format doesn't exist or is not supported.

Parameters

format