我使用核心 copyPixel 方法在 flex 中创建了一个图像裁剪工具。
croppedBitmapData.copyPixels(croppedBitmapData, clipCan, new Point(0, 0));
我必须裁剪 20*20 的 demention 区域,并在 demention 250*350 的图像中显示这个裁剪区域。一切顺利。我的问题是图像失真。
即使我正在使用这种方法来平滑图像内容。
private function smoothImage(event:Event):void
{
var bitmap: Bitmap = ((event.target as Image).content as Bitmap);
if (bitmap != null)
{
bitmap.smoothing = true;
}
}
我想得到这个网站的结果。 http://www.yourplayingcards.com/builder/
请帮助我摆脱图像失真。
Can we show bitmapdata of 20*20 into image of 250*350 without distotion?