Browse Source

Update PngChunkType values to hex

af/merge-core
Jason Nelson 8 years ago
parent
commit
fc6ceb8565
  1. 16
      src/ImageSharp/Formats/Png/PngChunkType.cs

16
src/ImageSharp/Formats/Png/PngChunkType.cs

@ -13,48 +13,48 @@ namespace SixLabors.ImageSharp.Formats.Png
/// common information like the width and the height of the image or
/// the used compression method.
/// </summary>
Header = 1229472850U, // IHDR
Header = 0x49484452U, // IHDR
/// <summary>
/// The PLTE chunk contains from 1 to 256 palette entries, each a three byte
/// series in the RGB format.
/// </summary>
Palette = 1347179589U, // PLTE
Palette = 0x504C5445U, // PLTE
/// <summary>
/// The IDAT chunk contains the actual image data. The image can contains more
/// than one chunk of this type. All chunks together are the whole image.
/// </summary>
Data = 1229209940U, // IDAT
Data = 0x49444154U, // IDAT
/// <summary>
/// This chunk must appear last. It marks the end of the PNG data stream.
/// The chunk's data field is empty.
/// </summary>
End = 1229278788U, // IEND
End = 0x49454E44U, // IEND
/// <summary>
/// This chunk specifies that the image uses simple transparency:
/// either alpha values associated with palette entries (for indexed-color images)
/// or a single transparent color (for grayscale and true color images).
/// </summary>
PaletteAlpha = 1951551059U, // tRNS
PaletteAlpha = 0x74524E53U, // tRNS
/// <summary>
/// Textual information that the encoder wishes to record with the image can be stored in
/// tEXt chunks. Each tEXt chunk contains a keyword and a text string.
/// </summary>
Text = 1950701684U, // tEXt
Text = 0x74455874U, // tEXt
/// <summary>
/// This chunk specifies the relationship between the image samples and the desired
/// display output intensity.
/// </summary>
Gamma = 1732332865U, // gAMA
Gamma = 0x67414D41U, // gAMA
/// <summary>
/// The pHYs chunk specifies the intended pixel size or aspect ratio for display of the image.
/// </summary>
Physical = 1883789683U, // pHYs
Physical = 0x70485973U // pHYs
}
}

Loading…
Cancel
Save