gg.drawImage(img, null, 0, 0);
img = newimg;
- transX = (er - horizontal - sr) * charWidth;
- sr = er - horizontal - sr;
+ if (horizontal != 0)
+ {
+ transX = (er - horizontal - sr) * charWidth;
+ sr = er - horizontal - sr;
+ }
+ else if (vertical != 0)
+ {
+ transY = imgHeight - ((vertical + 1) * charHeight);
+ ss = es - vertical - ss;
+ }
}
else
{
else if (evt.getPropertyName().equals("endseq"))
{
// resize
+ fastPaint(0, (int) evt.getNewValue() - (int) evt.getOldValue(),
+ true);
}
}
}