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
widthintThe image width in pixels.
heightintThe image height in pixels.
pixelFormatImagePixelFormatThe 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
streamStreamformatImageFileFormat
Returns
LoadFramesCore(Action<IMemoryImage>, Stream, ImageFileFormat, ProgressHandler)
protected override void LoadFramesCore(Action<IMemoryImage> produceImage, Stream stream, ImageFileFormat format, ProgressHandler progress)
Parameters
produceImageAction<IMemoryImage>streamStreamformatImageFileFormatprogressProgressHandler
PerformTransform(IMemoryImage, Transform)
Performs the specified transformation on the specified image using a compatible transformer.
public override IMemoryImage PerformTransform(IMemoryImage image, Transform transform)
Parameters
imageIMemoryImagetransformTransform
Returns
RenderToImage(IRenderableImage)
public Image RenderToImage(IRenderableImage image)
Parameters
imageIRenderableImage
Returns
- Image