1

SWFupload クライアント側のサイズ変更を使用しようとしていますが、現在、適用されているぼかしフィルターが原因でエラーが発生しています。オンラインで解決策を見つけましたが、最終的なswfファイルではなく、解決策の説明のみを提供します。答えは……でした。

I wrapped the blurFilter code in loaderComplete() in ImageResizer.as with the following     if statement and now everything works like a charm:

if (bmp.width * bmp.height < 0x01000000) {
  // existing blur if statement and code

} 

参照していると思われるASファイルの元のポイントを見つけました...

// Blur it a bit if it is sizing smaller
if (this.newWidth < bmp.width || this.newHeight < bmp.height) {
// Apply the blur filter that helps clean up the resized image result
var blurMultiplier:Number = 1.15; // 1.25;
var blurXValue:Number = Math.max(1, bmp.width / this.newWidth) * blurMultiplier;
var blurYValue:Number = Math.max(1, bmp.height / this.newHeight) * blurMultiplier;

var blurFilter:BlurFilter = new BlurFilter(blurXValue, blurYValue,           int(BitmapFilterQuality.LOW));
bmp.applyFilter(bmp, new Rectangle(0, 0, bmp.width, bmp.height), new Point(0, 0),     blurFilter);
}

アクションスクリプトにもう少し熟練した誰かが、このコードに修正を適用する方法を説明できますか? FlashDevelop を使用して SWF に再コンパイルできると思います

4

0 に答える 0