Back to smooth algorithm

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2 2022-05-29 21:35:40 -05:00
parent bb52b2737d
commit e21a814abf
4 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

View File

@ -107,7 +107,7 @@ public class Panel extends JPanel implements Runnable {
// ask ImageProducer to update image // ask ImageProducer to update image
mImageProducer.newPixels(); mImageProducer.newPixels();
// draw it on panel // draw it on panel
Image f = this.imageBuffer.getScaledInstance(getWidth(), getHeight(), Image.SCALE_FAST); Image f = this.imageBuffer.getScaledInstance(getWidth(), getHeight(), Image.SCALE_SMOOTH);
g.drawImage(f, 0, 0, this); g.drawImage(f, 0, 0, this);
f.flush(); f.flush();