本文整理汇总了Java中java.awt.image.renderable.RenderableImage.createDefaultRendering方法的典型用法代码示例。如果您正苦于以下问题:Java RenderableImage.createDefaultRendering方法的具体用法?Java RenderableImage.createDefaultRendering怎么用?Java RenderableImage.createDefaultRendering使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.awt.image.renderable.RenderableImage
的用法示例。
在下文中一共展示了RenderableImage.createDefaultRendering方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: handleHREF
import java.awt.image.renderable.RenderableImage; //导入方法依赖的package包/类
/**
* The handler should set the xlink:href tag and the width and
* height attributes.
*/
public void handleHREF(RenderableImage image, Element imageElement,
SVGGeneratorContext generatorContext)
throws SVGGraphics2DIOException {
if (image == null){
throw new SVGGraphics2DRuntimeException(ERR_IMAGE_NULL);
}
RenderedImage r = image.createDefaultRendering();
if (r == null) {
handleEmptyImage(imageElement);
} else {
handleHREF(r, imageElement, generatorContext);
}
}
示例2: drawRenderableImage
import java.awt.image.renderable.RenderableImage; //导入方法依赖的package包/类
/**
* Draws the renderable image.
*
* @param img the renderable image.
* @param xform the transform.
*/
@Override
public void drawRenderableImage(RenderableImage img,
AffineTransform xform) {
RenderedImage ri = img.createDefaultRendering();
drawRenderedImage(ri, xform);
}
示例3: drawRenderableImage
import java.awt.image.renderable.RenderableImage; //导入方法依赖的package包/类
/**
* Draws the renderable image.
*
* @param img the renderable image.
* @param xform the transform.
*/
@Override
public void drawRenderableImage(RenderableImage img,
AffineTransform xform) {
RenderedImage ri = img.createDefaultRendering();
drawRenderedImage(ri, xform);
}
示例4: drawRenderableImageImpl
import java.awt.image.renderable.RenderableImage; //导入方法依赖的package包/类
/**
* Renders a renderable image. This produces a RenderedImage, which is
* then passed to {@link #drawRenderedImage(RenderedImage, AffineTransform)}
* to perform the final rendering. Only the area of the image specified
* by <code>areaOfInterest</code> is rendered.
*
* @param image the renderable image to be rendered
* @param xform the transform from image space to user space
*/
private void drawRenderableImageImpl(RenderableImage image,
AffineTransform xform,
Rectangle areaOfInterest)
{
// TODO: Maybe make more clever usage of a RenderContext here.
RenderedImage rendered = image.createDefaultRendering();
drawRenderedImageImpl(rendered, xform, areaOfInterest);
}