Module:libdomPackage:org.milescript.canvasParent:ObjectGenerated by MilescriptCompiler (Copyright 2008, Point5u LLC.)

org.milescript.canvas.Context2D

Inheritance : Object

Constructors

Signature
public Context2D()

Methods

NameSignature
arcvoid arc(float x, float y, float radius, float startAngle, float endAngle, boolean anticlockwise)
arcTovoid arcTo(float x1, float y1, float x2, float y2, float radius)
beginPathvoid beginPath()
bezierCurveTovoid bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y)
clearRectvoid clearRect(float x, float y, float w, float h)
clipvoid clip()
closePathvoid closePath()
createImageDataImageData createImageData(float sw, float sh)
createLinearGradientCanvasGradient createLinearGradient(float x0, float y0, float x1, float y1)
createPatternCanvasPattern createPattern(HTMLImage image, String repetition)
createPatternCanvasPattern createPattern(HTMLCanvas image, String repetition)
createRadialGradientCanvasGradient createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1)
drawImagevoid drawImage(HTMLImage image, float dx, float dy)
drawImagevoid drawImage(HTMLCanvas image, float dx, float dy)
drawImagevoid drawImage(HTMLCanvas image, float dx, float dy, float dw, float dh)
drawImagevoid drawImage(HTMLImage image, float dx, float dy, float dw, float dh)
drawImagevoid drawImage(HTMLCanvas image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh)
drawImagevoid drawImage(HTMLImage image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh)
fillvoid fill()
fillRectvoid fillRect(float x, float y, float w, float h)
getImageDataImageData getImageData(float sx, float sy, float sw, float sh)
isPointInPathboolean isPointInPath(float x, float y)
lineTovoid lineTo(float x, float y)
moveTovoid moveTo(float x, float y)
putImageDatavoid putImageData(ImageData imagedata, float dx, float dy)
putImageDatavoid putImageData(ImageData imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight)
quadraticCurveTovoid quadraticCurveTo(float cpx, float cpy, float x, float y)
rectvoid rect(float x, float y, float w, float h)
restorevoid restore()
rotatevoid rotate(float angle)
savevoid save()
scalevoid scale(float x, float y)
setTransformvoid setTransform(float m11, float m12, float m21, float m22, float dx, float dy)
strokevoid stroke()
strokeRectvoid strokeRect(float x, float y, float w, float h)
transformvoid transform(float m11, float m12, float m21, float m22, float dx, float dy)
translatevoid translate(float x, float y)

Properties

NameTypeComment
fillStyle
core.Object
globalAlpha
core.float
globalCompositeOperation
core.String
lineCap
core.String
lineJoin
core.String
lineWidth
core.float
miterLimit
core.float
shadowBlur
core.float
shadowColor
core.String
shadowOffsetX
core.float
shadowOffsetY
core.float
strokeStyle
core.Object

Constructors

public Context2D()


Methods

arc

void arc(float x, float y, float radius, float startAngle, float endAngle, boolean anticlockwise)

Parameters

NameTypeDescription
xcore.float
ycore.float
radiuscore.float
startAnglecore.float
endAnglecore.float
anticlockwisecore.boolean

arcTo

void arcTo(float x1, float y1, float x2, float y2, float radius)

Parameters

NameTypeDescription
x1core.float
y1core.float
x2core.float
y2core.float
radiuscore.float

beginPath

void beginPath()


bezierCurveTo

void bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y)

Parameters

NameTypeDescription
cp1xcore.float
cp1ycore.float
cp2xcore.float
cp2ycore.float
xcore.float
ycore.float

clearRect

void clearRect(float x, float y, float w, float h)

Parameters

NameTypeDescription
xcore.float
ycore.float
wcore.float
hcore.float

clip

void clip()


closePath

void closePath()


createImageData

ImageData createImageData(float sw, float sh)

Returns
org.milescript.canvas.ImageData

Parameters

NameTypeDescription
swcore.float
shcore.float

createLinearGradient

CanvasGradient createLinearGradient(float x0, float y0, float x1, float y1)

Returns
org.milescript.canvas.CanvasGradient

Parameters

NameTypeDescription
x0core.float
y0core.float
x1core.float
y1core.float

createPattern

CanvasPattern createPattern(HTMLImage image, String repetition)

Returns
org.milescript.canvas.CanvasPattern

Parameters

NameTypeDescription
imageorg.milescript.dom.HTMLImage
repetitioncore.String

createPattern

CanvasPattern createPattern(HTMLCanvas image, String repetition)

Returns
org.milescript.canvas.CanvasPattern

Parameters

NameTypeDescription
imageorg.milescript.canvas.HTMLCanvas
repetitioncore.String

createRadialGradient

CanvasGradient createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1)

Returns
org.milescript.canvas.CanvasGradient

Parameters

NameTypeDescription
x0core.float
y0core.float
r0core.float
x1core.float
y1core.float
r1core.float

drawImage

void drawImage(HTMLImage image, float dx, float dy)

Parameters

NameTypeDescription
imageorg.milescript.dom.HTMLImage
dxcore.float
dycore.float

drawImage

void drawImage(HTMLCanvas image, float dx, float dy)

Parameters

NameTypeDescription
imageorg.milescript.canvas.HTMLCanvas
dxcore.float
dycore.float

drawImage

void drawImage(HTMLCanvas image, float dx, float dy, float dw, float dh)

Parameters

NameTypeDescription
imageorg.milescript.canvas.HTMLCanvas
dxcore.float
dycore.float
dwcore.float
dhcore.float

drawImage

void drawImage(HTMLImage image, float dx, float dy, float dw, float dh)

Parameters

NameTypeDescription
imageorg.milescript.dom.HTMLImage
dxcore.float
dycore.float
dwcore.float
dhcore.float

drawImage

void drawImage(HTMLCanvas image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh)

Parameters

NameTypeDescription
imageorg.milescript.canvas.HTMLCanvas
sxcore.float
sycore.float
swcore.float
shcore.float
dxcore.float
dycore.float
dwcore.float
dhcore.float

drawImage

void drawImage(HTMLImage image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh)

Parameters

NameTypeDescription
imageorg.milescript.dom.HTMLImage
sxcore.float
sycore.float
swcore.float
shcore.float
dxcore.float
dycore.float
dwcore.float
dhcore.float

fill

void fill()


fillRect

void fillRect(float x, float y, float w, float h)

Parameters

NameTypeDescription
xcore.float
ycore.float
wcore.float
hcore.float

getImageData

ImageData getImageData(float sx, float sy, float sw, float sh)

Returns
org.milescript.canvas.ImageData

Parameters

NameTypeDescription
sxcore.float
sycore.float
swcore.float
shcore.float

isPointInPath

boolean isPointInPath(float x, float y)

Returns
core.boolean

Parameters

NameTypeDescription
xcore.float
ycore.float

lineTo

void lineTo(float x, float y)

Parameters

NameTypeDescription
xcore.float
ycore.float

moveTo

void moveTo(float x, float y)

Parameters

NameTypeDescription
xcore.float
ycore.float

putImageData

void putImageData(ImageData imagedata, float dx, float dy)

Parameters

NameTypeDescription
imagedataorg.milescript.canvas.ImageData
dxcore.float
dycore.float

putImageData

void putImageData(ImageData imagedata, float dx, float dy, float dirtyX, float dirtyY, float dirtyWidth, float dirtyHeight)

Parameters

NameTypeDescription
imagedataorg.milescript.canvas.ImageData
dxcore.float
dycore.float
dirtyXcore.float
dirtyYcore.float
dirtyWidthcore.float
dirtyHeightcore.float

quadraticCurveTo

void quadraticCurveTo(float cpx, float cpy, float x, float y)

Parameters

NameTypeDescription
cpxcore.float
cpycore.float
xcore.float
ycore.float

rect

void rect(float x, float y, float w, float h)

Parameters

NameTypeDescription
xcore.float
ycore.float
wcore.float
hcore.float

restore

void restore()


rotate

void rotate(float angle)

Parameters

NameTypeDescription
anglecore.float

save

void save()


scale

void scale(float x, float y)

Parameters

NameTypeDescription
xcore.float
ycore.float

setTransform

void setTransform(float m11, float m12, float m21, float m22, float dx, float dy)

Parameters

NameTypeDescription
m11core.float
m12core.float
m21core.float
m22core.float
dxcore.float
dycore.float

stroke

void stroke()


strokeRect

void strokeRect(float x, float y, float w, float h)

Parameters

NameTypeDescription
xcore.float
ycore.float
wcore.float
hcore.float

transform

void transform(float m11, float m12, float m21, float m22, float dx, float dy)

Parameters

NameTypeDescription
m11core.float
m12core.float
m21core.float
m22core.float
dxcore.float
dycore.float

translate

void translate(float x, float y)

Parameters

NameTypeDescription
xcore.float
ycore.float

Module:libdomPackage:org.milescript.canvasParent:ObjectGenerated by MilescriptCompiler (Copyright 2008, Point5u LLC.)