Re: Background colour won't show

From: hiwa (HGA03630_at_nifty.ne.jp)
Date: 12/23/03


Date: 23 Dec 2003 00:23:49 -0800

AyCeeUK@hotmail.com (Ali) wrote in message news:<124e26f8.0312221744.67e3c200@posting.google.com>...
> Hi,
>
> I wrote the following code and when I loaded the images as static
> images my background displayed as black (set at start of code),
> however, now I've started (trying!) to get my image to move, my
> background has defaulted to white. Can anyone tell my why this is and
> how to correct it?
setBackground() is a high-level Component method. If you draw raw
image using Graphics object, you also have to use the Graphics method
to fill your rectangle area with a color.



Relevant Pages

  • Re: Writing Text on an Image.
    ... Create a new System.Drawing.Bitmap class and load it with the image ... Get a graphics object from the Bitmap using Graphics.FromImage ... > images and use it for there own purpose. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Writing Text on an Image.
    ... "James Westgate" wrote: ... Get a graphics object from the Bitmap using Graphics.FromImage ... >> but the design is still visible. ... >> images and use it for there own purpose. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: resize gif image
    ... It means resize them to 100x100. ... System.Drawing.Image oThumbNail = new Bitmap(FileWidth, FileHeight, ... //make rectangle from Graphics object (resize) ... It works well for jpeg images, but I get error when work with gif ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: problem with resizing 32bppArgb images
    ... resolution difference - when drawing to the screen the graphics object ... are making images smaller than the original screen image, ... scaled images now look "perfect" on the screen. ... send that to the graphics service or whatever is feeding the printer. ...
    (microsoft.public.dotnet.framework.drawing)
  • Change a bitmap
    ... Does anyone know how I can draw some images onto a ... background image and then save the image to a file? ... but I can't figure out how to save the graphics object to ...
    (microsoft.public.dotnet.framework.drawing)