API Reference > imodeljs-frontend > Views > Viewport > devicePixelRatio devicePixelRatio AccessorReadOnly The device pixel ratio used by this Viewport. This value is not necessarily equal to window.devicePixelRatio. See: https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio devicePixelRatio: number Returns - number Defined in core/frontend/src/Viewport.ts Line 2547 Last Updated: 12 June, 2024