コアの copyPixel メソッドを使用して、Flex で画像トリミング ツールを作成しました。
croppedBitmapData.copyPixels(croppedBitmapData, clipCan, new Point(0, 0));
寸法 20*20 の領域をトリミングし、このトリミングされた領域を寸法 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?