[]
Represents a SkiaSharp.SKBitmap with an object model similar to GcBitmap.
public class GcSkiaBitmap : IImage, IDisposable
Public Class GcSkiaBitmap
Implements IImage, IDisposable
Name | Description |
---|---|
GcSkiaBitmap() | Initializes a new empty instance of the GcSkiaBitmap class. |
GcSkiaBitmap(Image, Rectangle?) | Initializes a new instance of the GcSkiaBitmap class. |
GcSkiaBitmap(GcBitmap) | Initializes a new instance of the GcSkiaBitmap class. |
GcSkiaBitmap(Stream, Rectangle?) | Initializes a new instance of the GcSkiaBitmap class. |
GcSkiaBitmap(int, int, bool) | Initializes a new instance of the GcSkiaBitmap class and creates the image. |
GcSkiaBitmap(string, Rectangle?) | Initializes a new instance of the GcSkiaBitmap class. |
Name | Description |
---|---|
FontCache | Gets or sets a shared instance of the SkiaFontCache object. |
Graphics | Gets an instance of the GcSkiaGraphics class associated with this image. The graphics becomes available after executing the CreateGraphics(Color?) method. |
HasImage | Gets a value indicating whether the underlying image exists (has been loaded or created). If this property is false, call Load() or CreateImage() to load or create the underlying image. Calling any other method will throw an exception unless this property is true. |
IsDisposed | Gets a value indicating whether the GcSkiaBitmap has been disposed of. |
Opaque | Gets a value indicating whether the alpha channel of the image should be ignored. |
PixelHeight | Gets the pixel height of the image. |
PixelWidth | Gets the pixel width of the image. |
SKBitmap | Gets the underlying SkiaSharp.SKBitmap object. |
Name | Description |
---|---|
ApplyLicenseKey(string) | Applies a license key to the current instance of GcSkiaBitmap. |
Clear(Color, Rectangle?) | Clears the GcSkiaBitmap with the specified color. |
Clip(Rectangle) | Creates a new GcSkiaBitmap containing a fragment of the current image. |
Clone() | Creates a new GcSkiaBitmap containing a copy of the current image. |
CreateGraphics(Color?) | Creates an instance of the GcSkiaGraphics class. |
CreateImage(int, int, bool) | Creates the image of the given size. |
DiscardImage() | Releases the internal image and clears all metadata. |
Dispose() | Cleans up any resources being used. |
Dispose(bool) | Performs cleanup operations on managed and unmanaged resources. |
Load(Stream, Rectangle?) | Loads the image from a stream. JPEG, PNG, WEBP formats are supported. |
Load(string, Rectangle?) | Loads the image from a file. JPEG, PNG, WEBP formats are supported. |
Resize(int, int, ResizeQuality) | Creates a new GcSkiaBitmap containing a resized copy of the current image. |
SaveAsJpeg(Stream, JpegOptions) | Saves the image into a Stream in JPEG format. |
SaveAsJpeg(string, JpegOptions) | Saves the image to a file in JPEG format. |
SaveAsPng(Stream, PngOptions) | Saves the image into a Stream in PNG format. |
SaveAsPng(string, PngOptions) | Saves the image into a file in PNG format. |
SaveAsWebp(Stream, WebpOptions) | Saves the image into a Stream in WEBP format. |
SaveAsWebp(string, WebpOptions) | Saves the image into a file in WEBP format. |
SetLicenseKey(string) | Sets the license key. |
ToGcBitmap(GcBitmap, Rectangle?) | Copies the image into an existing instance of GcBitmap. |
ToGcBitmap(Rectangle?) | Creates an instance of the GcBitmap class from the current GcSkiaBitmap. |
ToSkiaImage(Rectangle?) | Creates an instance of the GcSkiaImage class from the current GcSkiaBitmap. |