Table of Contents

Class ImageSaveOptions

Namespace
NAPS2.Images
Assembly
NAPS2.Images.dll
public record ImageSaveOptions : IEquatable<ImageSaveOptions>
Inheritance
ImageSaveOptions
Implements
Inherited Members

Properties

PixelFormatHint

The preferred pixel format that should be used for saving. If not specified, the image's LogicalPixelFormat will be preferred to minimize disk space used.

This will not result in a loss of information, e.g. if you set this to BW1 but your image has color in it, it will have no effect. If you want to change the color information, use CopyWithPixelFormat before saving.
public ImagePixelFormat PixelFormatHint { get; init; }

Property Value

ImagePixelFormat

Quality

The quality parameter for JPEG compression, if applicable. -1 for default.

public int Quality { get; init; }

Property Value

int