Changes the dpi value (dots per inch) that affects the content of any control created afterwards.

app.SetDensity( dpi )

The smaller the value, the smaller the scaling.

See Also: GetScreenDensity

Example - Demonstration click to expand contents