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
Methods
Create(int, int, ImagePixelFormat)
Creates a new empty image.
public override IMemoryImage Create(int width, int height, ImagePixelFormat pixelFormat)
Parameters
width
intThe image width in pixels.
height
intThe image height in pixels.
pixelFormat
ImagePixelFormatThe image's pixel format.
Returns
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
Streamformat
ImageFileFormat
Returns
LoadFramesCore(Action<IMemoryImage>, Stream, ImageFileFormat, ProgressHandler)
protected override void LoadFramesCore(Action<IMemoryImage> produceImage, Stream stream, ImageFileFormat format, ProgressHandler progress)
Parameters
produceImage
Action<IMemoryImage>stream
Streamformat
ImageFileFormatprogress
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
IMemoryImagetransform
Transform
Returns
RenderToImage(IRenderableImage)
public Image RenderToImage(IRenderableImage image)
Parameters
image
IRenderableImage
Returns
- Image