© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
7 replies
hadeedji

✅ Simplest way to take a 2d grid of pixel colors and display a window

Here's the situation, I'm going through a book on raytracing (raytracing in a weekend) and it's teaching to write a software renderer, rendering to a grid of pixels then writing it to a ppm file.
That's well and good, now I wanna make it so it spawns a window of the given size, and displays the grid of rgb pixels I have. But I have no experience with any graphics apis. I don't want to go for a game engine like unity or monogame, I want the simplest thing imaginable.
I'm on windows, cross platform is not a concern. I don't know if I should be looking at Directx or opengl or anything else, never did any graphics stuff like that. Not really a C# question sorry, just looking for advice, thanks a lot!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Best way to display a 2D array
C#CC# / help
4y ago
Binding Colors to WPF Window
C#CC# / help
4y ago
❔ Better way to open a "window" to take in text input?
C#CC# / help
3y ago
Convert 2D grid into graph
C#CC# / help
3y ago