Package com.intellij.util
Class RetinaImage
java.lang.Object
com.intellij.util.RetinaImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagecreate(int width, int height, int type) static ImagecreateFrom(Image image, int scale, ImageObserver observer) Creates a Retina-aware wrapper over a raw image.static booleanisAppleHiDPIScaledImage(Image image)
-
Constructor Details
-
RetinaImage
public RetinaImage()
-
-
Method Details
-
createFrom
Creates a Retina-aware wrapper over a raw image. The raw image should be provided in the specified scale. The wrapper will represent the raw image in the user coordinate space.- Parameters:
image- the raw imagescale- the raw image scaleobserver- the raw image observer- Returns:
- the Retina-aware wrapper
-
create
-
isAppleHiDPIScaledImage
-