newJS Posted December 2, 2019 Share Posted December 2, 2019 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? Quote Link to comment Share on other sites More sharing options...
grelf Posted December 6, 2019 Share Posted December 6, 2019 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. 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.