Examples of vgTranslate()


Examples of net.rim.device.api.openvg.VG11.vgTranslate()

        for (int i = 0; i < _imageHandles.length; i++) {
            // Load clean Identity matrix
            vg.vgLoadIdentity();

            // Translate to the center of the display
            vg.vgTranslate(_xScreenCenter, _yScreenCenter);

            // Rotate the image
            vg.vgRotate(_mainRotation.getFloat() + ROTATE * i);

            // Translate the image half of the icon's width
View Full Code Here

Examples of net.rim.device.api.openvg.VG11.vgTranslate()

            // Rotate the image
            vg.vgRotate(_mainRotation.getFloat() + ROTATE * i);

            // Translate the image half of the icon's width
            vg.vgTranslate(-halfIconWidth, RADIUS);

            // Draw the rotated, translated image
            vg.vgDrawImage(_imageHandles[i]);
        }

View Full Code Here

Examples of net.rim.device.api.openvg.VG11.vgTranslate()

        // Move the y position to just below the text that was drawn
        final int yPos = _displayHeight - (TEXT_OFFSET + 5);

        // Translate to origin corresponding to SVG (top left)
        vg11.vgTranslate(xPos, yPos);

        // Scale the image
        vg11.vgScale(scaleFactor, -scaleFactor);

        // Draw the image on the screen
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.