Added a fix in dev branch.
Now when you call the following, the centerX/centerY will be scaled accordingly:
Code:
draw(x, y, width, height, filter)
draw(x, y, width, height)
draw(x, y, scale)
draw(x, y, scale, filter)
drawFlash(x, y, width, height, filter)
drawFlash(x, y, width, height)
draw(x, y, x2, y2, srcx, srcy, srcx2, srcy2, filter) --> where the scale is calculated using (x2-x, y2-y) as the desired width/height
I've left drawWarped and drawSheared untouched as scaling the center in that situation might be undesirable.
getScaledCopy now scales the centerX/Y accordingly, as well, to produce consistent results with the draw functions.
On a side note:
IMO Image.copy() should also copy rotation, alpha, corner colors (shallow copy, so same Color objects?), etc. However I
don't think these should be copied with getSubImage, since the user expects the sub-image to act like a "fresh" image if that makes sense. Let me know what you think about that.