Class ScreenSpaceCanvas.PreparedImage
java.lang.Object
velox.api.layer1.layers.strategies.interfaces.ScreenSpaceCanvas.PreparedImage
- Enclosing interface:
- ScreenSpaceCanvas
public static class ScreenSpaceCanvas.PreparedImage
extends java.lang.Object
Wrapper for an image. Reusing a
ScreenSpaceCanvas.PreparedImage
instance is encouraged
- this improves rendering performance. Keep in mind that constructing
ScreenSpaceCanvas.PreparedImage
launches certain (relatively expansive) background
preparation tasks (so avoid creating instances that you won't really need)-
Constructor Summary
Constructors Constructor Description PreparedImage(java.awt.image.BufferedImage image)
-
Method Summary
Modifier and Type Method Description java.awt.image.BufferedImage
getReadOnlyImage()
Returns corresponding icon, do not modify itint[]
getReadOnlyOpenglRepresentation()
-
Constructor Details
-
PreparedImage
public PreparedImage(java.awt.image.BufferedImage image)
-
-
Method Details
-
getReadOnlyImage
public java.awt.image.BufferedImage getReadOnlyImage()Returns corresponding icon, do not modify it -
getReadOnlyOpenglRepresentation
public int[] getReadOnlyOpenglRepresentation()
-