koszeggy / KGySoft.Drawing

KGy SOFT Drawing is a library for advanced image, icon and graphics handling.
https://kgysoft.net/drawing
Other
58 stars 8 forks source link

Can KGySoft.Drawing be a replacement for SkiaSharp? #16

Closed sgf closed 4 months ago

sgf commented 4 months ago

The SkiaSharp dll file is too large, close to 10mb. I'm looking for a 2d graphics library developed in pure C#

koszeggy commented 4 months ago

It depends on what do you want to use it for. As it still lacks some areas other libraries support, today it's mainly a complementary library for the well-known libraries to support some specialized tasks.

For example, it lacks shape drawing features so far (though I started to work on that on an unpublished branch), and apart from a GIF encoder it does not contain encoders and decoders for popular file formats. The basic idea is that you can load image files with your favorite image library, which can be reinterpreted as IReadWriteBitmapData instances to manipulate them by my library.

But even if there will be shape drawing support along with more encoders and decoders, I don't expect to implement some other important features such as some platform independent font rendering anytime soon...

sgf commented 4 months ago

It depends on what do you want to use it for. As it still lacks some areas other libraries support, today it's mainly a complementary library for the well-known libraries to support some specialized tasks.

For example, it lacks shape drawing features so far (though I started to work on that on an unpublished branch), and apart from a GIF encoder it does not contain encoders and decoders for popular file formats. The basic idea is that you can load image files with your favorite image library, which can be reinterpreted as IReadWriteBitmapData instances to manipulate them by my library.

But even if there will be shape drawing support along with more encoders and decoders, I don't expect to implement some other important features such as some platform independent font rendering anytime soon...

Encoders and decoders are not important for a graphics library. They are just peripheral facilities of the graphics library. The important thing should be the drawing of primitives, shapes, images, and some operations.And finally they are rasterized and rendered.

However, your answer has pointed out some missing parts. Thank you very much for your answer.