Converting a Matrix to a grid of colors
Posted
by
Zach
on Stack Overflow
See other posts from Stack Overflow
or by Zach
Published on 2012-11-17T16:53:04Z
Indexed on
2012/11/17
17:00 UTC
Read the original article
Hit count: 164
I'm currently making a console application in C# (will be going to a Windows Form application in the future. Sooner if needed). My current objective is to have a matrix (current size 52x42) be exported as an image (bitmap, jpeg, png, I'm flexible) where each value in the matrix (0, 1, 2, 3) is portrayed as a white, black, blue, or red square of size 20px x 20px with a grid 1px wide seperating each 'cell'.
Can this even be done in a console application, and if so how? If not, what would I need to get it working in a Windows Form application?
© Stack Overflow or respective owner