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);
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);