Skip to main content

Problems with ImageView and Image

1 reply [Last post]
Joined: 2008-07-29


Imagine we have an Image clipped in a rectangle.

var img:Image;
var pnt:Number[];
ImageView { image: bind img
clip: Rectangle {points: bind pnt}

It is posible to make the image "fit" the points of the Rectangle if we change them?
I'd like to know if there's anyway of doing this without using Scale

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-10-23

Sorry if I dont understand you completly, but are you saying that if something was to change the points on the rectangle, then you want the Image size to change so that its points no longer clip?

Maybe triggers are what you should look into: