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.
Created attachment 157542 [details] adds the possibility of antialiasing and x,y offset to exported images Method createImage of class org.netbeans.api.visual.export.SceneExporter does not allow to use antialiasing when exporting a BufferedImage of the Scene. The same method, when exporting the visible area of a Scene which is inside a scrollable component, always exports the portion of the scene starting at coordinates 0,0. The attached patch adds an additional version of the createImage method which has three new parameters: -antialiased (boolean) : if true antialiasing is enabled in the exported image -xoffset (int): if visibleAreaOnly is true, the horizontal portion of the Scene exported starts at the value of this parameter. -yoffset (int): if visibleAreaOnly is true, the vertical portion of the Scene exported starts at the value of this parameter parameters xoffset and yoffset do not affect the final result if parameter visibleAreaOnly is false. Two classes are modified by the patch: org.netbeans.api.visual.export.SceneExporter org.netbeans.modules.visual.export.Scene2Image In both classes an overloaded version of an existing method has been added, no change to existing implementation.