Flex图片裁剪

http://flexblocks.wordpress.com/2008/02/20/flex-image-cropping-component/

ImageCropper is a free component (licensed under the MIT License) for Adobe Flex that allows an image to be cropped by adjusting the position and dimensions of a cropping rectangle that overlays the image.

ImageCropper Component Demo

 

The image used as the source for the ImageCropper may be provided as a BitmapData object or as a URL that points to an external image.

The component can return the cropped image as a BitmapData object, or it can return a Rectangle that defines the cropped area. Retrieving a Rectangle from the component is useful if the image will be cropped on a server (perhaps by a Content Management System).

In addition to allowing unconstrained cropping, the component may be configured to constrain the cropping rectangle to an aspect ratio. For example, defining a cropping rectangle with a width of 200 pixels and a height of 100 pixels and then enabling the aspect ratio constraint will result in the cropping rectangle maintaining a 2:1 aspect ratio as it is resized.

The size of the cropping rectangle handles may be modified, as may the color and transparency values used for the handles, the cropping rectangle outline, the mask and the background.

Resources:

ImageCropper is copyright © 2008 by Paul Whitelock.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值