Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 flex/as3当我旋转绘制位图数据的对象时,一条弯曲的细线穿过uicomponent边缘_Actionscript 3_Flash_Apache Flex - Fatal编程技术网

Actionscript 3 flex/as3当我旋转绘制位图数据的对象时,一条弯曲的细线穿过uicomponent边缘

Actionscript 3 flex/as3当我旋转绘制位图数据的对象时,一条弯曲的细线穿过uicomponent边缘,actionscript-3,flash,apache-flex,Actionscript 3,Flash,Apache Flex,我正在通过graphics.draw在ui组件上绘制位图数据。这些是边条。但当我旋转或缩放该组件时,它会在组件的边缘创建弯曲的线 我尝试了->平滑、像素捕捉、位图缓存、StageEquality,还将位图更改为300dpi,但仍然面临着厄运 使用Flex4.6 我已经做了一个棘手的解决方案 Need to draw one eraser on border so that border getting transparent. /** Create One UI component Whe

我正在通过graphics.draw在ui组件上绘制位图数据。这些是边条。但当我旋转或缩放该组件时,它会在组件的边缘创建弯曲的线

我尝试了->平滑、像素捕捉、位图缓存、StageEquality,还将位图更改为300dpi,但仍然面临着厄运

  • 使用Flex4.6

我已经做了一个棘手的解决方案

Need to draw one eraser on border so that border getting transparent.

/**
Create One UI component
Where you can add your bitmap data
Set its blend mode to BlendMode.LAYER
*/
var imgUI:UIComponent = new UIComponent();
this.addChild(imgUI);
imgUI.blendMode = BlendMode.LAYER;

/**
Create One UI component
Where you can write erase border code
Set its blend mode to BlendMode.ERASE
*/
eraser = new UIComponent();
imgUI.addChild(eraser);
eraser.blendMode = BlendMode.ERASE;

/**
Draw Btiamdata
*/
imgUI.graphics.clear();
imgUI.graphics.beginBitmapFill(urBitmapData,new Matrics,true,true);
imgUI.graphics.drawRect(0,0,urBitmapData.width,urBitmapData.height);
imgUI.graphics.endFill();

/**
Write eraser code
*/  
eraser.graphics.clear();
eraser.graphics.beginFill(0xffffff, 1);
eraser.graphics.drawRect(0, 0, 2, urBitmapData.height);
eraser.graphics.endFill();


请告诉我,如果有任何混淆

您不是唯一一个有此问题的人,可能是Flex实现的BitmapData造成的,它在查询时返回边界上带有1 alpha的插值,而不是半像素边界,而不是带有0 alpha的插值。尝试使位图完全不透明,这些缩进的颜色与背景相同,但可能仍然会产生不好的边框;(