Table of Contents

Method SaveImageToPng

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

SaveImageToPng(SKImage, string)

Saves an SKImage instance to a file in PNG format.

public static void SaveImageToPng(SKImage image, string fileName)

Parameters

image SKImage

The SKImage to save.

fileName string

The destination file path for the PNG image.

Exceptions

ArgumentNullException

Thrown if image or fileName is null.

IOException

Thrown if the file cannot be written.