想要帮助在Silverlight 4中制作不同形状的画布 [英] Want a help to make the canvas in different shapes in silverlight 4

查看:115
本文介绍了想要帮助在Silverlight 4中制作不同形状的画布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Silverlight4开发图像处理模块,因此我在努力满足以下要求:

我必须为图像创建一个工作空间/画布,该图像可以具有不同的形状,例如椭圆,圆形,矩形,正方形和心形

矩形和正方形的形状很容易实现,但是我对其他形状有疑问

注意:canvas.clip只是剪切画布.如果使用剪切方法,图像将无法在给定的形状内自由移动.我尝试了剪切,但不是可行的解决方案

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.

推荐答案

您可以在Silverlight中制作所需的任何形状-请参见
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.


这篇关于想要帮助在Silverlight 4中制作不同形状的画布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆