use of java.awt.image.renderable.RenderContext in project jdk8u_jdk by JetBrains.
the class SunGraphics2D method drawRenderableImage.
public void drawRenderableImage(RenderableImage img, AffineTransform xform) {
if (img == null) {
return;
}
AffineTransform pipeTransform = transform;
AffineTransform concatTransform = new AffineTransform(xform);
concatTransform.concatenate(pipeTransform);
AffineTransform reverseTransform;
RenderContext rc = new RenderContext(concatTransform);
try {
reverseTransform = pipeTransform.createInverse();
} catch (NoninvertibleTransformException nte) {
rc = new RenderContext(pipeTransform);
reverseTransform = new AffineTransform();
}
RenderedImage rendering = img.createRendering(rc);
drawRenderedImage(rendering, reverseTransform);
}
use of java.awt.image.renderable.RenderContext in project jdk8u_jdk by JetBrains.
the class ProxyGraphics2D method drawRenderableImage.
public void drawRenderableImage(RenderableImage img, AffineTransform xform) {
if (img == null) {
return;
}
AffineTransform pipeTransform = getTransform();
AffineTransform concatTransform = new AffineTransform(xform);
concatTransform.concatenate(pipeTransform);
AffineTransform reverseTransform;
RenderContext rc = new RenderContext(concatTransform);
try {
reverseTransform = pipeTransform.createInverse();
} catch (NoninvertibleTransformException nte) {
rc = new RenderContext(pipeTransform);
reverseTransform = new AffineTransform();
}
RenderedImage rendering = img.createRendering(rc);
drawRenderedImage(rendering, reverseTransform);
}
Aggregations