Constructor ImageResult

Namespace
SoftZenPdf.Optimizer
Assembly
SoftZenPdf.Optimizer.dll

ImageResult(string, int, int, string, string, long, long, ImageOutcome, string?)

What an image processor did with one image, and its size before and after.

public ImageResult(string Handler, int Width, int Height, string Format, string OptimizedFormat, long OriginalBytes, long OptimizedBytes, ImageOutcome Outcome, string? Reason = null)

Parameters

Handler string

The handler that looked at the image.

Width int

The image's width in pixels.

Height int

The image's height in pixels.

Format string

How the image was stored, for example DCTDecode, FlateDecode or None.

OptimizedFormat string

How the image is stored now; differs from Format when it was converted, for example from FlateDecode to DCTDecode.

OriginalBytes long

The space the image took in the file before (data and dictionary), in bytes.

OptimizedBytes long

The space it takes now, in bytes; the same as OriginalBytes unless Outcome is Optimized.

Outcome ImageOutcome

What happened.

Reason string

What was done, or why an image was skipped, kept or failed.