mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 12:00:04 +02:00
Minor refactoring to move image scaling code to ImageUtils
This commit is contained in:
parent
24313e73ee
commit
286c25137f
5 changed files with 73 additions and 122 deletions
|
@ -22,7 +22,6 @@ import java.awt.image.BufferedImage;
|
|||
import java.awt.image.VolatileImage;
|
||||
|
||||
import generic.util.image.ImageUtils;
|
||||
import resources.ResourceManager;
|
||||
|
||||
public class Callout {
|
||||
|
||||
|
@ -386,7 +385,7 @@ public class Callout {
|
|||
double magnification = calloutInfo.getMagnification();
|
||||
int newWidth = (int) (compImage.getWidth(null) * magnification);
|
||||
int newHeight = (int) (compImage.getHeight(null) * magnification);
|
||||
compImage = ResourceManager.createScaledImage(compImage, newWidth, newHeight, 0);
|
||||
compImage = ImageUtils.createScaledImage(compImage, newWidth, newHeight, 0);
|
||||
|
||||
Rectangle bounds = imageShape.getBounds();
|
||||
VolatileImage image =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue