Skip to content

ImageProcessingOptions ​

Namespace: MJCZone.MediaMatic.Models

Assembly: MJCZone.MediaMatic

Summary ​

Options for processing existing images.

public

Contents ​

Constructors (1) | Methods (4) | Properties (11)

Constructors ​

ImageProcessingOptions ​

csharp
ImageProcessingOptions()

Methods ​

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

Width ​

Gets or sets the target width (null to maintain aspect ratio).

Type: int?

Height ​

Gets or sets the target height (null to maintain aspect ratio).

Type: int?

Format ​

Gets or sets the target format (null to keep original format).

Type: ImageFormat?

Quality ​

Gets or sets the quality (1-100). Default is 85.

Type: int

ResizeMode ​

Gets or sets the resize mode for fitting content to target dimensions. Default is Fit (maintain aspect ratio, scale to fit within bounds).

Type: ResizeMode

FocalPoint ​

Gets or sets the focal point for smart cropping (x, y as percentage 0-1). Null means center crop.

Type: FocalPoint?

PreserveExif ​

Gets or sets a value indicating whether to preserve EXIF metadata. Default is true.

Type: bool

AutoOrient ​

Gets or sets a value indicating whether to auto-orient based on EXIF. Default is true.

Type: bool

StripMetadata ​

Gets or sets a value indicating whether to strip all metadata. Default is false.

Type: bool

BackgroundColor ​

Gets or sets the background color for padding (hex format, e.g., "#FFFFFF"). Default is white.

Type: string

Sharpen ​

Gets or sets a value indicating whether to apply sharpening after resize. Default is false.

Type: bool