Software to convert coding to bitmap?

Status
Not open for further replies.

maniac84

Full Member level 6
Joined
Mar 4, 2012
Messages
337
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Visit site
Activity points
3,661
Hi guys,
Usually for GLCD, what we can find is converting a bitmap file into c coding software.
Is there a software that do reverse? I'm looking a software that when we key in the c coding, it will generate the bitmap out.
This is because I only have the c coding for the image but I don't have the bitmap file. I'm trying to find out how the image looks like.
 

how much the image size?
And Do u knw about the data format to be displayed?

- - - Updated - - -

Code:
include<stdio.h>
void view_buffer(void);
char virt_disp[25][80],a[5]={0x7C,0x12,0x11,0x12,0x7C},bit,byte,name[20],
			b[5]={0x7C,0x12,0x11,0x12,0x7C},
			c[5]={0x7C,0x12,0x11,0x12,0x7C},
			d[5]={0x7C,0x12,0x11,0x12,0x7C},
			e[5]={0x7C,0x12,0x11,0x12,0x7C};
int i,j,k,l;


void main()
{

for(i=0;i<25;i++)
for(j=0;j<80;j++)
virt_disp[i][j]=45;

printf("Enter a letter\n");
scanf("%s",name);




for(i=0;i<5;i++)
for(j=0;j<7;j++)
{
switch(name[0])
{
case 'a':
if(a[i]>>j&1)
virt_disp[j][i]=255;
break;
case 'b':
if(b[i]>>j&1)
virt_disp[j][i]=255;
break;
case 'c':
if(c[i]>>j&1)
virt_disp[j][i]=255;
break;
case 'd':
if(d[i]>>j&1)
virt_disp[j][i]=255;
break;
case 'e':
if(e[i]>>j&1)
virt_disp[j][i]=255;
break;
}

}

view_buffer();
}




void view_buffer()
{
for(i=0;i<25;i++)
{
for(j=0;j<80;j++)
printf("%c",virt_disp[i][j]);
printf("\n");
}
}

- - - Updated - - -

I usualy this method to display the code in output window (if small image).
 


My bitmap size is 132x22 pixel.
How do u use virt_disp in output window? What c compiler?
 

hey its not any special compiler, it was run on dev cpp.. The pixel values will be diff charecters.. It would be quiet easy with full screen of output window for your size..for wide screen the size is 144*35..
 

In MikroC Pro compiler you can find integrated tool in Tools menu "GLCD Bitmap Editor".


Best regards,
Peter

I'm using Microchip Mplab IDE. I don't think there a tool for this compiler right?
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…