@@ -142,7 +142,7 @@ protected void paintComponent(Graphics g) {
142
142
* @param ratio the scaling ratio. A ratio greater than 1 enlarges the image, less than 1 shrinks the image.
143
143
* @return a new BufferedImage that is a scaled version of the original image.
144
144
*/
145
- public BufferedImage scaleImageFast (BufferedImage source , double ratio ) {
145
+ private BufferedImage scaleImageFast (BufferedImage source , double ratio ) {
146
146
BufferedImage bi = new BufferedImage (
147
147
(int ) (source .getWidth () * ratio ),
148
148
(int ) (source .getHeight () * ratio ),
@@ -165,7 +165,7 @@ public BufferedImage scaleImageFast(BufferedImage source, double ratio) {
165
165
* @param ratio the scaling ratio. A ratio greater than 1 enlarges the image, less than 1 shrinks the image.
166
166
* @return a new BufferedImage that is a scaled version of the original image.
167
167
*/
168
- public BufferedImage scaleImagePretty (BufferedImage source , double ratio ) {
168
+ private BufferedImage scaleImagePretty (BufferedImage source , double ratio ) {
169
169
int targetWidth = (int ) (source .getWidth () * ratio );
170
170
int targetHeight = (int ) (source .getHeight () * ratio );
171
171
@@ -185,7 +185,7 @@ public BufferedImage scaleImagePretty(BufferedImage source, double ratio) {
185
185
* @return a new BufferedImage that is a scaled version of the original image or null if an unsupported scaling
186
186
* strategy is specified.
187
187
*/
188
- public BufferedImage scaleImage (BufferedImage source , double ratio ) {
188
+ private BufferedImage scaleImage (BufferedImage source , double ratio ) {
189
189
switch (scale ) {
190
190
case FAST -> {
191
191
return scaleImageFast (source , ratio );
0 commit comments