My question is how to create anti-aliased shapes using a byte-array as a buffer.
I have the byte array structure.
The shapes would include a rounded-rectangle, and a triangle.
What about shadowing them?
Printable View
My question is how to create anti-aliased shapes using a byte-array as a buffer.
I have the byte array structure.
The shapes would include a rounded-rectangle, and a triangle.
What about shadowing them?
I found this in a NewsGroup Q&A.
Hope it helps...
http://www.codehound.com/groups/[email protected]_63
Not really.
Bummer...I searched through a whole bunch of different VB sites individually, and used a couple of search engines on "Anti-Alising" and that was the only thing I found.
Sorry...:(
BTW: I don't have a very big background with graphics or gaming so forgive me if this is a stupid question, but what is "anti-aliased shape"?
For anti-aliasing you need an algorithm that takes a bunch of pixels, analyzes the pixel colors there and computes weighted averages to fill the pixels with. Assumin a 2x2 anti-aliasing of a 16 grays image, given the block
16 0
0 16
the algorithm should convert this to
10 6
6 10
which would be a weighted average.
The larger the block the better the results, but the slower the algorithm.