PngEncoder Class |
An ImageEncoder that will write Portable Network Graphics (PNG) images to a Stream.
Namespace: Atalasoft.Imaging.Codec
The PngEncoder type exposes the following members.
Name | Description | |
---|---|---|
PngEncoder |
Initializes a new instance of the PngEncoder class.
| |
PngEncoder(ComTextCollection) | Initializes a new instance of a PngEncoder specifying the COM Text metadata to save. | |
PngEncoder(Color, Double, Boolean, ComTextCollection) | Initializes a new instance of a %PngEncoder% specifying the background color, gamma, interlace, and COM
Text value to save. |
Name | Description | |
---|---|---|
BackgroundColor | Gets or sets the color to use as the default background color for Png images with alpha. | |
BackgroundIndex | Gets or sets the palette index or grayscale value to use as the default background color for colormapped
Png images with alpha. | |
ComText | Gets or sets the COM text metadata to save with the image. | |
Gamma | Gets or sets the gamma value to write to a PNG image. 0 will not write any value, 2.2 is a typical value
for PC's. Default 0. | |
Interlace | Gets or sets whether Png files are saved with a pixel row interlacing pattern. Defaults
False. | |
SupportedPixelFormats | Returns an array of pixel formats supported by this encoder. (Overrides ImageEncoderSupportedPixelFormats.) |
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsPixelFormatSupported | Returns true if the given PixelFormat can be encoded with the derived encoder. (Inherited from ImageEncoder.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save | Encode an %AtalaImage% as a Png image to a stream. (Overrides ImageEncoderSave(Stream, AtalaImage, ProgressEventHandler).) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
This ImageEncoder can be passed into the the AtalaImage or Workspace objects when saving to specify a PNG image.
If the image being saved contains a ColorProfile, it will be embedded within the file.