Examples of Scale9


Examples of tripleplay.ui.util.Scale9

        if (!image.isReady()) {
            // complain about this, we don't support asynch images
            PlayN.log().warn("Scale9 image not preloaded: " + image);
        }
        _image = image;
        _s9 = new Scale9(image.width(), image.height());
    }
View Full Code Here

Examples of tripleplay.ui.util.Scale9

    @Override
    protected Instance instantiate (final IDimension size) {
        return new LayerInstance(size, new ImmediateLayer.Renderer() {
            // The destination scale 9.
            Scale9 dest = new Scale9(size.width() / _destScale, size.height() / _destScale, _s9);
            public void render (Surface surf) {
                surf.save();
                surf.scale(_destScale, _destScale);
                if (alpha != null) surf.setAlpha(alpha);
                if (_tint != Tint.NOOP_TINT) surf.setTint(_tint);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.