public class SVGSnapshotParameters
extends java.lang.Object
SVGImage as an image.| Modifier and Type | Field and Description |
|---|---|
static short |
USE_BEST_VIEWPORT_SIZE
This type specifies that the resulting image will use the best size define din the viewpoer.
|
static short |
USE_CONTENT_SIZE
This type specifies that the resulting image will use the content size.
|
| Constructor and Description |
|---|
SVGSnapshotParameters()
Constructor.
|
SVGSnapshotParameters(javafx.scene.SnapshotParameters snapshotParameters)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.SnapshotParameters |
applyViewportType(SVGImage image)
Apply the
getViewportType() to the image for which we want to generate the snapshort. |
javafx.scene.SnapshotParameters |
getSnapshotParameters()
Return the JavaFX snapshot parameters
|
short |
getViewportType()
Return the viewport type.
|
void |
setViewportType(short viewportType)
Set the viewport type.
|
public static final short USE_CONTENT_SIZE
public static final short USE_BEST_VIEWPORT_SIZE
public SVGSnapshotParameters()
public SVGSnapshotParameters(javafx.scene.SnapshotParameters snapshotParameters)
snapshotParameters - the JavaFX snapshort parameterspublic void setViewportType(short viewportType)
viewportType - the viewport typepublic short getViewportType()
public javafx.scene.SnapshotParameters getSnapshotParameters()
public javafx.scene.SnapshotParameters applyViewportType(SVGImage image)
getViewportType() to the image for which we want to generate the snapshort.image - the imagegetSnapshotParameters()Copyright © 2021, 2022, 2025 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence