PeachImage

PeachImage.ImageInfo

ImageInfo(int, int, PixelFormat, string, bool, bool, bool, bool, bool) Constructor

Lightweight image dimensions/format info obtainable without decoding full pixel data.

public ImageInfo(int Width, int Height, PeachImage.PixelFormat PixelFormat, string FormatName, bool IsAnimated=false, bool HasAlpha=false, bool IsAdobeInvertedCmyk=false, bool IsYcck=false, bool IsLosslessEncoding=false);

Parameters

Width System.Int32

The image width in pixels.

Height System.Int32

The image height in pixels.

PixelFormat PixelFormat

The pixel format a full decode would produce.

FormatName System.String

The name of the format that produced this info, e.g. "jpeg".

IsAnimated System.Boolean

Whether the source is a multi-frame animation. For an animated source, Load(Stream, DecoderOptions) would decode only its first frame (see IsAnimated) — use AnimatedImage to decode every frame.

HasAlpha System.Boolean

Whether the source actually carries an alpha channel — see HasAlpha.

IsAdobeInvertedCmyk System.Boolean

JPEG/Adobe-specific: whether a direct-CMYK source stores its samples in Adobe’s inverted convention (255-x). Always false for non-JPEG formats and non-CMYK JPEGs. Relevant to KeepAdobeCmykInverted — by default, a full decode de-inverts these bytes back to the standard CMYK convention regardless of this flag.

IsYcck System.Boolean

JPEG/Adobe-specific: whether a 4-component source is really YCCK under the hood (Adobe APP14 transform=2) rather than direct CMYK. Always false for non-JPEG formats and non-YCCK JPEGs. Relevant to DecodeRawYcck — by default, a full decode converts YCCK to CMYK regardless of this flag.

IsLosslessEncoding System.Boolean

Whether the source’s pixel data was encoded losslessly by its original codec, so a caller can avoid silently re-encoding an already-lossy source under a full-fidelity assumption. Semantics are format-specific: