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.

Bug 256851 - Antialiasing and horizontal/vertical offset values in SceneExporter
Summary: Antialiasing and horizontal/vertical offset values in SceneExporter
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-28 22:05 UTC by acarubelli
Modified: 2015-11-28 22:05 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
adds the possibility of antialiasing and x,y offset to exported images (12.54 KB, application/octet-stream)
2015-11-28 22:05 UTC, acarubelli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description acarubelli 2015-11-28 22:05:47 UTC
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.