4 Replies Latest reply: May 8, 2009 4:00 AM by 843851 RSS

    Xlet viewer displays 1280x720 picture

    843851
      Hi All,

      Now I try to display a 1280X720 picture using xlet viewer, but cannot get the full display. any one knows how to do it?
                try{
                     MediaTracker tracker = new MediaTracker(this);
                     bg_i = Toolkit.getDefaultToolkit().
      getImage("com/xlet/foodPortal/img/bg.gif");

                     tracker.addImage(bg_i, 0);
                     tracker.waitForAll();
                }
                catch(InterruptedException e){
                System.out.println("InterruptedException found");
                }
      bg_icon = new HStaticIcon(bg_i,0,0,1280,720);
                bg_icon.setBackgroundMode(org.havi.ui.HVisible.BACKGROUND_FILL);
                scene.add(bg_icon);

      // my bg_gif is a 1280X720 picture... previously , it is 720X576, which display correctly.

      Thanks.
      Nedved