Examples of EncodedImage


Examples of net.rim.device.api.system.EncodedImage

                 */
                public void execute(final ReadOnlyCommandMetadata metadata,
                        final Object context) {
                    // Create an EncodedImage object to contain an animated
                    // gif resource.
                    final EncodedImage encodedImage =
                            EncodedImage
                                    .getEncodedImageResource("animation.gif");

                    // Create a BitmapField to contain the animation
                    final BitmapField bitmapFieldAnimation = new BitmapField();
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

     * @param raw
     *            A byte array representing an image
     */
    private void createImageScreen(final byte[] raw) {
        // Create image to be displayed
        final EncodedImage encodedImage =
                EncodedImage.createEncodedImage(raw, 0, raw.length);

        // Initialize the screen
        final ImageScreen imageScreen = new ImageScreen(raw, encodedImage);

View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

     */
    public static void main(final String[] args) {
        if (args != null && args.length > 0) {
            if (args[0].equals("autostartup")) {
                // Create image
                final EncodedImage encodedImage =
                        EncodedImage
                                .getEncodedImageResource("img/logo_blue.jpg");
                final Image image = ImageFactory.createImage(encodedImage);

                // Create an application descriptor for this application
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

        // Diffuse light color
        gl.glUniform3f(_lightDiffuseLoc, 1.0f, 1.0f, 1.0f);

        // Load texture
        gl.glActiveTexture(GL20.GL_TEXTURE0);
        final EncodedImage encodedImage =
                EncodedImage.getEncodedImageResource("BlackBerry.png");
        createTexture(gl, encodedImage, GL20.GL_RGB,
                GL20.GL_UNSIGNED_SHORT_5_6_5);

        checkError(gl);
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

        // The default light is white with direction (0, 0 ,-1)

        // Load texture
        gl.glActiveTexture(GL10.GL_TEXTURE0);
        final EncodedImage encodedImage =
                EncodedImage.getEncodedImageResource("BlackBerry.png");
        createTexture(gl, encodedImage, GL10.GL_RGB,
                GL10.GL_UNSIGNED_SHORT_5_6_5);

        checkError(gl);
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

         */
        public ReplyContextMenu(final int order) {
            super(order);

            // Set icon for GCM menu
            final EncodedImage eiReply =
                    EncodedImage.getEncodedImageResource("img/sm_reply.png");
            if (eiReply != null) {
                final Image image = ImageFactory.createImage(eiReply);
                this.setIcon(image);
            }
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

         */
        MarkOpenedContextMenu(final int order) {
            super(order);

            // Set icon for GCM menu
            final EncodedImage eiMarkOpened =
                    EncodedImage
                            .getEncodedImageResource("img/sm_mark_opened.png");
            if (eiMarkOpened != null) {
                final Image image = ImageFactory.createImage(eiMarkOpened);
                this.setIcon(image);
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

         */
        MarkUnreadContextMenu(final int order) {
            super(order);

            // Set icon for GCM menu
            final EncodedImage eiMarkUnOpened =
                    EncodedImage
                            .getEncodedImageResource("img/sm_mark_unopened.png");
            if (eiMarkUnOpened != null) {
                final Image image = ImageFactory.createImage(eiMarkUnOpened);
                this.setIcon(image);
View Full Code Here

Examples of net.rim.device.api.system.EncodedImage

         */
        public OpenContextMenu(final int order) {
            super(order);

            // Set icon for GCM menu
            final EncodedImage eiOpen =
                    EncodedImage.getEncodedImageResource("img/sm_open.png");
            if (eiOpen != null) {
                final Image image = ImageFactory.createImage(eiOpen);
                this.setIcon(image);
            }
View Full Code Here

Examples of net.yacy.peers.graphics.EncodedImage

            height = Math.min(576, height);
        }
        if (passiveLimit > 1000000) passiveLimit = 1000000;
        if (potentialLimit > 1000000) potentialLimit = 1000000;
        if (maxCount > 10000) maxCount = 10000;
        buffer = new EncodedImage(NetworkGraph.getNetworkPicture(sb.peers, 10000, width, height, passiveLimit, potentialLimit, maxCount, coronaangle, communicationTimeout, env.getConfig(SwitchboardConstants.NETWORK_NAME, "unspecified"), env.getConfig("network.unit.description", "unspecified"), bgcolor, cyc).getImage(), "png");
        lastAccessSeconds = System.currentTimeMillis() / 1000;

        sync.release();
        return buffer;
    }
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.