Class Index | File Index

Classes


Class createjs.Composer.Renderer


Defined in: composer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
An inner class that encapsulates a composed image.
Method Summary
Method Attributes Method Name and Description
 
addOffset(red, green, blue, width, height)
Multiplies the specified color to this renderer.
 
Deletes all resources associated with this renderer.
 
drawAlphaMask(alpha, width, height)
Draws an alpha mask.
 
drawImage(image)
Draws an image.
 
fillRect(width, height)
Fills the specified region of this renderer with the color specified with a 'setFillColor()' call.
 
Returns the HTMLCanvasElement object associated with this renderer.
 
multiplyColor(matrix, width, height)
Multiplies the specified color to this renderer.
 
reset(width, height)
Returns the HTMLCanvasElement object associated with this renderer.
 
setAlpha(alpha)
Sets the alpha value used by this renderer.
 
setComposition(operation)
Sets the composition operation used by this renderer.
 
setFillColor(color)
Sets the fill color used by the 'fillRect()' method.
Class Detail
createjs.Composer.Renderer(width, height)
An inner class that encapsulates a composed image.
Parameters:
{number} width
{number} height
Method Detail
addOffset(red, green, blue, width, height)
Multiplies the specified color to this renderer. This method applies the following color-matrix filter to the HTMLCanvasElement object associated with this renderer. | 1 0 0 0 red | | 0 1 0 0 green | A = | 0 0 1 0 blue | | 0 0 0 1 0 | | 0 0 0 0 0 |
Parameters:
{number} red
{number} green
{number} blue
{number} width
{number} height

destroy()
Deletes all resources associated with this renderer.

drawAlphaMask(alpha, width, height)
Draws an alpha mask. This method copies the specified image and applies the following color-matrix filter to the copy. | 1 0 0 0 0 | | 0 1 0 0 0 | A = | 0 0 1 0 0 | | 1 0 0 0 0 | | 0 0 0 0 0 |
Parameters:
{HTMLImageElement|HTMLCanvasElement} alpha
{number} width
{number} height

drawImage(image)
Draws an image.
Parameters:
{HTMLImageElement|HTMLCanvasElement} image

fillRect(width, height)
Fills the specified region of this renderer with the color specified with a 'setFillColor()' call.
Parameters:
{number} width
{number} height

{HTMLCanvasElement} getCanvas()
Returns the HTMLCanvasElement object associated with this renderer.
Returns:
{HTMLCanvasElement}

{number} multiplyColor(matrix, width, height)
Multiplies the specified color to this renderer. This method applies the following color-matrix filter to the HTMLCanvasElement object associated with this renderer. | red 0 0 0 0 | | 0 green 0 0 0 | A = | 0 0 blue 0 0 | | 0 0 0 1 0 | | 0 0 0 0 0 |
Parameters:
{Array.} matrix
{number} width
{number} height
Returns:
{number}

reset(width, height)
Returns the HTMLCanvasElement object associated with this renderer.
Parameters:
{number} width
{number} height

setAlpha(alpha)
Sets the alpha value used by this renderer.
Parameters:
{number} alpha

setComposition(operation)
Sets the composition operation used by this renderer.
Parameters:
{number} operation

setFillColor(color)
Sets the fill color used by the 'fillRect()' method.
Parameters:
{string} color

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