Search in sources :

Example 1 with ImageFrame

use of com.xenoage.zong.layout.frames.ImageFrame in project Zong by Xenoage.

the class ImageFrameRenderer method paintTransformed.

@Override
protected void paintTransformed(Frame frame, Canvas canvas, RendererArgs args) {
    ImageFrame imageFrame = (ImageFrame) frame;
    String imagePath = imageFrame.getImagePath();
    Rectangle2f rect = getLocalRect(frame);
    canvas.drawImage(rect, imagePath);
}
Also used : ImageFrame(com.xenoage.zong.layout.frames.ImageFrame) Rectangle2f(com.xenoage.utils.math.geom.Rectangle2f)

Aggregations

Rectangle2f (com.xenoage.utils.math.geom.Rectangle2f)1 ImageFrame (com.xenoage.zong.layout.frames.ImageFrame)1