Class CanvasRenderingImpl
java.lang.Object
org.loboevolution.html.dom.canvas.CanvasRenderingImpl
- All Implemented Interfaces:
CanvasRenderingContext
,CanvasRenderingContext2D
CanvasRenderingImpl class.
-
Constructor Summary
ConstructorDescriptionConstructor for CanvasRenderingImpl. -
Method Summary
Modifier and TypeMethodDescriptionvoid
The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.void
arc
(Double x, Double y, Double radius, Integer startAngle, Double endAngle, boolean counterclockwise) The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.void
The CanvasRenderingContext2D.arcTo() method of the Canvas 2D API adds a circular arc to the current sub-path, using the given control points and radius.void
The CanvasRenderingContext2D.beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths.void
The CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Binvalid input: 'é'();zier curve to the current sub-path.void
The CanvasRenderingContext2D.clearRect() method of the Canvas 2D API erases the pixels in a rectangular area by setting them to transparent black.void
clip()
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.void
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.void
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.void
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region.void
The CanvasRenderingContext2D.closePath() method of the Canvas 2D API attempts to add a straight line from the current poInteger to the start of the current sub-path.createConicGradient
(Integer startAngle, Integer x, Integer y) createImageData
(Integer sw, Integer sh) The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.createImageData
(Integer sw, Integer sh, ImageDataSettings settings) The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.createImageData
(ImageData imagedata) The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions.createLinearGradient
(Integer x0, Integer y0, Integer x1, Integer y1) The CanvasRenderingContext2D.createLinearGradient() method of the Canvas 2D API creates a gradient along the line connecting two given coordinates.createPattern
(CanvasImageSource image, String repetition) The CanvasRenderingContext2D.createPattern() method of the Canvas 2D API creates a pattern using the specified image and repetition.The CanvasRenderingContext2D.createRadialGradient() method of the Canvas 2D API creates a radial gradient using the size and coordinates of two circles.void
drawFocusIfNeeded
(Path2D path, Element element) The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.void
drawFocusIfNeeded
(Element element) The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.void
drawImage
(CanvasImageSource image, Integer dx, Integer dy) The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.void
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.void
drawImage
(CanvasImageSource image, Integer sx, Integer sy, Integer sw, Integer sh, Integer dx, Integer dy, Integer dw, Integer dh) The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.void
ellipse
(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.void
ellipse
(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle, boolean counterclockwise) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.void
fill()
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.void
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.void
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.void
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.void
The CanvasRenderingContext2D.fillRect() method of the Canvas 2D API draws a rectangle that is filled according to the current fillStyle.void
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle.void
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle.The CanvasRenderingContext2D.direction property of the Canvas 2D API specifies the current text direction used to draw text.The CanvasRenderingContext2D.filter property of the Canvas 2D API provides filter effects such as blurring and grayscaling.getFont()
The CanvasRenderingContext2D.font property of the Canvas 2D API specifies the current text style to use when drawing text.The CanvasRenderingContext2D.globalAlpha property of the Canvas 2D API specifies the alpha (transparency) value that is applied to shapes and images before they are drawn onto the canvas.getImageData
(Integer sx, Integer sy, Integer sw, Integer sh) The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.getImageData
(Integer sx, Integer sy, Integer sw, Integer sh, ImageDataSettings settings) The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.boolean
The imageSmoothingEnabled property of the CanvasRenderingContext2D interface, part of the Canvas API, determines whether scaled images are smoothed (true, default) or not (false).The imageSmoothingQuality property of the CanvasRenderingContext2D interface, part of the Canvas API, lets you set the quality of image smoothing.The CanvasRenderingContext2D.lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines.The getLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern.The CanvasRenderingContext2D.lineJoin property of the Canvas 2D API determines the shape used to join two line segments where they meet.The CanvasRenderingContext2D.shadowColor property of the Canvas 2D API specifies the color of shadows.The CanvasRenderingContext2D.getTransform() method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.boolean
boolean
isPointInPath
(Path2D path, Integer x, Integer y) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.boolean
isPointInPath
(Path2D path, Integer x, Integer y, String fillRule) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.boolean
isPointInPath
(Integer x, Integer y) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.boolean
isPointInPath
(Integer x, Integer y, String fillRule) The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.boolean
isPointInStroke
(Path2D path, Integer x, Integer y) The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified poInteger is inside the area contained by the stroking of a path.boolean
isPointInStroke
(Integer x, Integer y) The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified poInteger is inside the area contained by the stroking of a path.The CanvasRenderingContext2D.lineDashOffset property of the Canvas 2D API sets the line dash offset, or invalid input: '"'();phase.invalid input: '"'();void
The CanvasRenderingContext2D method lineTo(), part of the Canvas 2D API, adds a straight line to the current sub-path by connecting the sub-path's last poInteger to the specified (x, y) coordinates.measureText
(String text) The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).void
The CanvasRenderingContext2D.moveTo() method of the Canvas 2D API begins a new sub-path at the poInteger specified by the given (x, y) coordinates.void
putImageData
(ImageData imagedata, Integer dx, Integer dy) The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas.void
putImageData
(ImageData imagedata, Integer dx, Integer dy, Integer dirtyX, Integer dirtyY, Integer dirtyWidth, Integer dirtyHeight) The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas.void
quadraticCurveTo
(Integer cpx, Integer cpy, Integer x, Integer y) The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Binvalid input: 'é'();zier curve to the current sub-path.void
The CanvasRenderingContext2D.rect() method of the Canvas 2D API adds a rectangle to the current path.void
reset()
void
The CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform to the identity matrix.void
restore()
The CanvasRenderingContext2D.restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack.void
The CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.void
void
save()
The CanvasRenderingContext2D.save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.void
The CanvasRenderingContext2D.scale() method of the Canvas 2D API adds a scaling transformation to the canvas units horizontally and/or vertically.void
The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view.void
scrollPathIntoView
(Path2D path) The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view.void
setFillStyle
(Object style) void
void
setGlobalAlpha
(Float globalAlpha) void
setLineCap
(String lineCap) void
setLineDash
(List<Integer> segments) The setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines.void
setLineJoin
(String lineJoin) void
setStrokeStyle
(Object style) void
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.void
setTransform
(DOMMatrix2DInit transform) The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method.void
stroke()
The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.void
The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.void
strokeRect
(Integer x, Integer y, Integer w, Integer h) The CanvasRenderingContext2D.strokeRect() method of the Canvas 2D API draws a rectangle that is stroked (outlined) according to the current strokeStyle and other context settings.void
strokeText
(String text, Integer x, Integer y) The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&mdash'(); that is, draws the outlines of invalid input: '&mdash'(); the characters of a text string at the specified coordinates.void
strokeText
(String text, Integer x, Integer y, Integer maxWidth) The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&mdash'(); that is, draws the outlines of invalid input: '&mdash'(); the characters of a text string at the specified coordinates.void
The CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method.void
The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation to the current matrix.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.loboevolution.html.dom.canvas.CanvasRenderingContext2D
getCanvas, getFillStyle, getGlobalCompositeOperation, getLineWidth, getMiterLimit, getShadowBlur, getShadowOffsetX, getShadowOffsetY, getStrokeStyle, getTextAlign, getTextBaseline
-
Constructor Details
-
CanvasRenderingImpl
Constructor for CanvasRenderingImpl.
- Parameters:
canvas
- aHTMLCanvasElementImpl
object.
-
-
Method Details
-
getDirection
The CanvasRenderingContext2D.direction property of the Canvas 2D API specifies the current text direction used to draw text.- Specified by:
getDirection
in interfaceCanvasRenderingContext2D
- See Also:
-
getFilter
The CanvasRenderingContext2D.filter property of the Canvas 2D API provides filter effects such as blurring and grayscaling. It is similar to the CSS filter property and accepts the same values.- Specified by:
getFilter
in interfaceCanvasRenderingContext2D
- See Also:
-
getFont
The CanvasRenderingContext2D.font property of the Canvas 2D API specifies the current text style to use when drawing text. This string uses the same syntax as the CSS font specifier.- Specified by:
getFont
in interfaceCanvasRenderingContext2D
- See Also:
-
getFontKerning
- Specified by:
getFontKerning
in interfaceCanvasRenderingContext2D
-
getFontStretch
- Specified by:
getFontStretch
in interfaceCanvasRenderingContext2D
-
getFontVariantCaps
- Specified by:
getFontVariantCaps
in interfaceCanvasRenderingContext2D
-
getGlobalAlpha
The CanvasRenderingContext2D.globalAlpha property of the Canvas 2D API specifies the alpha (transparency) value that is applied to shapes and images before they are drawn onto the canvas.- Specified by:
getGlobalAlpha
in interfaceCanvasRenderingContext2D
- See Also:
-
getImageSmoothingEnabled
public boolean getImageSmoothingEnabled()The imageSmoothingEnabled property of the CanvasRenderingContext2D interface, part of the Canvas API, determines whether scaled images are smoothed (true, default) or not (false). On getting the imageSmoothingEnabled property, the last value it was set to is returned.- Specified by:
getImageSmoothingEnabled
in interfaceCanvasRenderingContext2D
- See Also:
-
getImageSmoothingQuality
The imageSmoothingQuality property of the CanvasRenderingContext2D interface, part of the Canvas API, lets you set the quality of image smoothing.- Specified by:
getImageSmoothingQuality
in interfaceCanvasRenderingContext2D
- See Also:
-
getLetterSpacing
- Specified by:
getLetterSpacing
in interfaceCanvasRenderingContext2D
-
getLineCap
The CanvasRenderingContext2D.lineCap property of the Canvas 2D API determines the shape used to draw the end points of lines.- Specified by:
getLineCap
in interfaceCanvasRenderingContext2D
- See Also:
-
lineDashOffset
The CanvasRenderingContext2D.lineDashOffset property of the Canvas 2D API sets the line dash offset, or invalid input: '"'();phase.invalid input: '"'();- Specified by:
lineDashOffset
in interfaceCanvasRenderingContext2D
- See Also:
-
getLineJoin
The CanvasRenderingContext2D.lineJoin property of the Canvas 2D API determines the shape used to join two line segments where they meet.- Specified by:
getLineJoin
in interfaceCanvasRenderingContext2D
- See Also:
-
getShadowColor
The CanvasRenderingContext2D.shadowColor property of the Canvas 2D API specifies the color of shadows.- Specified by:
getShadowColor
in interfaceCanvasRenderingContext2D
- See Also:
-
getTextRendering
- Specified by:
getTextRendering
in interfaceCanvasRenderingContext2D
-
getWordSpacing
- Specified by:
getWordSpacing
in interfaceCanvasRenderingContext2D
-
getContextAttributes
- Specified by:
getContextAttributes
in interfaceCanvasRenderingContext2D
-
drawImage
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.- Specified by:
drawImage
in interfaceCanvasRenderingContext2D
- See Also:
-
drawImage
The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.- Specified by:
drawImage
in interfaceCanvasRenderingContext2D
- See Also:
-
drawImage
public void drawImage(CanvasImageSource image, Integer sx, Integer sy, Integer sw, Integer sh, Integer dx, Integer dy, Integer dw, Integer dh) The CanvasRenderingContext2D.drawImage() method of the Canvas 2D API provides different ways to draw an image onto the canvas.- Specified by:
drawImage
in interfaceCanvasRenderingContext2D
- See Also:
-
fillText
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
fillText
in interfaceCanvasRenderingContext2D
- See Also:
-
fillText
The CanvasRenderingContext2D method fillText(), part of the Canvas 2D API, draws a text string at the specified coordinates, filling the string's characters with the current fillStyle. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
fillText
in interfaceCanvasRenderingContext2D
- See Also:
-
measureText
The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width, for example).- Specified by:
measureText
in interfaceCanvasRenderingContext2D
- See Also:
-
strokeText
The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&mdash'(); that is, draws the outlines of invalid input: '&mdash'(); the characters of a text string at the specified coordinates. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
strokeText
in interfaceCanvasRenderingContext2D
- See Also:
-
strokeText
The CanvasRenderingContext2D method strokeText(), part of the Canvas 2D API, strokes invalid input: '&mdash'(); that is, draws the outlines of invalid input: '&mdash'(); the characters of a text string at the specified coordinates. An optional parameter allows specifying a maximum width for the rendered text, which the user agent will achieve by condensing the text or by using a lower font size.- Specified by:
strokeText
in interfaceCanvasRenderingContext2D
- See Also:
-
createConicGradient
- Specified by:
createConicGradient
in interfaceCanvasRenderingContext2D
-
createLinearGradient
The CanvasRenderingContext2D.createLinearGradient() method of the Canvas 2D API creates a gradient along the line connecting two given coordinates.- Specified by:
createLinearGradient
in interfaceCanvasRenderingContext2D
- See Also:
-
createPattern
The CanvasRenderingContext2D.createPattern() method of the Canvas 2D API creates a pattern using the specified image and repetition. This method returns a CanvasPattern.- Specified by:
createPattern
in interfaceCanvasRenderingContext2D
- See Also:
-
createRadialGradient
public CanvasGradient createRadialGradient(Integer x0, Integer y0, Integer r0, Integer x1, Integer y1, Integer r1) The CanvasRenderingContext2D.createRadialGradient() method of the Canvas 2D API creates a radial gradient using the size and coordinates of two circles.- Specified by:
createRadialGradient
in interfaceCanvasRenderingContext2D
- See Also:
-
beginPath
public void beginPath()The CanvasRenderingContext2D.beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path.- Specified by:
beginPath
in interfaceCanvasRenderingContext2D
- See Also:
-
clip
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clip
in interfaceCanvasRenderingContext2D
- See Also:
-
clip
public void clip()The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clip
in interfaceCanvasRenderingContext2D
- See Also:
-
clip
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clip
in interfaceCanvasRenderingContext2D
- See Also:
-
clip
The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the current or given path into the current clipping region. The previous clipping region, if any, is intersected with the current or given path to create the new clipping region.- Specified by:
clip
in interfaceCanvasRenderingContext2D
- See Also:
-
fill
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fill
in interfaceCanvasRenderingContext2D
- See Also:
-
fill
public void fill()The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fill
in interfaceCanvasRenderingContext2D
- See Also:
-
fill
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fill
in interfaceCanvasRenderingContext2D
- See Also:
-
fill
The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fillStyle.- Specified by:
fill
in interfaceCanvasRenderingContext2D
- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.- Specified by:
isPointInPath
in interfaceCanvasRenderingContext2D
- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.- Specified by:
isPointInPath
in interfaceCanvasRenderingContext2D
- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.- Specified by:
isPointInPath
in interfaceCanvasRenderingContext2D
- See Also:
-
isPointInPath
The CanvasRenderingContext2D.isPointInPath() method of the Canvas 2D API reports whether or not the specified poInteger is contained in the current path.- Specified by:
isPointInPath
in interfaceCanvasRenderingContext2D
- See Also:
-
isPointInStroke
The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified poInteger is inside the area contained by the stroking of a path.- Specified by:
isPointInStroke
in interfaceCanvasRenderingContext2D
- See Also:
-
isPointInStroke
The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified poInteger is inside the area contained by the stroking of a path.- Specified by:
isPointInStroke
in interfaceCanvasRenderingContext2D
- See Also:
-
stroke
public void stroke()The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.- Specified by:
stroke
in interfaceCanvasRenderingContext2D
- See Also:
-
stroke
The CanvasRenderingContext2D.stroke() method of the Canvas 2D API strokes (outlines) the current or given path with the current stroke style.- Specified by:
stroke
in interfaceCanvasRenderingContext2D
- See Also:
-
createImageData
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.- Specified by:
createImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
createImageData
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.- Specified by:
createImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
createImageData
The CanvasRenderingContext2D.createImageData() method of the Canvas 2D API creates a new, blank ImageData object with the specified dimensions. All of the pixels in the new object are transparent black.- Specified by:
createImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
getImageData
public ImageData getImageData(Integer sx, Integer sy, Integer sw, Integer sh, ImageDataSettings settings) The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.- Specified by:
getImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
getImageData
The CanvasRenderingContext2D method getImageData() of the Canvas 2D API returns an ImageData object representing the underlying pixel data for a specified portion of the canvas.- Specified by:
getImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
putImageData
The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas. If a dirty rectangle is provided, only the pixels from that rectangle are painted. This method is not affected by the canvas transformation matrix.- Specified by:
putImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
putImageData
public void putImageData(ImageData imagedata, Integer dx, Integer dy, Integer dirtyX, Integer dirtyY, Integer dirtyWidth, Integer dirtyHeight) The CanvasRenderingContext2D.putImageData() method of the Canvas 2D API paints data from the given ImageData object onto the canvas. If a dirty rectangle is provided, only the pixels from that rectangle are painted. This method is not affected by the canvas transformation matrix.- Specified by:
putImageData
in interfaceCanvasRenderingContext2D
- See Also:
-
arc
public void arc(Double x, Double y, Double radius, Integer startAngle, Double endAngle, boolean counterclockwise) The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.- Specified by:
arc
in interfaceCanvasRenderingContext2D
- See Also:
-
arc
The CanvasRenderingContext2D.arc() method of the Canvas 2D API adds a circular arc to the current sub-path.- Specified by:
arc
in interfaceCanvasRenderingContext2D
- See Also:
-
arcTo
The CanvasRenderingContext2D.arcTo() method of the Canvas 2D API adds a circular arc to the current sub-path, using the given control points and radius. The arc is automatically connected to the path's latest poInteger with a straight line, if necessary for the specified parameters.- Specified by:
arcTo
in interfaceCanvasRenderingContext2D
- See Also:
-
bezierCurveTo
public void bezierCurveTo(Integer cp1x, Integer cp1y, Integer cp2x, Integer cp2y, Integer x, Integer y) The CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Binvalid input: 'é'();zier curve to the current sub-path. It requires three points: the first two are control points and the third one is the end point. The starting poInteger is the latest poInteger in the current path, which can be changed using moveTo() before creating the Binvalid input: 'é'();zier curve.- Specified by:
bezierCurveTo
in interfaceCanvasRenderingContext2D
- See Also:
-
closePath
public void closePath()The CanvasRenderingContext2D.closePath() method of the Canvas 2D API attempts to add a straight line from the current poInteger to the start of the current sub-path. If the shape has already been closed or has only one point, this function does nothing.- Specified by:
closePath
in interfaceCanvasRenderingContext2D
- See Also:
-
ellipse
public void ellipse(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle, boolean counterclockwise) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.- Specified by:
ellipse
in interfaceCanvasRenderingContext2D
- See Also:
-
ellipse
public void ellipse(Integer x, Integer y, Integer radiusX, Integer radiusY, Integer rotation, Integer startAngle, Integer endAngle) The CanvasRenderingContext2D.ellipse() method of the Canvas 2D API adds an elliptical arc to the current sub-path.- Specified by:
ellipse
in interfaceCanvasRenderingContext2D
- See Also:
-
lineTo
The CanvasRenderingContext2D method lineTo(), part of the Canvas 2D API, adds a straight line to the current sub-path by connecting the sub-path's last poInteger to the specified (x, y) coordinates.- Specified by:
lineTo
in interfaceCanvasRenderingContext2D
- See Also:
-
moveTo
The CanvasRenderingContext2D.moveTo() method of the Canvas 2D API begins a new sub-path at the poInteger specified by the given (x, y) coordinates.- Specified by:
moveTo
in interfaceCanvasRenderingContext2D
- See Also:
-
quadraticCurveTo
The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Binvalid input: 'é'();zier curve to the current sub-path. It requires two points: the first one is a control poInteger and the second one is the end point. The starting poInteger is the latest poInteger in the current path, which can be changed using moveTo() before creating the quadratic Binvalid input: 'é'();zier curve.- Specified by:
quadraticCurveTo
in interfaceCanvasRenderingContext2D
- See Also:
-
rect
The CanvasRenderingContext2D.rect() method of the Canvas 2D API adds a rectangle to the current path.- Specified by:
rect
in interfaceCanvasRenderingContext2D
- See Also:
-
roundRect
- Specified by:
roundRect
in interfaceCanvasRenderingContext2D
-
clearRect
The CanvasRenderingContext2D.clearRect() method of the Canvas 2D API erases the pixels in a rectangular area by setting them to transparent black.- Specified by:
clearRect
in interfaceCanvasRenderingContext2D
- See Also:
-
fillRect
The CanvasRenderingContext2D.fillRect() method of the Canvas 2D API draws a rectangle that is filled according to the current fillStyle.- Specified by:
fillRect
in interfaceCanvasRenderingContext2D
- See Also:
-
strokeRect
The CanvasRenderingContext2D.strokeRect() method of the Canvas 2D API draws a rectangle that is stroked (outlined) according to the current strokeStyle and other context settings.- Specified by:
strokeRect
in interfaceCanvasRenderingContext2D
- See Also:
-
isContextLost
public boolean isContextLost()- Specified by:
isContextLost
in interfaceCanvasRenderingContext2D
-
reset
public void reset()- Specified by:
reset
in interfaceCanvasRenderingContext2D
-
restore
public void restore()The CanvasRenderingContext2D.restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack. If there is no saved state, this method does nothing.- Specified by:
restore
in interfaceCanvasRenderingContext2D
- See Also:
-
save
public void save()The CanvasRenderingContext2D.save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.- Specified by:
save
in interfaceCanvasRenderingContext2D
- See Also:
-
getLineDash
The getLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface gets the current line dash pattern.- Specified by:
getLineDash
in interfaceCanvasRenderingContext2D
- See Also:
-
setLineDash
The setLineDash() method of the Canvas 2D API's CanvasRenderingContext2D interface sets the line dash pattern used when stroking lines. It uses an array of values that specify alternating lengths of lines and gaps which describe the pattern.- Specified by:
setLineDash
in interfaceCanvasRenderingContext2D
- See Also:
-
setFillStyle
- Specified by:
setFillStyle
in interfaceCanvasRenderingContext2D
-
setFont
- Specified by:
setFont
in interfaceCanvasRenderingContext2D
-
setGlobalAlpha
- Specified by:
setGlobalAlpha
in interfaceCanvasRenderingContext2D
-
setLineCap
- Specified by:
setLineCap
in interfaceCanvasRenderingContext2D
-
setLineJoin
- Specified by:
setLineJoin
in interfaceCanvasRenderingContext2D
-
setStrokeStyle
- Specified by:
setStrokeStyle
in interfaceCanvasRenderingContext2D
-
drawFocusIfNeeded
The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.- Specified by:
drawFocusIfNeeded
in interfaceCanvasRenderingContext2D
- See Also:
-
drawFocusIfNeeded
The CanvasRenderingContext2D.drawFocusIfNeeded() method of the Canvas 2D API draws a focus ring around the current or given path, if the specified element is focused.- Specified by:
drawFocusIfNeeded
in interfaceCanvasRenderingContext2D
- See Also:
-
scrollPathIntoView
public void scrollPathIntoView()The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view. It is similar to Element.scrollIntoView().- Specified by:
scrollPathIntoView
in interfaceCanvasRenderingContext2D
- See Also:
-
scrollPathIntoView
The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into view. It is similar to Element.scrollIntoView().- Specified by:
scrollPathIntoView
in interfaceCanvasRenderingContext2D
- See Also:
-
getTransform
The CanvasRenderingContext2D.getTransform() method of the Canvas 2D API retrieves the current transformation matrix being applied to the context.- Specified by:
getTransform
in interfaceCanvasRenderingContext2D
- See Also:
-
setTransform
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.- Specified by:
setTransform
in interfaceCanvasRenderingContext2D
- See Also:
-
resetTransform
public void resetTransform()The CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform to the identity matrix.- Specified by:
resetTransform
in interfaceCanvasRenderingContext2D
- See Also:
-
rotate
The CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix.- Specified by:
rotate
in interfaceCanvasRenderingContext2D
- See Also:
-
scale
The CanvasRenderingContext2D.scale() method of the Canvas 2D API adds a scaling transformation to the canvas units horizontally and/or vertically.- Specified by:
scale
in interfaceCanvasRenderingContext2D
- See Also:
-
setTransform
The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix, and then invokes a transformation described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.- Specified by:
setTransform
in interfaceCanvasRenderingContext2D
- See Also:
-
transform
The CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method. This lets you scale, rotate, translate (move), and skew the context.- Specified by:
transform
in interfaceCanvasRenderingContext2D
- See Also:
-
translate
The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation to the current matrix.- Specified by:
translate
in interfaceCanvasRenderingContext2D
- See Also:
-