form image

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rodchar

    #1

    form image

    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
  • Herfried K. Wagner [MVP]

    #2
    Re: form image

    "rodchar" <rodchar@discus sions.microsoft .comschrieb:
    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 'MakeTransparen t' method.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • rodchar

      #3
      Re: form image

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

      "Herfried K. Wagner [MVP]" wrote:
      "rodchar" <rodchar@discus sions.microsoft .comschrieb:
      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 'MakeTransparen t' method.
      >
      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>
      >

      Comment

      • Matt

        #4
        Re: form image

        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.

        "rodchar" <rodchar@discus sions.microsoft .comwrote in message
        news:2D3BCC8C-8E5F-4496-B1D8-CF9DE6E43A1F@mi crosoft.com...
        how do i get to that method? i'm using a pictureBox to contain my bitmap
        is
        that right so far?
        >
        "Herfried K. Wagner [MVP]" wrote:
        >
        >"rodchar" <rodchar@discus sions.microsoft .comschrieb:
        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 'MakeTransparen t' method.
        >>
        >--
        > M S Herfried K. Wagner
        >M V P <URL:http://dotnet.mvps.org/>
        > V B <URL:http://classicvb.org/petition/>
        >>

        Comment

        • rodchar

          #5
          Re: form image

          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?

          "Matt" wrote:
          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.
          >
          "rodchar" <rodchar@discus sions.microsoft .comwrote in message
          news:2D3BCC8C-8E5F-4496-B1D8-CF9DE6E43A1F@mi crosoft.com...
          how do i get to that method? i'm using a pictureBox to contain my bitmap
          is
          that right so far?

          "Herfried K. Wagner [MVP]" wrote:
          "rodchar" <rodchar@discus sions.microsoft .comschrieb:
          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 'MakeTransparen t' method.
          >
          --
          M S Herfried K. Wagner
          M V P <URL:http://dotnet.mvps.org/>
          V B <URL:http://classicvb.org/petition/>
          >
          >
          >
          >

          Comment

          Working...