Results 1 to 3 of 3

Thread: How to fix Image Background

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Posts
    20

    How to fix Image Background

    I set a picture to be the form's background but it's filled full on form.

    How can i do to show only that image?

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    You can use the gdi+ to draw the image on the from where you want it. Lookup the DrawImage method.

    Jeremy

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Posts
    207
    Try this.
    PHP Code:
    Bitmap b = new Bitmap("C:/myfile.bmp");

    Graphics g this.CreateGraphics();
    g.DrawImage(b, new Rectangle(00b.Widthb.Height), 00b.Widthb.HeightGraphicsUnit.Pixel); 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width