I want to try to resize image. like zoom in/zoom out. I am trying to
use the photoalbum example where i get a picture and then
when I have the keypressed method in the PhotoFrame class I d
something like this:
protected void keyPressed(int keyCode) {
int action = getGameAction(keyCode);
switch (action) {
case KEY_NUM1:
imageWidth += imageWidth / 10;
imageHeight += imageHeight / 10;
System.out.println("test21");
repaint();
break;
case KEY_NUM2:
imageWidth -= imageWidth / 10;
imageHeight -= imageHeight / 10;
System.out.println("test21");
repaint();
The values of imageWidth and image Height do change value everytime
the button is pressed. But it does not effect the size.
I cannot find any information on the net about this issue. Im still
a bit green about this.