Jump to content

Image interpolation with Javascript


newJS
 Share

Recommended Posts

Hi everyone,

I have a picture that I draw pixel by pixel on the canvas. Size of the image: 512 * 256. When I make this picture 1536 * 768, the image looks very bad.
I think I can use interpolation to fix this. But I couldn't find a good javascript library. It didn't work in the libraries I found.

Is there anyone who can help me with this?

Link to comment
Share on other sites

It might help us to reply if we knew why you are drawing it "pixel by pixel". Why not canvas.context.drawimage ()?

Enlarging an image by a factor of 3 is unlikely to produce a sharp result though. Better to start with the larger version and then reduce if or when necessary.

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...