Class RetinaImage

java.lang.Object
com.intellij.util.RetinaImage

public class RetinaImage extends Object
  • Constructor Details

    • RetinaImage

      public RetinaImage()
  • Method Details

    • createFrom

      @NotNull public static Image createFrom(Image image, int scale, ImageObserver observer)
      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 image
      scale - the raw image scale
      observer - the raw image observer
      Returns:
      the Retina-aware wrapper
    • create

      @NotNull public static BufferedImage create(int width, int height, int type)
    • isAppleHiDPIScaledImage

      public static boolean isAppleHiDPIScaledImage(Image image)