Class Index | File Index

Classes


Class createjs.CanvasRenderer


Extends .

Defined in: canvas_renderer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.CanvasRenderer(canvas, scissor)
A class that implements the createjs.Renderer interface with Canvas 2D.
Method Summary
Method Attributes Method Name and Description
 
 
addObject(object)
 
 
Clears the invalidated rectangles.
 
 
Deletes the renderer used for composing a render object with a mask.
 
drawCanvas(canvas, x, y, width, height)
 
drawMask(mask, composition)
Copies the image of a mask renderer, a renderer used for composing a render object with a mask object, to this renderer.
 
drawPartial(image, srcX, srcY, srcWidth, srcHeight, x, y, width, height)
 
drawVideo(video, x, y, width, height)
 
Returns a renderer used for composing a render object with a mask.
 
handleEvent(event)
 
paint(time)
 
setAlpha(alpha)
 
setComposition(operation)
 
setTransformation(a, b, c, d, tx, ty)
Class Detail
createjs.CanvasRenderer(canvas, scissor)
A class that implements the createjs.Renderer interface with Canvas 2D.
Parameters:
{HTMLCanvasElement} canvas
{createjs.BoundingBox} scissor
Method Detail
addDirtyObject(object)
Parameters:
object

addObject(object)
Parameters:
object

begin()

clearScreen()
Clears the invalidated rectangles.

destroy()

destroyMask()
Deletes the renderer used for composing a render object with a mask.

drawCanvas(canvas, x, y, width, height)
Parameters:
canvas
x
y
width
height

drawMask(mask, composition)
Copies the image of a mask renderer, a renderer used for composing a render object with a mask object, to this renderer.
Parameters:
{createjs.CanvasRenderer} mask
{number} composition

drawPartial(image, srcX, srcY, srcWidth, srcHeight, x, y, width, height)
Parameters:
image
srcX
srcY
srcWidth
srcHeight
x
y
width
height

drawVideo(video, x, y, width, height)
Parameters:
video
x
y
width
height

{createjs.CanvasRenderer} getMask()
Returns a renderer used for composing a render object with a mask.
Returns:
{createjs.CanvasRenderer}

handleEvent(event)
Parameters:
event

paint(time)
Parameters:
time

setAlpha(alpha)
Parameters:
alpha

setComposition(operation)
Parameters:
operation

setTransformation(a, b, c, d, tx, ty)
Parameters:
a
b
c
d
tx
ty

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:27 GMT+0900 (JST)