Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Changes one context’s pixel dimensions and density.

API: engine
Project: Inno.UI

void Inno.UI.IUiService.SetViewport(Inno.UI.UiContextHandle context, int width, int height, float density = 1)

Parameter context: The context that owns the requested document or state.

Parameter width: New viewport width in physical pixels.

Parameter height: New viewport height in physical pixels.

Parameter density: Physical pixels per logical layout pixel.