sistemlogikadigital Posted January 5, 2019 Share Posted January 5, 2019 I tried to change image quality in image-rendering css, but whenever i change the value it seems always pixelated. Because my image is not pixel art, i want the value of image-rendering to optimizeQuality or auto. So can melonjs achieve that? here is my css : image-rendering: optimizeQuality; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: opti mize-contrast; -ms-interpolation-mode: bicubic; Quote Link to comment Share on other sites More sharing options...
obiot Posted January 5, 2019 Share Posted January 5, 2019 melonJS will overwrite whatever you set in the CSS based on the parameter(s) passed to the video init function : http://melonjs.github.io/melonJS/docs/me.video.html#init if you need/want to disable the pixelated rendering mode, just the set the antiAlias flag to true (for example) : me.video.init(800, 600, {wrapper : "screen", scale : "auto", scaleMethod : "flex-width", antiAlias : true, subPixel : false }) sistemlogikadigital 1 Quote Link to comment Share on other sites More sharing options...
sistemlogikadigital Posted January 5, 2019 Author Share Posted January 5, 2019 3 minutes ago, obiot said: melonJS will overwrite whatever you set in the CSS based on the parameter(s) passed to the video init function : http://melonjs.github.io/melonJS/docs/me.video.html#init if you need/want to disable the pixelated rendering mode, just the set the antiAlias flag to true (for example) : me.video.init(800, 600, {wrapper : "screen", scale : "auto", scaleMethod : "flex-width", antiAlias : true, subPixel : false }) thanks, now the image quality improved Quote Link to comment Share on other sites More sharing options...
obiot Posted January 5, 2019 Share Posted January 5, 2019 you are welcome, and happy it worked as you expected Quote Link to comment Share on other sites More sharing options...
jayantbh Posted May 21, 2021 Share Posted May 21, 2021 I can change the antialias property later? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.