CanvasRenderingContext2D

Undocumented in source.
@safe nothrow
struct CanvasRenderingContext2D {}

Constructors

this
this(Handle h)
Undocumented in source.

Alias This

handle

Members

Functions

arc
void arc(double x, double y, double radius, double startAngle, double endAngle, bool anticlockwise)
Undocumented in source. Be warned that the author may not have intended to support it.
arc
void arc(double x, double y, double radius, double startAngle, double endAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
arcTo
void arcTo(double x1, double y1, double x2, double y2, double radius)
Undocumented in source. Be warned that the author may not have intended to support it.
beginPath
void beginPath()
Undocumented in source. Be warned that the author may not have intended to support it.
bezierCurveTo
void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
canvas
auto canvas()
Undocumented in source. Be warned that the author may not have intended to support it.
clearRect
void clearRect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip(CanvasFillRule fillRule)
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip()
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip(Path2D path, CanvasFillRule fillRule)
Undocumented in source. Be warned that the author may not have intended to support it.
clip
void clip(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
closePath
void closePath()
Undocumented in source. Be warned that the author may not have intended to support it.
createImageData
auto createImageData(int sw, int sh)
Undocumented in source. Be warned that the author may not have intended to support it.
createImageData
auto createImageData(ImageData imagedata)
Undocumented in source. Be warned that the author may not have intended to support it.
createLinearGradient
auto createLinearGradient(double x0, double y0, double x1, double y1)
Undocumented in source. Be warned that the author may not have intended to support it.
createPattern
auto createPattern(CanvasImageSource image, string repetition)
Undocumented in source. Be warned that the author may not have intended to support it.
createRadialGradient
auto createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
Undocumented in source. Be warned that the author may not have intended to support it.
direction
void direction(CanvasDirection direction)
Undocumented in source. Be warned that the author may not have intended to support it.
direction
auto direction()
Undocumented in source. Be warned that the author may not have intended to support it.
drawFocusIfNeeded
void drawFocusIfNeeded(Element element)
Undocumented in source. Be warned that the author may not have intended to support it.
drawFocusIfNeeded
void drawFocusIfNeeded(Path2D path, Element element)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(CanvasImageSource image, double dx, double dy)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(CanvasImageSource image, double dx, double dy, double dw, double dh)
Undocumented in source. Be warned that the author may not have intended to support it.
drawImage
void drawImage(CanvasImageSource image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh)
Undocumented in source. Be warned that the author may not have intended to support it.
ellipse
void ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, bool anticlockwise)
Undocumented in source. Be warned that the author may not have intended to support it.
ellipse
void ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(CanvasFillRule fillRule)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill()
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(Path2D path, CanvasFillRule fillRule)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
fillRect
void fillRect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
fillStyle
void fillStyle(SumType!(string, CanvasGradient, CanvasPattern) fillStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
fillStyle
auto fillStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
fillText
void fillText(string text, double x, double y, double maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
fillText
void fillText(string text, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
filter
void filter(string filter)
Undocumented in source. Be warned that the author may not have intended to support it.
filter
auto filter()
Undocumented in source. Be warned that the author may not have intended to support it.
font
void font(string font)
Undocumented in source. Be warned that the author may not have intended to support it.
font
auto font()
Undocumented in source. Be warned that the author may not have intended to support it.
getImageData
auto getImageData(int sx, int sy, int sw, int sh)
Undocumented in source. Be warned that the author may not have intended to support it.
getLineDash
auto getLineDash()
Undocumented in source. Be warned that the author may not have intended to support it.
getTransform
auto getTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
globalAlpha
void globalAlpha(double globalAlpha)
Undocumented in source. Be warned that the author may not have intended to support it.
globalAlpha
auto globalAlpha()
Undocumented in source. Be warned that the author may not have intended to support it.
globalCompositeOperation
void globalCompositeOperation(string globalCompositeOperation)
Undocumented in source. Be warned that the author may not have intended to support it.
globalCompositeOperation
auto globalCompositeOperation()
Undocumented in source. Be warned that the author may not have intended to support it.
imageSmoothingEnabled
void imageSmoothingEnabled(bool imageSmoothingEnabled)
Undocumented in source. Be warned that the author may not have intended to support it.
imageSmoothingEnabled
auto imageSmoothingEnabled()
Undocumented in source. Be warned that the author may not have intended to support it.
imageSmoothingQuality
void imageSmoothingQuality(ImageSmoothingQuality imageSmoothingQuality)
Undocumented in source. Be warned that the author may not have intended to support it.
imageSmoothingQuality
auto imageSmoothingQuality()
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
auto isPointInPath(double x, double y, CanvasFillRule fillRule)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
auto isPointInPath(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
auto isPointInPath(Path2D path, double x, double y, CanvasFillRule fillRule)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInPath
auto isPointInPath(Path2D path, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInStroke
auto isPointInStroke(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
isPointInStroke
auto isPointInStroke(Path2D path, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
lineCap
void lineCap(CanvasLineCap lineCap)
Undocumented in source. Be warned that the author may not have intended to support it.
lineCap
auto lineCap()
Undocumented in source. Be warned that the author may not have intended to support it.
lineDashOffset
void lineDashOffset(double lineDashOffset)
Undocumented in source. Be warned that the author may not have intended to support it.
lineDashOffset
auto lineDashOffset()
Undocumented in source. Be warned that the author may not have intended to support it.
lineJoin
void lineJoin(CanvasLineJoin lineJoin)
Undocumented in source. Be warned that the author may not have intended to support it.
lineJoin
auto lineJoin()
Undocumented in source. Be warned that the author may not have intended to support it.
lineTo
void lineTo(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
lineWidth
void lineWidth(double lineWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
lineWidth
auto lineWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
measureText
auto measureText(string text)
Undocumented in source. Be warned that the author may not have intended to support it.
miterLimit
void miterLimit(double miterLimit)
Undocumented in source. Be warned that the author may not have intended to support it.
miterLimit
auto miterLimit()
Undocumented in source. Be warned that the author may not have intended to support it.
moveTo
void moveTo(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
putImageData
void putImageData(ImageData imagedata, int dx, int dy)
Undocumented in source. Be warned that the author may not have intended to support it.
putImageData
void putImageData(ImageData imagedata, int dx, int dy, int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight)
Undocumented in source. Be warned that the author may not have intended to support it.
quadraticCurveTo
void quadraticCurveTo(double cpx, double cpy, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
rect
void rect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
resetTransform
void resetTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
restore
void restore()
Undocumented in source. Be warned that the author may not have intended to support it.
rotate
void rotate(double angle)
Undocumented in source. Be warned that the author may not have intended to support it.
save
void save()
Undocumented in source. Be warned that the author may not have intended to support it.
scale
void scale(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
scrollPathIntoView
void scrollPathIntoView()
Undocumented in source. Be warned that the author may not have intended to support it.
scrollPathIntoView
void scrollPathIntoView(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
setLineDash
void setLineDash(Sequence!(double) segments)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransform
void setTransform(double a, double b, double c, double d, double e, double f)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransform
void setTransform(DOMMatrix2DInit transform)
Undocumented in source. Be warned that the author may not have intended to support it.
setTransform
void setTransform()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowBlur
void shadowBlur(double shadowBlur)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowBlur
auto shadowBlur()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowColor
void shadowColor(string shadowColor)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowColor
auto shadowColor()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetX
void shadowOffsetX(double shadowOffsetX)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetX
auto shadowOffsetX()
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetY
void shadowOffsetY(double shadowOffsetY)
Undocumented in source. Be warned that the author may not have intended to support it.
shadowOffsetY
auto shadowOffsetY()
Undocumented in source. Be warned that the author may not have intended to support it.
stroke
void stroke()
Undocumented in source. Be warned that the author may not have intended to support it.
stroke
void stroke(Path2D path)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeRect
void strokeRect(double x, double y, double w, double h)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeStyle
void strokeStyle(SumType!(string, CanvasGradient, CanvasPattern) strokeStyle)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeStyle
auto strokeStyle()
Undocumented in source. Be warned that the author may not have intended to support it.
strokeText
void strokeText(string text, double x, double y, double maxWidth)
Undocumented in source. Be warned that the author may not have intended to support it.
strokeText
void strokeText(string text, double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.
textAlign
void textAlign(CanvasTextAlign textAlign)
Undocumented in source. Be warned that the author may not have intended to support it.
textAlign
auto textAlign()
Undocumented in source. Be warned that the author may not have intended to support it.
textBaseline
void textBaseline(CanvasTextBaseline textBaseline)
Undocumented in source. Be warned that the author may not have intended to support it.
textBaseline
auto textBaseline()
Undocumented in source. Be warned that the author may not have intended to support it.
transform
void transform(double a, double b, double c, double d, double e, double f)
Undocumented in source. Be warned that the author may not have intended to support it.
translate
void translate(double x, double y)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

handle
JsHandle handle;
Undocumented in source.

Meta