Results 1 to 5 of 5

Thread: anti-aliasing shapes

  1. #1

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111

    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?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    I found this in a NewsGroup Q&A.

    Hope it helps...

    http://www.codehound.com/groups/[email protected]_63

  3. #3

    Thread Starter
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    Not really.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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"?

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width