form image

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,

i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?

thanks,
rodchar
 
rodchar said:
i have an image that i want to put on my form and was just wondering if
there is a way to take away the white background on the image (make it
transparent)?


Call the 'Bitmap' object's 'MakeTransparent' method.
 
how do i get to that method? i'm using a pictureBox to contain my bitmap is
that right so far?
 
Can you be more specific about what you want to do? If you want a picture
to completely fill the form, it's better to use the BackGround image of the
form. If you just want it on part of the form, a picturebox is fine - there
are several other options such as panels also.

If you do place an image in a picturebox or other container control, you
will need to make both the image and the container transparent, or set the
backcolor of the container to the same backcolor as the form, otherwise
you'll end up with the image transparent and showing the color of the
picturebox it's on.
 
If you do place an image in a picturebox or other container control, you
will need to make both the image and the container transparent, or set the
backcolor of the container to the same backcolor as the form, otherwise
you'll end up with the image transparent and showing the color of the
picturebox it's on.

this is what i'm trying to do. however, how do i make the image's background
transparent?
 
Back
Top