Enumeration Caseswift-png 4.4.5PNG

    v2

    Pixels are stored as 2-bit grayscale values.

    PNG.Format.Pixel.swift:25
    case v2

    An image with this pixel format has a bit depth and a color depth of 2. Each sample is in the range 0 ... 3.

    Other cases

    • case v1

      Pixels are stored as 1-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 va8

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

    • 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.