equal
deleted
inserted
replaced
96 super(size, size, getSizes(size), (w, h) -> createImage(w, h)); |
96 super(size, size, getSizes(size), (w, h) -> createImage(w, h)); |
97 this.size = size; |
97 this.size = size; |
98 } |
98 } |
99 |
99 |
100 @Override |
100 @Override |
101 public Image getResolutionVariant(int width, int height) { |
101 public Image getResolutionVariant(double width, double height) { |
102 if (width == size || height == size) { |
102 if (width == size || height == size) { |
103 throw new RuntimeException("Base image is requested!"); |
103 throw new RuntimeException("Base image is requested!"); |
104 } |
104 } |
105 return super.getResolutionVariant(width, height); |
105 return super.getResolutionVariant(width, height); |
106 } |
106 } |