Define a rectangle containing the circle, relative to the top left of the image var radius:Number = 100; var centerX:Number = 50; var centerY:NUmber = 400; var rect:Rectangle = new Rectangle(centerX-radius, centerY-radius, radius*2, radius*2) Then use the getPixels() to return a ByteArray of the pixels inside the rectangle. Now you can loop through each pixel and check if it's contained inside the circle var image:BitmapData; var pixels:ByteArray = image. GetPixels(rect); for(var x:int; x var pixel:uint = pixels.readUnsignedInt(); // Check this pixels distance from the center to make sure it is inside the circle.
Var dx:Number = x - radius; var dy:Number = y - radius; if(dx*dx+dy*dy.
Define a rectangle containing the circle, relative to the top left of the image. Var radius:Number = 100; var centerX:Number = 50; var centerY:NUmber = 400; var rect:Rectangle = new Rectangle(centerX-radius, centerY-radius, radius*2, radius*2); Then use the getPixels() to return a ByteArray of the pixels inside the rectangle. Now you can loop through each pixel and check if it's contained inside the circle.
Var image:BitmapData; var pixels:ByteArray = image. GetPixels(rect); for(var x:int; x var pixel:uint = pixels.readUnsignedInt(); // Check this pixels distance from the center to make sure it is inside the circle. Var dx:Number = x - radius; var dy:Number = y - radius; if(dx*dx+dy*dy SetPixels(rect, pixels); I haven't actually used or tested any of this so it might not work.
It might also be easier to work with the data if you use getVector() and setVector() instead.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.