Code to draw antialiased ellipse with border and fill alpha

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hari-kj
Forum Newbie
Posts: 10
Joined: Mon Jun 05, 2006 7:40 am

Code to draw antialiased ellipse with border and fill alpha

Post by hari-kj »

Hi All,

I've looked high and low for this kind of a code. What I'm looking for is a code to draw an ellipse which has a border and fill and both should have alpha values for the color.

I was able to draw an ellipse with a border and fill but could not figure out how to do the same with alpha values. Can anyone please help me on this.

Regards,
Hari
hari-kj
Forum Newbie
Posts: 10
Joined: Mon Jun 05, 2006 7:40 am

Re: Code to draw antialiased ellipse with border and fill alpha

Post by hari-kj »

Anyone..please?
User avatar
timWebUK
Forum Contributor
Posts: 239
Joined: Thu Oct 29, 2009 6:48 am
Location: UK

Re: Code to draw antialiased ellipse with border and fill alpha

Post by timWebUK »

A quick Google search later...

http://mierendo.com/software/antialiased_arcs/

Is this any help?
hari-kj
Forum Newbie
Posts: 10
Joined: Mon Jun 05, 2006 7:40 am

Re: Code to draw antialiased ellipse with border and fill alpha

Post by hari-kj »

Thanks for the reply.

I had used this library to draw filled ellipse, but cannot draw a border with it.

The problem is that my ellipse needs to have both fill and border which can have individual color values and transparency. With the mentioned library, I cannot do this unless both my fill and border have same transparency.

Any thoughts.
hari-kj
Forum Newbie
Posts: 10
Joined: Mon Jun 05, 2006 7:40 am

Re: Code to draw antialiased ellipse with border and fill alpha

Post by hari-kj »

I had used a combination of the above library and another code which draws only antialiased circle borders to achieve this

http://mayashree.com/phpfiles/amf2/services/test.php

I am helpless in doing the same for an anialiased ellipse border though.
Post Reply