Class PNGFile
Represents the binary view of a PNG file.
Inherited Members
Namespace: ExifLibrary
Assembly: ExifLibrary.dll
Syntax
public class PNGFile : ImageFile
Constructors
| Improve this Doc View SourcePNGFile(MemoryStream, Encoding)
Initializes a new instance of the PNGFile class from the specified data stream.
Declaration
protected PNGFile(MemoryStream stream, Encoding encoding)
Parameters
Type | Name | Description |
---|---|---|
System.IO.MemoryStream | stream | A stream that contains image data. |
System.Text.Encoding | encoding | The encoding to be used for text metadata when the source encoding is unknown. |
Properties
| Improve this Doc View SourceChunks
Gets or sets the chunks contained in the PNGFile.
Declaration
public List<PNGChunk> Chunks { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<PNGChunk> |
Methods
| Improve this Doc View SourceCrush()
Decreases file size by removing all ancillary chunks.
Declaration
public override void Crush()
Overrides
| Improve this Doc View SourceSaveInternal(MemoryStream)
Saves the ImageFile to the given stream.
Declaration
protected override void SaveInternal(MemoryStream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.MemoryStream | stream | The data stream used to save the image. |