iron-software / IronSoftware.System.Drawing

An open-source System.Drawing.Common replacement for .NET 5 and above on all platforms. Bringing together System.Drawing, Maui, and ImageSharp's Bitmap, Image, Font, and Shape types via an agnostic free NuGet package.
Other
114 stars 18 forks source link

SetPixel Initial Implementation #60

Closed regan-ironsoftware closed 1 year ago

regan-ironsoftware commented 1 year ago

Add SetPixel and SetPixelColor methods

Description

Allows the ability to set the color of a specific pixel.

Type of change

How Has This Been Tested?

A Unit test has been created to check this feature works as expected.

Checklist:

Please run through the checklist as much as possible and mark the items completed by placing an 'x' inside the brackets, like this: [x].

Additional Context

Add any other context, screenshots, or information about the pull request here.

artem-iron commented 1 year ago

@regan-ironsoftware nice! I would suggest to expand the test to test each format that has a case in SetPixelColor, like Rgb24, Rgb32 etc.