J2ME - Rescale Image
Join the DZone community and get the full member experience.
Join For Free// description of your code here
private Image rescaleImage(Image image, int width, int height)
{
int sourceWidth = image.getWidth();
int sourceHeight = image.getHeight();
Image newImage = Image.createImage(width, height);
Graphics g = newImage.getGraphics();
for(int y=0; y
Opinions expressed by DZone contributors are their own.
Comments