Show / Hide Table of Contents

Class PNGFile

Represents the binary view of a PNG file.

Inheritance
System.Object
ImageFile
PNGFile
Inherited Members
ImageFile.Format
ImageFile.Properties
ImageFile.Thumbnail
ImageFile.Item[Int32]
ImageFile.Encoding
ImageFile.Errors
ImageFile.Save(String)
ImageFile.Save(Stream)
ImageFile.SaveAsync(String)
ImageFile.SaveAsync(Stream)
ImageFile.FromFile(String)
ImageFile.FromFile(String, Encoding)
ImageFile.FromStream(Stream)
ImageFile.FromStream(Stream, Encoding)
ImageFile.FromBuffer(Byte[])
ImageFile.FromBuffer(Byte[], Encoding)
ImageFile.FromFileAsync(String)
ImageFile.FromFileAsync(String, Encoding)
ImageFile.FromStreamAsync(Stream)
ImageFile.FromStreamAsync(Stream, Encoding)
ImageFile.FromStreamInternal(MemoryStream, Encoding)
Namespace: ExifLibrary
Assembly: ExifLibrary.dll
Syntax
public class PNGFile : ImageFile

Constructors

| Improve this Doc View Source

PNGFile(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 Source

Chunks

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 Source

Crush()

Decreases file size by removing all ancillary chunks.

Declaration
public override void Crush()
Overrides
ImageFile.Crush()
| Improve this Doc View Source

SaveInternal(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.

Overrides
ImageFile.SaveInternal(MemoryStream)
Back to top Copyright © 2019 Özgür Özçıtak