Author: JoeCJoeC
Date: Feb 16, 2008 19:14
I would like to create a graphics library that takes binary 1 or 0 to
crate graphics. I am creating 16x16 bitmap graphic and I would like
the data to look like this:
data int [256] = {0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,
0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,
and so on:
I want to blit over this data to make a picture. I need to make the
data like this because I am trying to make a graphics editer where I
can draw the graphics then save the data to a binary file that can
later be used in a program.
Basically I would like a 16x16 grid of blocks that will represent
pixels. As I select blocks I want the pixes in the bitmap to mirror
what I am trying to draw. Once I do that I will save the files.
Eventually, I would like to be able to crate sheets of multiple
graphics. I will also use the same graphics object to load and
display the graphics in programs.
|