Pixel Snapping : Bitmap : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Bitmap »

 

Pixel Snapping


 

package{
  import flash.display.*;
  
  public class Main extends Sprite{
    public function Main(){
        var squareData:BitmapData = new BitmapData(200200, false, 0xFFCC00CC);
        var bitmap:Bitmap = new Bitmap(bitmapData, PixelSnapping.ALWAYS);
        bitmap.pixelSnapping = PixelSnapping.NEVER;
        addChild(bitmap);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» Bitmap