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
HandlerstringThe handler that looked at the image.
WidthintThe image's width in pixels.
HeightintThe image's height in pixels.
FormatstringHow the image was stored, for example
DCTDecode,FlateDecodeorNone.OptimizedFormatstringHow the image is stored now; differs from
Formatwhen it was converted, for example fromFlateDecodetoDCTDecode.OriginalByteslongThe space the image took in the file before (data and dictionary), in bytes.
OptimizedByteslongThe space it takes now, in bytes; the same as
OriginalBytesunlessOutcomeis Optimized.OutcomeImageOutcomeWhat happened.
ReasonstringWhat was done, or why an image was skipped, kept or failed.