| Modifier and Type | Class and Description |
|---|---|
| private static interface |
| Modifier and Type | Field and Description |
|---|---|
| private static final PictureData. | |
| private String | |
| private byte[] | |
| private boolean | |
| private static final BitmapImageRenderer. | |
| protected BufferedImage | |
| private static final Logger | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canRender(String
the image content type contentType)Implements org. Determines if this image renderer implementation supports the given contentType |
| public boolean | drawImage(Graphics2D graphics, Rectangle2D anchor)
Implements org. Render picture data into the supplied graphics |
| public boolean | drawImage(Graphics2D graphics, Rectangle2D anchor, Insets clip)
Implements org. Render picture data into the supplied graphics |
| private static int | |
| public Rectangle2D | |
| public String | |
| public byte[] | |
| public BufferedImage | |
| public BufferedImage | getImage(Dimension2D
the dimension in pixels of the returned image dim)Implements org.
|
| public Rectangle2D | |
| private static BufferedImage | |
| private static BufferedImage | |
| public void | loadImage(InputStream
the raw image stream data, String the content type contentType)Implements org. Load and buffer the image |
| public void | loadImage(byte[]
the raw image bytes data, String the content type contentType)Implements org. Load and buffer the image |
| private static BufferedImage | |
| private static BufferedImage | Returns: the bufferedImage or null, if there was no image reader for this content typethe data stream data, final String the content type contentType)Read the image data via ImageIO and optionally try to workaround metadata errors. |
| public void | setAlpha(double
the alpha [0..1] to be added to the image (possibly already containing an alpha channel) alpha)Implements org.
|
| public static BufferedImage | |
| public void | setCacheInput(boolean
dis-/enables caching - this is an optional operation. enable)false removes already cached dataOverrides default org. Dis-/Enables caching of input data for later retrieval. |
| ALLOWED_TYPES | back to summary |
|---|---|
| private static final PictureData. | |
| cachedContentType | back to summary |
|---|---|
| private String cachedContentType | |
| cachedImage | back to summary |
|---|---|
| private byte[] cachedImage | |
| doCache | back to summary |
|---|---|
| private boolean doCache | |
| IMAGE_LOADERS | back to summary |
|---|---|
| private static final BitmapImageRenderer. | |
| img | back to summary |
|---|---|
| protected BufferedImage img | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| UNSUPPORTED_IMAGE_TYPE | back to summary |
|---|---|
| private static final String UNSUPPORTED_IMAGE_TYPE | |
| BitmapImageRenderer | back to summary |
|---|---|
| public BitmapImageRenderer() | |
| canRender | back to summary |
|---|---|
| public boolean canRender(String contentType) Implements org. Doc from org. Determines if this image renderer implementation supports the given contentType | |
| drawImage | back to summary |
|---|---|
| public boolean drawImage(Graphics2D graphics, Rectangle2D anchor) Implements org. Doc from org. Render picture data into the supplied graphics
| |
| drawImage | back to summary |
|---|---|
| public boolean drawImage(Graphics2D graphics, Rectangle2D anchor, Insets clip) Implements org. Doc from org. Render picture data into the supplied graphics
| |
| findTruncatedBlackBox | back to summary |
|---|---|
| private static int findTruncatedBlackBox(BufferedImage img, int width, int height) | |
| getBounds | back to summary |
|---|---|
| public Rectangle2D getBounds() Implements org.
| |
| getCachedContentType | back to summary |
|---|---|
| public String getCachedContentType() Overrides default org.
| |
| getCachedImage | back to summary |
|---|---|
| public byte[] getCachedImage() Overrides default org.
| |
| getImage | back to summary |
|---|---|
| public BufferedImage getImage() Implements org.
| |
| getImage | back to summary |
|---|---|
| public BufferedImage getImage(Dimension2D dim) Implements org.
| |
| getNativeBounds | back to summary |
|---|---|
| public Rectangle2D getNativeBounds() Implements org.
| |
| loadColored | back to summary |
|---|---|
| private static BufferedImage loadColored(ImageReader reader, ImageInputStream iis, ImageReadParam param) throws IOException | |
| loadGrayScaled | back to summary |
|---|---|
| private static BufferedImage loadGrayScaled(ImageReader reader, ImageInputStream iis, ImageReadParam param) throws IOException | |
| loadImage | back to summary |
|---|---|
| public void loadImage(InputStream data, String contentType) throws IOException Implements org. Doc from org. Load and buffer the image
| |
| loadImage | back to summary |
|---|---|
| public void loadImage(byte[] data, String contentType) throws IOException Implements org. Doc from org. Load and buffer the image | |
| loadTruncated | back to summary |
|---|---|
| private static BufferedImage loadTruncated(ImageReader reader, ImageInputStream iis, ImageReadParam param) throws IOException | |
| readImage | back to summary |
|---|---|
| private static BufferedImage readImage(final InputStream data, final String contentType) throws IOException Read the image data via ImageIO and optionally try to workaround metadata errors.
The resulting image is of image type
| |
| setAlpha | back to summary |
|---|---|
| public void setAlpha(double alpha) Implements org.
| |
| setAlpha | back to summary |
|---|---|
| public static BufferedImage setAlpha(BufferedImage image, double alpha) | |
| setCacheInput | back to summary |
|---|---|
| public void setCacheInput(boolean enable) Overrides default org. Doc from org. Dis-/Enables caching of input data for later retrieval.
Opposed to
| |
| Modifier and Type | Method and Description |
|---|---|
| public BufferedImage |
| load | back to summary |
|---|---|
| public BufferedImage load(ImageReader reader, ImageInputStream iis, ImageReadParam param) throws IOException | |