Class JBHiDPIScaledImage
- java.lang.Object
-
- java.awt.Image
-
- java.awt.image.BufferedImage
-
- org.pushingpixels.radiance.common.internal.contrib.intellij.JBHiDPIScaledImage
-
- All Implemented Interfaces:
java.awt.image.RenderedImage
,java.awt.image.WritableRenderedImage
,java.awt.Transparency
public class JBHiDPIScaledImage extends java.awt.image.BufferedImage
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
ignoreScaling
private double
scaleFactor
-
Fields inherited from class java.awt.image.BufferedImage
TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE, TYPE_BYTE_BINARY, TYPE_BYTE_GRAY, TYPE_BYTE_INDEXED, TYPE_CUSTOM, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_INT_RGB, TYPE_USHORT_555_RGB, TYPE_USHORT_565_RGB, TYPE_USHORT_GRAY
-
-
Constructor Summary
Constructors Modifier Constructor Description private
JBHiDPIScaledImage(double scaleFactor, int width, int height, int type)
private
JBHiDPIScaledImage(double scaleFactor, java.awt.image.ColorModel cm, java.awt.image.WritableRaster raster, boolean isRasterPremultiplied)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JBHiDPIScaledImage
create(java.awt.image.ColorModel cm, java.awt.image.WritableRaster raster, boolean isRasterPremultiplied)
java.awt.Graphics2D
createGraphics()
static JBHiDPIScaledImage
createScaled(double scaleFactor, int width, int height, int type)
static JBHiDPIScaledImage
createUnscaled(int width, int height, int type)
-
Methods inherited from class java.awt.image.BufferedImage
addTileObserver, coerceData, copyData, getAlphaRaster, getColorModel, getData, getData, getGraphics, getHeight, getHeight, getMinTileX, getMinTileY, getMinX, getMinY, getNumXTiles, getNumYTiles, getProperty, getProperty, getPropertyNames, getRaster, getRGB, getRGB, getSampleModel, getSource, getSources, getSubimage, getTile, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, getTransparency, getType, getWidth, getWidth, getWritableTile, getWritableTileIndices, hasTileWriters, isAlphaPremultiplied, isTileWritable, releaseWritableTile, removeTileObserver, setData, setRGB, setRGB, toString
-
-
-
-
Method Detail
-
createScaled
public static JBHiDPIScaledImage createScaled(double scaleFactor, int width, int height, int type)
-
createUnscaled
public static JBHiDPIScaledImage createUnscaled(int width, int height, int type)
-
create
public static JBHiDPIScaledImage create(java.awt.image.ColorModel cm, java.awt.image.WritableRaster raster, boolean isRasterPremultiplied)
-
createGraphics
public java.awt.Graphics2D createGraphics()
- Overrides:
createGraphics
in classjava.awt.image.BufferedImage
-
-