|
-
Oct 9th, 2002, 04:59 AM
#1
Thread Starter
So Unbanned
anti-aliasing shapes
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?
-
Oct 10th, 2002, 11:31 AM
#2
-
Oct 11th, 2002, 02:35 AM
#3
Thread Starter
So Unbanned
-
Oct 12th, 2002, 07:58 AM
#4
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"?
-
Oct 13th, 2002, 12:42 PM
#5
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.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|