Annotation Interface OffScreen
Annotate a PGraphics field as an additional offscreen buffer.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintProvide a fixed height for the offscreen buffer.booleanWhether to persist the contents of the offscreen buffer between frames.doubleProvide a scaling factor for the height.doubleProvide a scaling factor for the width.intProvide a fixed width for the offscreen buffer.
-
Element Details
-
width
int widthProvide a fixed width for the offscreen buffer. The default value of zero will cause the buffer width to be relative to the current output surface width.- Returns:
- width in pixels
- Default:
0
-
height
int heightProvide a fixed height for the offscreen buffer. The default value of zero will cause the buffer height to be relative to the current output surface height.- Returns:
- height in pixels
- Default:
0
-
scaleWidth
double scaleWidthProvide a scaling factor for the width. Default value is 1.0- Returns:
- scale (1.0 is identity)
- Default:
1.0
-
scaleHeight
double scaleHeightProvide a scaling factor for the height. Default value is 1.0- Returns:
- scale (1.0 is identity)
- Default:
1.0
-
persistent
boolean persistentWhether to persist the contents of the offscreen buffer between frames. Default value is true. If false the surface will be released after each draw() call.- Returns:
- persist contents between frames
- Default:
true
-