Extensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Various extension methods to convert between SkiaSharp types and System.Drawing types.
public static class Extensions
- Inheritance
-
Extensions
Methods
ToBitmap(SKBitmap) |
Converts a SkiaSharp bitmap into a System.Drawing bitmap. |
ToBitmap(SKImage) |
Converts a SkiaSharp image into a System.Drawing bitmap. |
ToBitmap(SKPicture, SKSizeI) |
Converts a SkiaSharp picture into a System.Drawing bitmap. |
ToBitmap(SKPixmap) |
Converts a SkiaSharp pixmap into a System.Drawing bitmap. |
ToDrawingColor(SKColor) |
Converts a SkiaSharp color into a System.Drawing color. |
ToDrawingPoint(SKPoint) |
Converts a SkiaSharp point into a System.Drawing point. |
ToDrawingPoint(SKPointI) |
Converts a SkiaSharp point into a System.Drawing point. |
ToDrawingRect(SKRect) |
Converts a SkiaSharp rectangle into a System.Drawing rectangle. |
ToDrawingRect(SKRectI) |
Converts a SkiaSharp rectangle into a System.Drawing rectangle. |
ToDrawingSize(SKSize) |
Converts a SkiaSharp size into a System.Drawing size. |
ToDrawingSize(SKSizeI) |
Converts a SkiaSharp size into a System.Drawing size. |
ToSKBitmap(Bitmap) |
Converts a System.Drawing bitmap into a SkiaSharp bitmap. |
ToSKColor(Color) |
Converts a System.Drawing color into a SkiaSharp color. |
ToSKImage(Bitmap) |
Converts a System.Drawing bitmap into a SkiaSharp image. |
ToSKPixmap(Bitmap, SKPixmap) |
Converts a System.Drawing bitmap into a SkiaSharp pixmap. |
ToSKPoint(Point) |
Converts a System.Drawing point into a SkiaSharp point. |
ToSKPoint(PointF) |
Converts a System.Drawing point into a SkiaSharp point. |
ToSKRect(Rectangle) |
Converts a System.Drawing rectangle into a SkiaSharp rectangle. |
ToSKRect(RectangleF) |
Converts a System.Drawing rectangle into a SkiaSharp rectangle. |
ToSKSize(Size) |
Converts a System.Drawing size into a SkiaSharp size. |
ToSKSize(SizeF) |
Converts a System.Drawing size into a SkiaSharp size. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for