Table of Contents

Struct ImageProcessing

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.dll

What an IImageProcessor is asked to make of an image.

public readonly record struct ImageProcessing : IEquatable<ImageProcessing>
Implements
Inherited Members

Constructors

ImageProcessing(ReadOnlyMemory<byte>, int, int, int?)

What an IImageProcessor is asked to make of an image.

public ImageProcessing(ReadOnlyMemory<byte> Source, int PixelWidth, int PixelHeight, int? Quality)

Parameters

Source ReadOnlyMemory<byte>

The image as it was loaded: a PNG or JPEG, possibly turned by its EXIF orientation.

PixelWidth int

How many pixels across the image should be, the right way up.

PixelHeight int

How many pixels down.

Quality int?

The quality, from 1 to 100, to compress at, or null to keep the image lossless. An image with transparency is kept lossless whatever the quality.

Properties

PixelHeight

How many pixels down.

public int PixelHeight { get; init; }

Property Value

int

PixelWidth

How many pixels across the image should be, the right way up.

public int PixelWidth { get; init; }

Property Value

int

Quality

The quality, from 1 to 100, to compress at, or null to keep the image lossless. An image with transparency is kept lossless whatever the quality.

public int? Quality { get; init; }

Property Value

int?

Source

The image as it was loaded: a PNG or JPEG, possibly turned by its EXIF orientation.

public ReadOnlyMemory<byte> Source { get; init; }

Property Value

ReadOnlyMemory<byte>