Enumeration Caseswift-png 4.4.5PNG

    va8

    Pixels are stored as 8-bit grayscale-alpha pairs.

    PNG.Format.Pixel.swift:85
    case va8

    An image with this pixel format has a bit depth and a color depth of 8, for a total stride of 16 bits. Each sample is in the range 0 ... 255.

    Other cases

    • case v1

      Pixels are stored as 1-bit grayscale values.

    • case v2

      Pixels are stored as 2-bit grayscale values.

    • case v4

      Pixels are stored as 4-bit grayscale values.

    • case v8

      Pixels are stored as 8-bit grayscale values.

    • case v16

      Pixels are stored as 16-bit grayscale values.

    • case rgb8

      Pixels are stored as 8-bit RGB triplets.

    • case rgb16

      Pixels are stored as 16-bit RGB triplets.

    • case indexed1

      Pixels are stored as 1-bit indices.

    • case indexed2

      Pixels are stored as 2-bit indices.

    • case indexed4

      Pixels are stored as 4-bit indices.

    • case indexed8

      Pixels are stored as 8-bit indices.

    • case va16

      Pixels are stored as 16-bit grayscale-alpha pairs.

    • case rgba8

      Pixels are stored as 8-bit RGBA quadruplets.

    • case rgba16

      Pixels are stored as 16-bit RGBA quadruplets.