Sign in to follow this  
sistemlogikadigital

Change image quality

Recommended Posts

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;

Share this post


Link to post
Share on other sites

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 })

 

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.