getBitsPerPixel static method

Future<int> getBitsPerPixel(
  1. int format
)

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

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

Implementation

static Future<int> getBitsPerPixel(int format) async {
  return await _channel.$getBitsPerPixel(format) as int;
}