us.ihmc.graphics3DAdapter.camera
Class ScreenCapture
java.lang.Object
us.ihmc.graphics3DAdapter.camera.ScreenCapture
- All Implemented Interfaces:
- java.io.Serializable
public class ScreenCapture
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
ScreenCapture(java.awt.image.BufferedImage bufferedImage,
javax.vecmath.Point3d location,
javax.vecmath.Quat4d rotation,
float fov)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScreenCapture
public ScreenCapture(java.awt.image.BufferedImage bufferedImage,
javax.vecmath.Point3d location,
javax.vecmath.Quat4d rotation,
float fov)
getLocation
public javax.vecmath.Point3d getLocation()
getRotation
public javax.vecmath.Quat4d getRotation()
getFov
public float getFov()
bufferedImageToByteArray
public static byte[] bufferedImageToByteArray(java.awt.image.BufferedImage image)
throws java.io.IOException
- Throws:
java.io.IOException
byteArrayToBufferedImage
public static java.awt.image.BufferedImage byteArrayToBufferedImage(byte[] bytes)
getImage
public java.awt.image.BufferedImage getImage()
getHeight
public int getHeight()
getWidth
public int getWidth()