Background color of a bitmap

Hi,

I'm drawing bitmaps: I drew a chart and saved it to a jpeg file. But when I open it, my jpeg file has a black background, why is that

Thanks



Answer this question

Background color of a bitmap

  • JCJCJC

    The default background color for a bitmap (e.g. when you do new Bitmap()) is black (more specifically, it has NO background color, which to the human eye equals black). So if you want it another color, you're going to need to fill the background with the color you want when you create the bitmap.


  • jrett

    Yes, thinking this way it is obvious :)
    thanks ^^

  • hellomahesh

    What was the color of the background that you drew it on
  • Background color of a bitmap