Results 1 to 3 of 3

Thread: Combining images with transparency

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2002
    Location
    Meenahsohtah
    Posts
    22

    Combining images with transparency

    Hi. I have two pictureboxes. One contains a pattern, one contains an arrow-shaped graphic on a white background. I want to copy the arrow onto the pattern, but remove the white background.

    Basically I want to superimpose the arrow (without the white) onto the pattern. How would I do this?

    UPDATE:
    I've already tried loading a GIF with transparency of the arrow into the 2nd picturebox. Instead of white, the color surrounding the arrow is gray when I copy it

  2. #2
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Use the Image control with the GIF, not the Picturebox control
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  3. #3
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Lightbulb

    I have other idea... If you want to hear it just tell me, it seems they solved your problem already.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

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