form image

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
 
H

Herfried K. Wagner [MVP]

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.
 
G

Guest

how do i get to that method? i'm using a pictureBox to contain my bitmap is
that right so far?
 
M

Matt

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.
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top