This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The class Scene2Image method createImage() takes an int parameter named 'quality' that controls the quality of JPEG images. Setting this parameter to values other than 100 results in minimum quality (0) JPEGs. The reason for this lies in line 390 of Scene2Image.java, where the ratio is calculated using ints (instead of e.g. float): 390 iwp.setCompressionQuality(quality / 100); replacing this line with 390 iwp.setCompressionQuality(quality / 100.f); results in the desired behaviour.