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
SourceReadOnlyMemory<byte>The image as it was loaded: a PNG or JPEG, possibly turned by its EXIF orientation.
PixelWidthintHow many pixels across the image should be, the right way up.
PixelHeightintHow many pixels down.
Qualityint?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
PixelWidth
How many pixels across the image should be, the right way up.
public int PixelWidth { get; init; }
Property Value
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; }