A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Image manipulation...can this be done?

  1. #1
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929

    Image manipulation...can this be done?

    Is there a way to change the color/tint of a particular range of color within an image??

    I've been looking into bitmapData and colorTransform tutorials, descriptions, etc. to see if there's a way to do this, but I haven't found anything.

    Basically, I've got an image with several "blobs" of color (red, blue, etc.), and I'm trying to figure out if there's a way to manipulate those areas without affecting the entire image (make the red turn yellow, make the blue turn green, etc.)

    I'm thinking I might have to come up with some sort of routine to look at an image, pixel by pixel, get the color, and, if it matches a particular range, create a new movieclip of that color, and, when it's finished, I can transform the color of that clip...is that overkill??

    Any better way to do this??

    Thanks!!!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  2. #2
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    ya know I saw this demo a while back that did just that, as well as demostrated a 'green' screen type effect behind video (dynamically)..

    I'll try to search for it..

    here it is... havent looked at the code at all..

    but he is dynamically keying out colors in the video.

    the whole app is pretty sick actually..LOL

    http://www.quasimondo.com/archives/000615.php

  3. #3
    anyone else hear that? flashpipe1's Avatar
    Join Date
    Jan 2003
    Location
    Upstate NY
    Posts
    1,929
    That's the shizzle!! Thanks whispers, exactly what I was looking for...

    Thanks!!
    Love like you've never been hurt, live like there's no tomorrow and dance like nobody's watching.

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    no problem.. post back what you do with it.. I havent jumped into the sourse at all...

    but that color keying is the 'poo'..

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

HTML5 Development Center