vincent

Crop advanced

Recommended Posts

Hi,

 

Can we have a custom mask? Instead of the default rectangle?

 

Can we have two different bounding box? One for the mask relative to the image. One for the image relative to the mask.

 

Thanks again

Share this post


Link to post
Share on other sites

And last thing, you forgot compatibility with Flex components (crop.as).

 

if (parent.hasOwnProperty("addElementAt")) { //for Flex compatibility (spark)

...

} else {

 

_target.parent.addChildAt(this, targetIndex+1);

_target.parent.addChildAt(_mask, targetIndex+1);

}

 

 

Thanks

Share this post


Link to post
Share on other sites

Oh, were you trying to use Crop.as in Flex? No need - that's exactly why I created FlexCrop :)

 

As for the other custom functionality you mentioned, you're welcome to add that yourself (it isn't supported natively). Keep in mind that Crop and FlexCrop were intended to be simply examples of how you could implement cropping behavior. Think of them as a jumping-off point. TransformManager drives everything under the hood anyway.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.