DiagramPreviewOptions
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.options.PreviewOptions
public class DiagramPreviewOptions extends PreviewOptions
Provides options to sets requirements and stream delegates for preview generation of Diagram document.
| Constructor | Description |
|---|---|
| DiagramPreviewOptions(ICreatePageStream createPageStream) | Initializes a new instance of the [DiagramPreviewOptions](../../com.groupdocs.watermark.options/diagrampreviewoptions) class causing the output stream to be closed. |
| DiagramPreviewOptions(ICreatePageStream createPageStream, IReleasePageStream releasePageStream) | Initializes a new instance of [DiagramPreviewOptions](../../com.groupdocs.watermark.options/diagrampreviewoptions) class causing the output stream to be returned to the client for further use. |
| Field | Description |
|---|---|
| DefaultResolution | Default resolution in dots per inch. |
| Method | Description |
|---|---|
| getResolution() | Gets the resolution for the generated images, in dots per inch. |
| setResolution(float value) | Sets the resolution for the generated images, in dots per inch. |
| getHighQualityRendering() | Gets the flag for high quality rendering. |
| setHighQualityRendering(boolean value) | Sets the flag for high quality rendering. |
public DiagramPreviewOptions(ICreatePageStream createPageStream)
Initializes a new instance of the [DiagramPreviewOptions](../../com.groupdocs.watermark.options/diagrampreviewoptions) class causing the output stream to be closed.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| createPageStream | ICreatePageStream | Creates a stream for a specific page preview. |
public DiagramPreviewOptions(ICreatePageStream createPageStream, IReleasePageStream releasePageStream)
Initializes a new instance of [DiagramPreviewOptions](../../com.groupdocs.watermark.options/diagrampreviewoptions) class causing the output stream to be returned to the client for further use.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| createPageStream | ICreatePageStream | Creates a stream for a specific page preview. |
| releasePageStream | IReleasePageStream | Notifies that the page preview generation is done and gets the output stream. |
public static final float DefaultResolution
Default resolution in dots per inch.
public final float getResolution()
Gets the resolution for the generated images, in dots per inch.
Returns: float - The resolution for the generated images, in dots per inch.
The default value is 300.
public final void setResolution(float value)
Sets the resolution for the generated images, in dots per inch.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float | The resolution for the generated images, in dots per inch. |
The default value is 300. |
public final boolean getHighQualityRendering()
Gets the flag for high quality rendering.
Returns: boolean - The flag for high quality rendering.
The high quality rendering uses more resources. The default value is false .
public final void setHighQualityRendering(boolean value)
Sets the flag for high quality rendering.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | The flag for high quality rendering. |
The high quality rendering uses more resources. The default value is false . |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.