Professional Web Applications Themes

Make a color in image transparent on the fly - Macromedia Flex General Discussion

Hi I am trying to load an image and at runtime pick the white background of the image as transparent. Can any one point me to the flex/flash libraries that may help w/ this? basically I have 2 images both of them have white background. I want to be able to drag and drop them so that the main objects of the images are side by side. But the problem is each image has thick white borders. so i figure if i can dynamically choose white color in the image to be transparent then I can overlap them and the ...

  1. #1

    Default Make a color in image transparent on the fly

    Hi I am trying to load an image and at runtime pick the white background of the
    image as transparent. Can any one point me to the flex/flash libraries that
    may help w/ this? basically I have 2 images both of them have white
    background. I want to be able to drag and drop them so that the main objects
    of the images are side by side. But the problem is each image has thick white
    borders. so i figure if i can dynamically choose white color in the image to
    be transparent then I can overlap them and the white borders will be
    transparent and won't get in the way. Any expert can point me to the right
    direction?

    repairman123 Guest

  2. #2

    Default Re: Make a color in image transparent on the fly

    Perhaps you could create the image with a transparent background and place it
    on a separate box with a white background and nothing else. When you start the
    drag, remove the white box from the display list. If drag fails put it back.

    Doug

    doug777 Guest

  3. #3

    Default Re: Make a color in image transparent on the fly

    doug777, thanks for the reply. My issue is that the image I am trying to place
    next to each other is some images off the web i.e. I don't have control over
    the image transparent color. that's why I want to find a way to on the fly set
    which color in the images will be transparent. I was hoping flex has some
    library for that

    repairman123 Guest

  4. #4

    Default Re: Make a color in image transparent on the fly

    Flex does have a library for manipulating bitmap data. Look into Bitmap, BitmapData, etc.

    TS
    VarioPegged Guest

Similar Threads

  1. How do I make a box a transparent or opaque color
    By Page_Bolin@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 3
    Last Post: July 7th, 06:35 PM
  2. Color to Transparent Gradient
    By Milen_Golchev@adobeforums.com in forum Adobe Illustrator Windows
    Replies: 2
    Last Post: April 20th, 09:20 AM
  3. How to make an image interactive transparent
    By RAKESH359 in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 1
    Last Post: September 1st, 06:11 AM
  4. How do I make an image more transparent so I can....
    By Beth Haney in forum Adobe Photoshop Elements
    Replies: 5
    Last Post: August 1st, 11:55 PM
  5. Replies: 0
    Last Post: July 28th, 10:50 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139