Transparent BackGround

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

    Transparent BackGround

    I am having difficult time drawing a image using Visual Studio Image Editor.

    I can draw the image and save it as .bmp file load it into a pictureBox
    image

    but when the program is run the background of the bmp is not Transparent.

    How can I achieve a transparent background?



    Thanks



    tb


  • Ryan S. Thiele

    #2
    Re: Transparent BackGround

    The bitmap format has no alpha, therefore no transparency. You should try a
    gif, tiff, or icon.

    --
    Thiele Enterprises - The Power Is In Your Hands Now!

    --
    "vbt" <tbmcl@cwnet.co mwrote in message
    news:eTIop6J9GH A.3384@TK2MSFTN GP05.phx.gbl...
    I am having difficult time drawing a image using Visual Studio Image Editor.

    I can draw the image and save it as .bmp file load it into a pictureBox
    image

    but when the program is run the background of the bmp is not Transparent.

    How can I achieve a transparent background?



    Thanks



    tb



    Comment

    • Smokey Grindel

      #3
      Re: Transparent BackGround

      32bit bitmaps actually do have alpha

      "Ryan S. Thiele" <maligui@verizo n.netwrote in message
      news:Bqd_g.41$% T3.20@trndny03. ..
      The bitmap format has no alpha, therefore no transparency. You should try
      a
      gif, tiff, or icon.
      >
      --
      Thiele Enterprises - The Power Is In Your Hands Now!
      >
      --
      "vbt" <tbmcl@cwnet.co mwrote in message
      news:eTIop6J9GH A.3384@TK2MSFTN GP05.phx.gbl...
      I am having difficult time drawing a image using Visual Studio Image
      Editor.
      >
      I can draw the image and save it as .bmp file load it into a pictureBox
      image
      >
      but when the program is run the background of the bmp is not Transparent.
      >
      How can I achieve a transparent background?
      >
      >
      >
      Thanks
      >
      >
      >
      tb
      >
      >
      >

      Comment

      • Dennis

        #4
        Re: Transparent BackGround

        How do you then make a 32bit bitmap transparent? Does Visual Studio save
        bitmaps in 32 bit format. How do you convert another format to 32bit format?
        --
        Dennis in Houston


        "Smokey Grindel" wrote:
        32bit bitmaps actually do have alpha
        >
        "Ryan S. Thiele" <maligui@verizo n.netwrote in message
        news:Bqd_g.41$% T3.20@trndny03. ..
        The bitmap format has no alpha, therefore no transparency. You should try
        a
        gif, tiff, or icon.

        --
        Thiele Enterprises - The Power Is In Your Hands Now!

        --
        "vbt" <tbmcl@cwnet.co mwrote in message
        news:eTIop6J9GH A.3384@TK2MSFTN GP05.phx.gbl...
        I am having difficult time drawing a image using Visual Studio Image
        Editor.

        I can draw the image and save it as .bmp file load it into a pictureBox
        image

        but when the program is run the background of the bmp is not Transparent.

        How can I achieve a transparent background?



        Thanks



        tb

        >
        >
        >

        Comment

        • vbt

          #5
          Re: Transparent BackGround

          Well, I have tried creating the drawing using the following formats with no
          success

          ..gif, .tiff. and .icon



          What program would I use to draw a 32 bitmap?



          This drawing will be loaded into a pictureBox. Is this the correct control
          for these image types?





          vbt


          Comment

          • Ryan S. Thiele

            #6
            Re: Transparent BackGround

            Do you have the background of the picturebox set to transparent?

            --
            Thiele Enterprises - The Power Is In Your Hands Now!

            --
            "vbt" <tbmcl@cwnet.co mwrote in message
            news:OgDzN%23V9 GHA.3264@TK2MSF TNGP04.phx.gbl. ..
            Well, I have tried creating the drawing using the following formats with no
            success

            ..gif, .tiff. and .icon



            What program would I use to draw a 32 bitmap?



            This drawing will be loaded into a pictureBox. Is this the correct control
            for these image types?





            vbt



            Comment

            • vbt

              #7
              Re: Transparent BackGround

              Yes, Transparent is set.


              Comment

              • Ryan S. Thiele

                #8
                Re: Transparent BackGround

                Are you placing the image in the background property? or the imagfe
                property. I belive the Background doesn't support transparency. But placing
                the image into the image property. it will have transparency.

                Give it a try.

                --
                Thiele Enterprises - The Power Is In Your Hands Now!

                --
                "vbt" <tbmcl@cwnet.co mwrote in message
                news:ewTIftW9GH A.4376@TK2MSFTN GP03.phx.gbl...
                Yes, Transparent is set.



                Comment

                • gene kelley

                  #9
                  Re: Transparent BackGround

                  On Sat, 21 Oct 2006 15:23:35 -0700, "vbt" <tbmcl@cwnet.co mwrote:
                  >Well, I have tried creating the drawing using the following formats with no
                  >success
                  >
                  >.gif, .tiff. and .icon
                  >
                  >
                  >
                  >What program would I use to draw a 32 bitmap?
                  >
                  >
                  >
                  >This drawing will be loaded into a pictureBox. Is this the correct control
                  >for these image types?
                  >
                  >
                  >
                  >
                  >
                  >vbt
                  >
                  Only stable success I have had with transparent background images in picture boxes
                  was with either proper 32 bit "XP Style" icons (other icons don't work), or .png
                  format images created in PhotoShop with a transparent background. With the .png
                  images, they only seem to work properly when loaded into a picture box from a
                  resource at runtime. In Design, there is usually no transparency (which may change
                  with SP1) and usually no transparency at runtime if loaded in Design.

                  Gene

                  Comment

                  • vbt

                    #10
                    Re: Transparent BackGround

                    Ryan, I Have placed the Image in the Image Property.
                    Still no Luck.

                    vbt


                    Comment

                    • vbt

                      #11
                      Re: Transparent BackGround

                      Gene, I have tried loading the image using Application.Sta rtupPath & "\" &
                      myFileName.
                      The image loads just fine but still no transparent background.

                      vbt


                      Comment

                      • gene kelley

                        #12
                        Re: Transparent BackGround

                        On Sun, 22 Oct 2006 07:45:06 -0700, "vbt" <tbmcl@cwnet.co mwrote:
                        >Gene, I have tried loading the image using Application.Sta rtupPath & "\" &
                        >myFileName.
                        >The image loads just fine but still no transparent background.
                        >
                        >vbt
                        >
                        It sounds like the image you are trying to use is not a proper 32 bit image with a
                        transparent background versus a 24 or 32 bit image with a non-transparent background.
                        This has nothing to do with transparent key color by the way.

                        Gene

                        Comment

                        Working...