Normally we use a rectangular object rect to creae a graphics image. with the rectangle as the limits
but i have an unusual request from a client to create elliptical images.[asp.net application]
is there any way to do it?
can anyone give me a code sample for that.
Be prepared to make your hands dirty with complicated world of gif images, theoretically its possible to do what you want but doing it with commercial quality images (Photoshop quality) is going to be
tough.
GDI+transparencygif
Jigar Desai -----------------------
Do not forget to "Mark as Answer" on the post that helped you.
miztiik
Member
182 Points
236 Posts
Creating an elliptical Image
Jan 10, 2007 06:21 AM|LINK
but i have an unusual request from a client to create elliptical images.[asp.net application]
is there any way to do it?
can anyone give me a code sample for that.
Jigar
Contributor
4629 Points
935 Posts
Re: Creating an elliptical Image
Jan 10, 2007 10:43 AM|LINK
Image can only be in rectangle form, However you can create transparent gif or white background jpeg and then draw ellipse to give elliptical effect.
-----------------------
Do not forget to "Mark as Answer" on the post that helped you.
miztiik
Member
182 Points
236 Posts
Re: Creating an elliptical Image
Jan 10, 2007 02:08 PM|LINK
Jigar
Contributor
4629 Points
935 Posts
Re: Creating an elliptical Image
Jan 11, 2007 12:19 AM|LINK
Sample code for transperent GIF: http://www.bobpowell.net/giftransparency.htm
For creating ellipse use Graphics.DrawEllipse
Be prepared to make your hands dirty with complicated world of gif images, theoretically its possible to do what you want but doing it with commercial quality images (Photoshop quality) is going to be tough.
GDI+ transparency gif
-----------------------
Do not forget to "Mark as Answer" on the post that helped you.
miztiik
Member
182 Points
236 Posts
Re: Creating an elliptical Image
Jan 11, 2007 12:42 AM|LINK
Ryoushin
Member
292 Points
81 Posts
Re: Creating an elliptical Image
Jan 12, 2007 03:08 PM|LINK
...sure: PNG!
now - finally - fully supported also by IE(7)