Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

Add ImageCanvas

Open quajak opened this issue 3 years ago • 2 comments

Cosmos currently has no way to draw/edit images (bitmaps for now) which have been loaded, beside direct manipulation of the array in bitmaps.

I think the best way to fix this would be to add a VirtualCanvas implementation of Canvas, which takes a Bitmap and implements the necessary methods to allow the use of the various drawing methods on it. Methods such as Display would throw NotSupportedException.

We could further also add a method to export a Canvas to an Image.

quajak avatar Apr 17 '21 08:04 quajak

There's an easy way to do this. Split the image into pixels and draw the pixels one by one.

ghost avatar Jun 23 '21 02:06 ghost

i might try to work on this sometime later, it should be quite easy

terminal-cs avatar Oct 23 '21 03:10 terminal-cs