-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable image smoothing on Raster? #1521
Comments
It would be necessary to get context from view. |
Perfect! Thank you so much! |
Let's keep this open as we should probably add an API for that? What if we add a property to |
@lehni, I implemented So, @akeshavan, once this change will be merged, you'll just have to do:
|
@sasensi thanks for taking time to do this! I will make time to review it properly soon. There will some minor changes, mostly to align things with internal architecture and also change tracking to take note of the need for redraws, but nothing major. |
…ng_property Fix #1521 adding Raster.smoothing property
I'm trying to disable image smoothing when zooming on a Raster, but I'm not able to. It looks like someone also asked this on stackoverflow but there are no replies. Does anyone have suggestions?
Description/Steps to reproduce
I'm trying to to set the
imageSmoothingEnabled
property of the canvas context tofalse
so that the image looks pixelated, like in this example: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled which works on my browser (Google Chrome | 69.0.3497.100 (Official Build) (64-bit))Link to reproduction test-case
Here is my codepen: https://codepen.io/akeshavan/pen/GYRZZm?editors=1010 with my attempt to do this with a paper.js Raster, but it doesn't work.
Any tips would be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: