Table of Contents

Class ImageSharpImageContext

Namespace
NAPS2.Images.ImageSharp
Assembly
NAPS2.Images.ImageSharp.dll
public class ImageSharpImageContext : ImageContext
Inheritance
ImageSharpImageContext
Inherited Members

Constructors

ImageSharpImageContext()

public ImageSharpImageContext()

Properties

SupportsTiff

protected override bool SupportsTiff { get; }

Property Value

bool

Methods

Create(int, int, ImagePixelFormat)

Creates a new empty image.

public override IMemoryImage Create(int width, int height, ImagePixelFormat pixelFormat)

Parameters

width int

The image width in pixels.

height int

The image height in pixels.

pixelFormat ImagePixelFormat

The image's pixel format.

Returns

IMemoryImage

GetConfiguration()

public static Configuration GetConfiguration()

Returns

Configuration

GetDecoderOptions()

public static DecoderOptions GetDecoderOptions()

Returns

DecoderOptions

LoadCore(Stream, ImageFileFormat)

protected override IMemoryImage LoadCore(Stream stream, ImageFileFormat format)

Parameters

stream Stream
format ImageFileFormat

Returns

IMemoryImage

LoadFramesCore(Action<IMemoryImage>, Stream, ImageFileFormat, ProgressHandler)

protected override void LoadFramesCore(Action<IMemoryImage> produceImage, Stream stream, ImageFileFormat format, ProgressHandler progress)

Parameters

produceImage Action<IMemoryImage>
stream Stream
format ImageFileFormat
progress ProgressHandler

PerformTransform(IMemoryImage, Transform)

Performs the specified transformation on the specified image using a compatible transformer.

public override IMemoryImage PerformTransform(IMemoryImage image, Transform transform)

Parameters

image IMemoryImage
transform Transform

Returns

IMemoryImage

RenderToImage(IRenderableImage)

public Image RenderToImage(IRenderableImage image)

Parameters

image IRenderableImage

Returns

Image