What would be the easiest, most cross-platform way to create a bitmap (2D array of integers, or a quad-tree) and display it on the screen? I would also like to be able to save it as a file.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It has to be said — the easiest and most cross platform approach is probably to use printf, with something like:
You could use more than two brightness values.
I also like both Qt and Juce; they’re both relatively straightforward cross platform GUI toolkits. They can both be got up and running in an evening or two… the ascii printout (and its variations) can be done in an hour.