C# (CSharp) Hjg.Pngcs PngReader - 23 Beispiele gefunden. Dies sind die am besten bewerteten C# (CSharp) Beispiele für die Hjg.Pngcs.PngReader, die aus Open Source-Projekten extrahiert wurden. Sie können Beispiele bewerten, um die Qualität der Beispiele zu verbessern.
The typical reading sequence is as follows: 1. At construction time, the header and IHDR chunk are read (basic image info) 2 (Optional) you can set some global options: UnpackedMode CrcCheckDisabled 3. (Optional) If you call GetMetadata() or or GetChunksLisk() before reading the pixels, the chunks before IDAT are automatically loaded and available 4a. The rows are read, one by one, with the ReadRowXXX methods: (ReadRowInt() , ReadRowByte(), etc) in order, from 0 to nrows-1 (you can skip or repeat rows, but not go backwards) 4b. Alternatively, you can read all rows, or a subset, in a single call: see ReadRowsInt(), ReadRowsByte() In general this consumes more memory, but for interlaced images this is equally efficient, and more so if reading a small subset of rows. 5. Read of the last row automatically loads the trailing chunks, and ends the reader. 6. End() forcibly finishes/aborts the reading and closes the stream