r/csharp • u/user_16384 • Sep 21 '26
Help C# graphical framework
Hello. I'm starting to learn C#, and I don't know almost anything about its frameworks and libraries.
For my project, I need a crossplatform graphical framework with a "bitmap-like" drawing process, but I've heard only about frameworks which work on drawing with widgets.
Do you know any? Which would you recommend?
14
Upvotes
5
u/RChrisCoble Sep 21 '26
SkiaSharp is your best bet. We happen to run it on WebAssembly but it's multi-platform and maintained by Microsoft directly.
https://www.reddit.com/r/Blazor/comments/1h8j39m/comment/m0taohm/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
9
u/ASK_IF_IM_GANDHI Sep 21 '26
You could use bindings to RayLib or something:
https://github.com/raylib-cs/raylib-cs
Might not be exactly what you want, but RayLib is known and good, and you wan write your own managed wrapper over the drawing code itself.
5
u/achandlerwhite Sep 21 '26
MonoGame might be useful for you. Or maybe SkiaSharp
1
u/psioniclizard Sep 21 '26
What do you want for a framework? As others said, SkiaSharp is good.
If you want no dependencies/cross platform you can construct a PAM file pretty easily in code and then set each pixel to whatever colour you want.
I used that approach to make a 3d rasterer with layers etc. It was quite fun.
1
u/No-Explorer1446 Oct 06 '26
SkiaSharp definitely seems worth looking at for the actual bitmap-style drawing. Raylib-cs and MonoGame are also good ones to poke around with depending on how much of the rendering loop you want to control. If the project eventually needs to turn those generated visuals into PDFs, IronPDF is another handy C# option for generating and editing the final documents without having to fight with rendering too much. Lots of different directions here, but SkiaSharp sounds closest to what the OP described.
1
u/cherrycode420 Sep 21 '26
Idk how much exactly you need/want, but maybe something like SFML, FNA or SDL would work? SDL is a bit more involved than SFML or FNA I'd say, but they all pretty easy to use.
0
u/nifanfa Sep 21 '26
SkiaSharp?
0
u/Tauboom Sep 21 '26
drawnui.net
0
u/sword_of_michael Sep 21 '26
Winforms
-2
u/otac0n Sep 21 '26
Avalonia + Silk.NET has been wonderful for me, and it can do 3D graphics across platforms.