Results 61 - 68 of 68

CanvasRenderingContext2D.textAlign

The CanvasRenderingContext2D.textAlign property of the Canvas 2D API specifies the current text alignment being used when drawing text. Beware that the alignment is base on the x value of the CanvasRenderingContext2D.fillText method. So if textAlign="center", then the text would be drawn at x-50%*width.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.textBaseline

The CanvasRenderingContext2D.textBaseline property of the Canvas 2D API specifies the current text baseline being used when drawing text.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.transform()

The CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method. You are able to scale, rotate, move and skew the context.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.translate()

The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation by moving the canvas and its origin x horizontally and y vertically on the grid.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.globalCompositeOperation

The CanvasRenderingContext2D.globalCompositeOperation property of the Canvas 2D API sets the type of compositing operation to apply when drawing new shapes, where type is a string identifying which of the compositing or blending mode operations to use.
API Blending Canvas CanvasRenderingContext2D Compositing Property Reference

CanvasRenderingContext2D.imageSmoothingEnabled

The CanvasRenderingContext2D.imageSmoothingEnabled property of the Canvas 2D API can be set to change if images are smoothed (true, default) or not (false). On getting the imageSmoothingEnabled property, the last value it was set to, is returned.
API Canvas CanvasRenderingContext2D Experimental Expérimental Property Reference

CanvasRenderingContext2D.removeHitRegion()

The CanvasRenderingContext2D.removeHitRegion() method of the Canvas 2D API removes a given hit region from the canvas.
API Canvas CanvasRenderingContext2D Experimental Expérimental Method Reference

CanvasRenderingContext2D.resetTransform()

The CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform by the identity matrix.
Canvas CanvasRenderingContext2D Experimental Expérimental Method Reference Référence