Make a color in image transparent on the fly

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  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. Similar Questions and Discussions

    1. How do I make a box a transparent or opaque color
      I want to create a box to identify a spot on an aerial map, but I want the color box to be somewhat transparent. In photoshop I can control the...
    2. Color to Transparent Gradient
      Hello, can you tell me how can I make a gradient like in Photoshop from a normal 100% opacity color to transparent. Thanx
    3. How to make an image interactive transparent
      I want my image to be interactively transparent. Corel PhotoPaint offers simple tool to give this effect. This means, I want my image to fade from...
    4. How do I make an image more transparent so I can....
      I know this one!! (First make sure you're working on a copy of our image - you don't want ever want to mess up your only original.) Open the...
    5. How do I get rid of image dither/distortion and make images color mode friendly?
      I have a website for which I have designed all the graphics in fireworks, and I've noticed when I view it from other peoples computers(different...
  3. #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

  4. #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

  5. #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

Posting Permissions

  • You may not post new threads
  • You may 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