Function

Cogl-18Coglpixel_format_get_bytes_per_pixel

  • Queries the number of bytes per pixel for a given format in the given plane.

    Parameters

    • format: Cogl.PixelFormat

      The pixel format

    • plane: number

      The index of the plane (should not be more than the number of planes in the given format).

    Returns number

    The number of bytes per pixel in the given format's given plane.