开发者

Silverlight Image Positioning/Transformation

开发者 https://www.devze.com 2022-12-12 07:07 出处:网络
What I would like to do is the following:开发者_JS百科 Change the points of the four corners of an image.

What I would like to do is the following:开发者_JS百科 Change the points of the four corners of an image.

What is possible now, is to change the top left corner. But that will only move the image. I want to transform the image by changing the corner coordinates. The effect will be a 3d-kind transformation. A skew transformation will not do, I want to be able to position the corners freely.

Is this possible?


I don't think you can just place corners of an image arbitarily and have it distort accordingly. It might be better if you specified the effect you are trying to acheive.

There are couple of options which may or may not suit.

  1. Would a Matrix3DProjection serve your purpose (as well as do a lot a math for you)?
  2. Would using the image to Fill a path or using a path to clip the image get the effect you want.
0

精彩评论

暂无评论...
验证码 换一张
取 消