http://blog.nihilogic.dk/
Canvas element
Attributes
Name Type Default
width unsigned long 300
height unsigned long 150
Methods
Return Name
string toDataURL(
[Optional] string type,
[Variadic] any args)
Object getContext( string contextId)
2D Context...
More
http://blog.nihilogic.dk/
Canvas element
Attributes
Name Type Default
width unsigned long 300
height unsigned long 150
Methods
Return Name
string toDataURL(
[Optional] string type,
[Variadic] any args)
Object getContext( string contextId)
2D Context
Attributes
Name Type
canvas HTMLCanvasObject [readonly]
Methods
Return Name
void save( )
void restore( )
Transformation
Methods
Return Name
void scale( float x, float y)
void rotate( float angle)
void translate( float x, float y)
void transform(
float m11, float m12,
float m21, float m22,
float dx, float dy)
void setTransform(
float m11, float m12,
float m21, float m22,
float dx, float dy)
Image drawing
Methods
Return Name
void drawImage(
Object image,
float dx, float dy,
[Optional] float dw, float dh)
Argument "image" can be of type HTMLImageElement,
HTMLCanvasElement or HTMLVideoElement
void drawImage(
Object image,
float sx, float sy, float sw, float sh,
float dx, float dy, float dw, float dh)
Compositing
Attributes
Name Type Default
glo
Less