Package | net.flashpunk.graphics |
Class | public class Backdrop |
Inheritance | Backdrop Canvas Graphic Object |
Method | Defined By | ||
---|---|---|---|
Backdrop(texture:*, repeatX:Boolean = true, repeatY:Boolean = true)
Constructor. | Backdrop | ||
applyFilter(filter:BitmapFilter):void | Canvas | ||
copyPixels(source:BitmapData, rect:Rectangle, destPoint:Point, alphaBitmapData:BitmapData = null, alphaPoint:Point = null, mergeAlpha:Boolean = false):void
Mimics BitmapData's copyPixels method. | Canvas | ||
draw(x:int, y:int, source:BitmapData, rect:Rectangle = null):void
Draws to the canvas. | Canvas | ||
drawGraphic(x:int, y:int, source:Graphic):void
Draws the Graphic object to the canvas. | Canvas | ||
drawRect(rect:Rectangle, color:uint = 0, alpha:Number = 1):void
Draws over a rectangular area of the canvas. | Canvas | ||
fill(rect:Rectangle, color:uint = 0, alpha:Number = 1):void
Fills the rectangular area of the canvas. | Canvas | ||
fillTexture(rect:Rectangle, texture:BitmapData):void
Fills the rectangle area of the canvas with the texture. | Canvas | ||
getPixel(x:int, y:int):uint | Canvas | ||
render(target:BitmapData, point:Point, camera:Point):void
Renders the graphic to the screen buffer. | Graphic | ||
setPixel(x:int, y:int, color:uint):void | Canvas | ||
shift(x:int = 0, y:int = 0):void
Shifts the canvas' pixels by the offset. | Canvas | ||
update():void
Updates the graphic. | Graphic |
Backdrop | () | Constructor |
public function Backdrop(texture:*, repeatX:Boolean = true, repeatY:Boolean = true)
Constructor.
Parameterstexture:* — Source texture.
| |
repeatX:Boolean (default = true ) — Repeat horizontally.
| |
repeatY:Boolean (default = true ) — Repeat vertically.
|