Results 1 to 6 of 6

Thread: "Transparent Picture Control?"

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    11

    Unhappy

    Is there any way to use a Picture Control so that the image (say, a sphere) is the only thing you see? In other words, don't show the borders of the control or its background? I know this can be done easilly using a transparent GIF image in an Image control but I need to use a Picture Control for 2 reasons.

    1. Ability to use Circle, Line, etc, methods on it.
    2. Picture Control can act as a container for other controls, while an image control can't.

    Any suggestions?

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You could use BitBlt, but I think this will destroy the use of the line and shape methods:

    http://vbden.tripod.com/articles/invmask.htm

    Just use SrcAND for the mask (white where transparent, black where opaque) and SrcPAINT for the sprite (white in mask is black in this picture, and black in sprite is whatever)

    Use the LineTO and APIs like that, I think it might work..
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    11
    That's the problem. Can't use BitBlt, because I need to use the Circle Method (Actually, Arcs depicting player healths where the end of the arc, in case of 100% health, actually complete's the circle. As the percentage goes down, the gap between the beginning and end of the arc gets bigger. Drawing images for each percentile would be a pain....)

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Someone posted a similar Q, was that you? I dunno, I just posted on it, so go see one with a similar name.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5
    Guest
    You could also use the TransparentBlt function.

  6. #6
    Guest
    Blt, Then draw the Arc. The arc will be on top.

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width