Package com.six.timapi
Class ScreenshotInformation
- java.lang.Object
-
- com.six.timapi.ScreenshotInformation
-
public class ScreenshotInformation extends Object
Immutable information send by screenshot notification.
-
-
Constructor Summary
Constructors Constructor Description ScreenshotInformation(ImageFileFormat imageFileFormat, int imageWidth, int imageHeight, byte[] imageData)Create immutable screenshot information.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImagegetImage()Image object build from image data or null if image data is invalid.byte[]getImageData()Image data.ImageFileFormatgetImageFileFormat()File format of image data.intgetImageHeight()Image height in pixels.intgetImageWidth()Image width in pixels.StringtoString()String representation for debugging purpose.
-
-
-
Constructor Detail
-
ScreenshotInformation
public ScreenshotInformation(ImageFileFormat imageFileFormat, int imageWidth, int imageHeight, byte[] imageData) throws IOException
Create immutable screenshot information.- Throws:
IOException
-
-
Method Detail
-
getImageFileFormat
public ImageFileFormat getImageFileFormat()
File format of image data.
-
getImageWidth
public int getImageWidth()
Image width in pixels.
-
getImageHeight
public int getImageHeight()
Image height in pixels.
-
getImageData
public byte[] getImageData()
Image data.
-
getImage
public Image getImage()
Image object build from image data or null if image data is invalid.
-
-