Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Graphics.drawImage()


  //Horizontal Resize

  for (int x = 0; x < _width; x++)
        {
            g.setClip(x, 0, 1, srcHeight);
      g.drawImage(image, x - (pos >> 16), 0, Graphics.LEFT | Graphics.TOP);
            pos += ratio;
        }

   Image resizedImage = Image.createImage(_width, _height);
   g = resizedImage.getGraphics();
View Full Code Here


   //Vertical resize

    for (int y = 0; y < _height; y++)
          {
              g.setClip(0, y, _width, 1);
              g.drawImage(tmp, 0, y - (pos >> 16), Graphics.LEFT | Graphics.TOP);
              pos += ratio;
          }
         return resizedImage;
    }
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.