Skip to content

This project aims to produce a SkiaSharp implementation Compatible with System.Drawing.Common

License

Notifications You must be signed in to change notification settings

ffquintella/SkiaDrawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SkiaDrawing

This is an implementation of the methods of System.Drawing in SkiaSharp. It is a work in progress and is not yet complete. The goal is to provide a drop-in replacement for System.Drawing that uses SkiaSharp for rendering.

Usage

To use this library, you need to add a reference to the SkiaDrawing project in your project. Then, you can use the SkiaDrawing namespace in your code.

It is meant to be a drop-in replacement for System.Drawing, so you can use it in the same way. For example, you can create a new bitmap like this:

using SkiaDrawing;

Bitmap bitmap = new Bitmap(100, 100);

You can then use the Graphics class to draw on the bitmap:

using (Graphics g = Graphics.FromImage(bitmap))
{
    g.Clear(Color.White);
    g.DrawLine(Pens.Black, 0, 0, 100, 100);
}

You can also use the Graphics class to draw on a control:

using (Graphics g = e.Graphics)
{
    g.Clear(Color.White);
    g.DrawLine(Pens.Black, 0, 0, 100, 100);
}

Supported Features

The following features are currently supported:

  • Bitmap
  • Color
  • Graphics
  • Pen
  • Brush
  • Font
  • StringFormat
  • Rectangle
  • Point
  • Size
  • Image
  • ImageFormat

The following features are not yet supported:

  • Region
  • Path
  • Matrix

No intended features

  • ScreenCapture

About

This project aims to produce a SkiaSharp implementation Compatible with System.Drawing.Common

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages