I'm using the "pushColors" function to draw a bitmap, which works fine! (see code below)
the only problem is that it displays a square image (includes the background) and I just want to display
As far as I'm aware, the Hex code (bmp converted to c.) which relates to the colours, are plotted one by one, the picture size tells the function when to start a new line as the bmp code is all on one continuous line.
what I want to do is use white colour (0xFFFF), in an if statement to say "if code != 0xFFFF draw pixel.
(but using the fast pushColor function)
so that when the hex code is drawn, it skips the white pixels and doesn't draw them on the screen, so that it only draws the image.
that way if the background is showing something like the sky and I display a picture of a plane onto the background, the sky will be shown around the plane.
can anyone help?
x = 296; y = 0; tft.setAddrWindow(x, y, x + 24 - 1 , y + 480 -1); tft.pushColors((const uint8_t*)Wall3, 24 * 480, 1, false);