Click or drag to resize

PngDecoder Class

An ImageDecoder used to read Portable Network Graphics (PNG) images from a Stream.

Inheritance Hierarchy
SystemObject
  Atalasoft.Imaging.CodecImageDecoder
    Atalasoft.Imaging.CodecPngDecoder

Namespace:  Atalasoft.Imaging.Codec
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public class PngDecoder : ImageDecoder

The PngDecoder type exposes the following members.

Constructors
  NameDescription
Public methodPngDecoder
Initializes a new instance of a PngDecoder.
Public methodPngDecoder(Double)
Initializes a new instance of a PcdDecoder with a specified screen gamma.
Top
Properties
  NameDescription
Public propertyScreenGamma
Gets or sets the screen gamma value that will be used to adjust the colors of a PNG image when read if the image contains gamma.
Public propertySetAlphaFromTransparentColor
Indicates whether or not the PngDcoder should set the alpha channel in the image using the Png file's transparent color.
Public propertySupportedImageType Obsolete.
Returns a Png ImageType enumeration value.
(Overrides ImageDecoderSupportedImageType.)
Public propertyTwoBytePerComponentSupport
Gets or sets a value indicating whether 16-bit per component images are read as 16 or 8-bit per component images.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetImageInfo
Retreive information from a Png image stored in a Stream without decoding the image data.
(Overrides ImageDecoderGetImageInfo(Stream).)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsValidFormat

Returns true if the specified Stream contains an Png image.

(Overrides ImageDecoderIsValidFormat(Stream).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Returns an AtalaImage from a Stream containing a Png encoded image.
(Overrides ImageDecoderRead(Stream, ProgressEventHandler).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
By default, when opening a Png image using the AtalaImage or Workspace objects, this decoder will automatically be selected from the RegisteredDecoders and does not have to be explicitly set.
See Also