cytoscape / cytoscape.js

Graph theory (network) library for visualisation and analysis
https://js.cytoscape.org
MIT License
10.1k stars 1.64k forks source link

pixelRatio without blur? #1885

Closed KonradHoeffner closed 6 years ago

KonradHoeffner commented 7 years ago

Is it possible to reduce the amount of rendered pixels by an integer factor without blurring the result?

maxkfranz commented 7 years ago

No, the browser will automatically do filtering (bilinear probably) if the pixel ratio isn't set to the screen pixel ratio. The browser decides whether to do this or not; it's out of our control.

If you want crisp output, you need to leave the pixel ratio at the default value.

maxkfranz commented 7 years ago

An alternative is to implement an upscaling interpolation algorithm, like hq2x, directly in the lib.