boolean () { int widthToUse = getImageWidthToUse(); int heightToUse = getImageHeightToUse(); if (widthToUse <= 0 || heightToUse <= 0) { myImage = null; myCurrentImage = null; myAnimated = true; return false; } myCurrentImage = myImage.getSubimage(0, 0, widthToUse, heightToUse); invalidate(); return true; }