mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 10:54:52 +00:00
PDF Export - separate smoothed and not smoothed bitmaps - cache separately
This commit is contained in:
44
libsrc/gnujpdf/src/gnu/jpdf/ImageInterpolate.java
Normal file
44
libsrc/gnujpdf/src/gnu/jpdf/ImageInterpolate.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package gnu.jpdf;
|
||||
|
||||
import java.awt.Image;
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class ImageInterpolate {
|
||||
public Image image;
|
||||
public boolean interpolate;
|
||||
|
||||
public ImageInterpolate(Image image, boolean interpolate) {
|
||||
this.image = image;
|
||||
this.interpolate = interpolate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
int hash = 5;
|
||||
hash = 89 * hash + Objects.hashCode(this.image);
|
||||
hash = 89 * hash + (this.interpolate ? 1 : 0);
|
||||
return hash;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (getClass() != obj.getClass()) {
|
||||
return false;
|
||||
}
|
||||
final ImageInterpolate other = (ImageInterpolate) obj;
|
||||
if (this.interpolate != other.interpolate) {
|
||||
return false;
|
||||
}
|
||||
return Objects.equals(this.image, other.image);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user