alphaTab.platform.ICanvas
This is the base public interface for canvas implementations on different plattforms.
interface ICanvasProperties​
color​
(no description)
font​
(no description)
lineWidth​
(no description)
- JavaScript
- C#
- Kotlin
lineWidth: number;double LineWidth { get; set; }var lineWidth: Doublesettings​
(no description)
textAlign​
(no description)
textBaseline​
(no description)
- JavaScript
- C#
- Kotlin
Methods​
beginGroup​
(no description)
- JavaScript
- C#
- Kotlin
beginGroup(identifier: string): voidvoid BeginGroup(string identifier)fun beginGroup(identifier: String): Unit| Parameter | Summary |
|---|---|
identifierAll | (no description) |
beginPath​
(no description)
- JavaScript
- C#
- Kotlin
beginPath(): voidvoid BeginPath()fun beginPath(): UnitbeginRender​
(no description)
- JavaScript
- C#
- Kotlin
beginRender(width: number, height: number): voidvoid BeginRender(double width, double height)fun beginRender(width: Double, height: Double): Unit| Parameter | Summary |
|---|---|
widthAll | (no description) |
heightAll | (no description) |
beginRotate​
(no description)
- JavaScript
- C#
- Kotlin
beginRotate(centerX: number, centerY: number, angle: number): voidvoid BeginRotate(double centerX, double centerY, double angle)fun beginRotate(centerX: Double, centerY: Double, angle: Double): Unit| Parameter | Summary |
|---|---|
centerXAll | (no description) |
centerYAll | (no description) |
angleAll | (no description) |
bezierCurveTo​
(no description)
- JavaScript
- C#
- Kotlin
bezierCurveTo(cp1X: number, cp1Y: number, cp2X: number, cp2Y: number, x: number, y: number): voidvoid BezierCurveTo(double cp1X, double cp1Y, double cp2X, double cp2Y, double x, double y)fun bezierCurveTo(cp1X: Double, cp1Y: Double, cp2X: Double, cp2Y: Double, x: Double, y: Double): Unit| Parameter | Summary |
|---|---|
cp1XAll | (no description) |
cp1YAll | (no description) |
cp2XAll | (no description) |
cp2YAll | (no description) |
xAll | (no description) |
yAll | (no description) |
closePath​
(no description)
- JavaScript
- C#
- Kotlin
closePath(): voidvoid ClosePath()fun closePath(): Unitdestroy​
(no description)
- JavaScript
- C#
- Kotlin
destroy(): voidvoid Destroy()fun destroy(): UnitendGroup​
(no description)
- JavaScript
- C#
- Kotlin
endGroup(): voidvoid EndGroup()fun endGroup(): UnitendRender​
(no description)
- JavaScript
- C#
- Kotlin
endRender(): unknownobject EndRender()fun endRender(): AnyendRotate​
(no description)
- JavaScript
- C#
- Kotlin
endRotate(): voidvoid EndRotate()fun endRotate(): Unitfill​
(no description)
- JavaScript
- C#
- Kotlin
fill(): voidvoid Fill()fun fill(): UnitfillCircle​
(no description)
- JavaScript
- C#
- Kotlin
fillCircle(x: number, y: number, radius: number): voidvoid FillCircle(double x, double y, double radius)fun fillCircle(x: Double, y: Double, radius: Double): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
radiusAll | (no description) |
fillMusicFontSymbol​
(no description)
- JavaScript
- C#
- Kotlin
fillMusicFontSymbol(x: number, y: number, relativeScale: number, symbol: MusicFontSymbol, centerAtPosition?: boolean): voidvoid FillMusicFontSymbol(double x, double y, double relativeScale, MusicFontSymbol symbol, bool? centerAtPosition)fun fillMusicFontSymbol(x: Double, y: Double, relativeScale: Double, symbol: MusicFontSymbol, centerAtPosition: Boolean?): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
relativeScaleAll | (no description) |
symbolAll | (no description) |
centerAtPositionAll | (no description) |
fillMusicFontSymbols​
(no description)
- JavaScript
- C#
- Kotlin
fillMusicFontSymbols(x: number, y: number, relativeScale: number, symbols: MusicFontSymbol[], centerAtPosition?: boolean): voidvoid FillMusicFontSymbols(double x, double y, double relativeScale, IList<MusicFontSymbol> symbols, bool? centerAtPosition)fun fillMusicFontSymbols(x: Double, y: Double, relativeScale: Double, symbols: alphaTab.collections.List<MusicFontSymbol>, centerAtPosition: Boolean?): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
relativeScaleAll | (no description) |
symbolsAll | (no description) |
centerAtPositionAll | (no description) |
fillRect​
(no description)
- JavaScript
- C#
- Kotlin
fillRect(x: number, y: number, w: number, h: number): voidvoid FillRect(double x, double y, double w, double h)fun fillRect(x: Double, y: Double, w: Double, h: Double): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
wAll | (no description) |
hAll | (no description) |
fillText​
(no description)
- JavaScript
- C#
- Kotlin
fillText(text: string, x: number, y: number): voidvoid FillText(string text, double x, double y)fun fillText(text: String, x: Double, y: Double): Unit| Parameter | Summary |
|---|---|
textAll | (no description) |
xAll | (no description) |
yAll | (no description) |
lineTo​
(no description)
- JavaScript
- C#
- Kotlin
lineTo(x: number, y: number): voidvoid LineTo(double x, double y)fun lineTo(x: Double, y: Double): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
measureText​
(no description)
- JavaScript
- C#
- Kotlin
measureText(text: string): MeasuredTextMeasuredText MeasureText(string text)fun measureText(text: String): MeasuredText| Parameter | Summary |
|---|---|
textAll | (no description) |
moveTo​
(no description)
- JavaScript
- C#
- Kotlin
moveTo(x: number, y: number): voidvoid MoveTo(double x, double y)fun moveTo(x: Double, y: Double): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
onRenderFinished​
(no description)
- JavaScript
- C#
- Kotlin
onRenderFinished(): unknownobject OnRenderFinished()fun onRenderFinished(): AnyquadraticCurveTo​
(no description)
- JavaScript
- C#
- Kotlin
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): voidvoid QuadraticCurveTo(double cpx, double cpy, double x, double y)fun quadraticCurveTo(cpx: Double, cpy: Double, x: Double, y: Double): Unit| Parameter | Summary |
|---|---|
cpxAll | (no description) |
cpyAll | (no description) |
xAll | (no description) |
yAll | (no description) |
stroke​
(no description)
- JavaScript
- C#
- Kotlin
stroke(): voidvoid Stroke()fun stroke(): UnitstrokeCircle​
(no description)
- JavaScript
- C#
- Kotlin
strokeCircle(x: number, y: number, radius: number): voidvoid StrokeCircle(double x, double y, double radius)fun strokeCircle(x: Double, y: Double, radius: Double): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
radiusAll | (no description) |
strokeRect​
(no description)
- JavaScript
- C#
- Kotlin
strokeRect(x: number, y: number, w: number, h: number): voidvoid StrokeRect(double x, double y, double w, double h)fun strokeRect(x: Double, y: Double, w: Double, h: Double): Unit| Parameter | Summary |
|---|---|
xAll | (no description) |
yAll | (no description) |
wAll | (no description) |
hAll | (no description) |