Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. C++ Builder Transparent Graphics!

C++ Builder Transparent Graphics!

Scheduled Pinned Locked Moved Managed C++/CLI
c++graphicsquestiondiscussion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Debs
    wrote on last edited by
    #1

    I'm working in C++ Builder and I have a round LED image that I would like to use. However Builder does not seem to accept transparent sections of the graphic and so the image appears as though it has white corners. Any thoughts on how I could get this to display as an image with a transparent background? I tried loading the image through imagelist and then set the transparent property to the white section and this worked except that the graphic then did not look like the nice quality that it use to? Any thoughts would be greatfull. Debs*

    O 1 Reply Last reply
    0
    • D Debs

      I'm working in C++ Builder and I have a round LED image that I would like to use. However Builder does not seem to accept transparent sections of the graphic and so the image appears as though it has white corners. Any thoughts on how I could get this to display as an image with a transparent background? I tried loading the image through imagelist and then set the transparent property to the white section and this worked except that the graphic then did not look like the nice quality that it use to? Any thoughts would be greatfull. Debs*

      O Offline
      O Offline
      olle
      wrote on last edited by
      #2

      if you are using a TImage just set the Transparent property to true

      D 1 Reply Last reply
      0
      • O olle

        if you are using a TImage just set the Transparent property to true

        D Offline
        D Offline
        Debs
        wrote on last edited by
        #3

        When I set TImage Transparent property to true. The part of the image that becomes transparent is not a clean cut and looks very pixelly. I believe I have to use bmp image for this transparent property to work and even with a high quality bmp I can't seem to get it to be clean transparent cut. Any other thoughts? Deborah

        G 1 Reply Last reply
        0
        • D Debs

          When I set TImage Transparent property to true. The part of the image that becomes transparent is not a clean cut and looks very pixelly. I believe I have to use bmp image for this transparent property to work and even with a high quality bmp I can't seem to get it to be clean transparent cut. Any other thoughts? Deborah

          G Offline
          G Offline
          Gordon Brandly
          wrote on last edited by
          #4

          That's one of the reasons I'm gradually moving from C++Builder to C++/CLI. I couldn't find any free controls (at least for BCB 5) that would give me proper alpha transparency.

          D 1 Reply Last reply
          0
          • G Gordon Brandly

            That's one of the reasons I'm gradually moving from C++Builder to C++/CLI. I couldn't find any free controls (at least for BCB 5) that would give me proper alpha transparency.

            D Offline
            D Offline
            Debs
            wrote on last edited by
            #5

            Excuss my ignorance but what is C++/CLI? How are you finding the transition?? Do you have a link to more info on C++/CLI?

            G 1 Reply Last reply
            0
            • D Debs

              Excuss my ignorance but what is C++/CLI? How are you finding the transition?? Do you have a link to more info on C++/CLI?

              G Offline
              G Offline
              Gordon Brandly
              wrote on last edited by
              #6

              It always amazes me how people will post messages to a forum without even bothering to see which forum they're posting in! (That's a hint: you posted your original message here in the C++/CLI forum.) I guess people just see the first three letters of the forum's name and don't bother to read the rest (I wish CP had a smiley that was less intense than :mad:, but more intense than :rolleyes:. Maybe a little guy looking annoyed with a bit of steam coming out of his ears.) Anyway, now that I've had my rant -- C++/CLI is Microsoft's slightly-modified version of C++ that works with their .NET framework. Here's a good introductory article: http://www.codeproject.com/managedcpp/cppcliintro01.asp[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups