| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
--A better solution would be (I assume that you have B in a separate
bitmap, since you want to adjust the transparency) to pre-process B
before it gets copied into A. Just scan each line and when you
encounter an edge, perform "antialiasing" by manipulating the alpha
value of the pixels around (just like the traditional antialiasing
techniques)
Florent
B isn't really in its own bitmap, but the edges are well defined so it may
as well be. Your idea would work, but if I want 5 pixels of "blend", when
scanning the top line and adding transparency, I'd need to do it to the 2nd
line (and 3rd 4th etc) all of which have no "edges".
Finding the single edge pixels is easy, but finding all pixels with in 5
pixels of the edge is harder and also keeping track so I don't add
transparency to the same pixel more than once.
Trygve
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.
| References: | |
| >Re: OT: Need a graphics algorithm (From: Trygve Inda <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.