instead
ProjectFrame.saveAsImage(String, int, int, boolean)
Copyright © 2016 Laboratoire COGIT, IGN. All rights reserved.