Skip to main content

renderFinished

since 0.9.4

Description

This event is fired when the rendering of the whole music sheet is finished from the render engine side. There might be still tasks open for the display component to visually display the rendered components when this event is notified.

renderFinishedJavaScript
RenderFinished.net

Types

function(e)JavaScript
Action<AlphaTab.Rendering.RenderFinishedEventArgs>.net

AlphaTab.Rendering.RenderFinishedEventArgs Properties

ParametersTypeSummary
idAllstring

The unique id of the chunk to request rendering through renderResult Since

1.3.0-alpha.139
xAllint

The absolute x-position of the chunk within the overall music sheet. Since

1.3.0-alpha.139
yAllint

The absolute y-position of the chunk within the overall music sheet. Since

1.3.0-alpha.139
widthAllint

The width of the current rendering result.

heightAllint

The height of the current rendering result.

totalWidthAllint

The currently known total width of the final music sheet.

totalHeightAllint

The currently known total height of the final music sheet.

firstMasterBarIndexAllint

The index of the first masterbar that was rendered in this result.

lastMasterBarIndexAllint

The last masterbar that was rendered in this result.

renderResultAllobject

The render engine specific result object which contains the rendered music sheet: - For svg it will contain the raw SVG string, - For html5 it will contain a HTML5 canvas DOM element - For skia it will contain a SkImage - For gdi it will contain a Bitmap