How do I display inverted bitmap using GLCD_Bitmap function ?

Discussion in 'Embedded Systems and Microcontrollers' started by Gshamit, Nov 10, 2014.

  1. Gshamit

    Thread Starter New Member

    Jul 30, 2014
    1
    0
    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);
     
  2. ErnieM

    AAC Fanatic!

    Apr 24, 2011
    7,388
    1,605
    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).
     
Loading...