A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: "magic wanding" with the bitmap class

  1. #1
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429

    "magic wanding" with the bitmap class

    I've got some .jpgs that are just white with some black line shapes that I'm bringing in via a Loader() object.

    Is there a way using threshold() or something that I can alpha out the outer white (negative space) pixels without touching the white pixels enclosed in the line work?

  2. #2
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Try this:

    bmd.floodFill(0,0, 0x00000000);

  3. #3
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    Thanks. That's the right track but fudging with the tolerance is going to take too many operations. I think I'll just bring these in as .pngs

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