We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Different result showing scaled image with P2D/P3D or default render:
PImage img; void setup() { size(220, 300, P2D); img = loadImage("data.png"); } void draw() { image(img,10,10,136,136); }
Can you help me ? Thanks.
Have you tried smooth()? It also helps out image()'s resizing quality when passing 4 arguments to it: https://Processing.org/reference/smooth_.html smooth(4);
smooth(4);
Another option is to pre-resize() the PImage at setup(): https://Processing.org/reference/PImage_resize_.html ( img = loadImage("data.png") ).resize(136, 136);
( img = loadImage("data.png") ).resize(136, 136);
You can also try out set() in place of image() in order to display the PImage: https://Processing.org/reference/PImage_set_.html set(10, 10, img);
set(10, 10, img);
I have tried only smooth(). I'll try your hints as soon as possible. Thanks :)
smooth()
.resize works :)
.resize
Answers
Have you tried smooth()? It also helps out image()'s resizing quality when passing 4 arguments to it:
https://Processing.org/reference/smooth_.html
smooth(4);
Another option is to pre-resize() the PImage at setup():
https://Processing.org/reference/PImage_resize_.html
( img = loadImage("data.png") ).resize(136, 136);
You can also try out set() in place of image() in order to display the PImage:
https://Processing.org/reference/PImage_set_.html
set(10, 10, img);
I have tried only
smooth()
.I'll try your hints as soon as possible.
Thanks :)
.resize
works :)