Anti-aliased images get shattered (when using PImage, loadImage() )
in
Programming Questions
•
1 year ago
Left - original image
Right - in processing with PImage & loadImage()
Can you see the difference?
I made several PNG Images with anti-aliasing option. (in Adobe illustrator CS6)
In Finder, they have perfect smooth shapes. (Left one)
However, when I load those images in Processing, they shattered... Look at those gross pixels.
I don't resize them in Processing but this problem occurs.
What's the problem? Is there any option in Processing that I should change to load smooth images?
- PImage pat03;
- void setup(){
- size(1024, 768);
- pat03 = loadImage("pattern03.png");
- }
- void draw(){
- imageMode(CENTER);
- image(pat03, width/2, height/2);
- }
+ When I put 'background(0,0,0);' inside void draw(), It looks much better.
What is the reason for this phenomenon? Sorry for this poor question.
1