com.intellij.util.AppleHiDPIScaledImage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of util Show documentation
Show all versions of util Show documentation
A packaging of the IntelliJ Community Edition util library.
This is release number 1 of trunk branch 142.
The newest version!
package com.intellij.util;
import apple.awt.CImage;
import java.awt.*;
import java.awt.image.BufferedImage;
/**
* @author Konstantin Bulenkov
*/
public class AppleHiDPIScaledImage {
public static BufferedImage create(int width, int height, int imageType) {
return new CImage.HiDPIScaledImage(width, height, imageType) {
@Override
protected void drawIntoImage(BufferedImage image, float scale) {
}
};
}
public static boolean is(Image image) {
return image instanceof CImage.HiDPIScaledImage;
}
}