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?