Click here to Skip to main content
15,904,416 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing an image processing module in silverlight4 in this i am stumbling to meet the requirement for the following:

i have to create a workspace/canvas for image which can be in different shapes such as Ellipse,Circle,Rectangle,Square and HEART

The shapes Rectangle and square can easily be achieved but i am having problem with other shapes

Note: canvas.clip just clips the canvas.The image cannot move freely within the given shape if i used clipping method.I have tried clipping but is not a feasible solution

Kindly help me out this.
Posted
Updated 21-Jun-11 21:11pm
v2

1 solution

You can make any shape that you want in Silverlight - see here[^]. You dont need to change the shape of the canvas to do this. The canvas will act as a placeholder for any shape.
 
Share this answer
 
Comments
Member 4217433 22-Jun-11 3:45am    
Thanks for your reply.But actually the thing is that if i going to place an ellipse in that canvas,it will be difficult to place a new image inside that ellipse, i can not move that image in within that shape and what about the heart shape then?.I have tried that way.The client is requiring the canvas to be made in the given shape at runtime.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900