How do I display inverted bitmap using GLCD_Bitmap function ?

Thread Starter

Gshamit

Joined Jul 30, 2014
1
I have struct ,I am trying to display it on lcd , but it is rotated ,how can I change it ?
static const struct {
unsigned int width;
unsigned int height;
unsigned int bytes_per_pixel; /* 2:RGB16, 3:RGB, 4:RGBA */
unsigned char pixel_data[24 * 31 * 2 + 1];
}
gimp_image = {
24, 31, 2,
"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377_\5_\5Y\5"
.......
};
GLCD_DrawChar((unsigned int) my_car.x, (unsigned int) my_car.y,image.width, image.height,(unsigned char *) image.pixel_data);
 

ErnieM

Joined Apr 24, 2011
8,377
First let me guess what language compiler and library this is....

Take your data set and rotate that. There are some programs out there to do this, but for simple B&W bitmaps you can get it done with MSPaint and a hex editor once you find the bits inside the bitmap file (documented in numerous places, just ask Google).
 
Top