public class ScreenShotHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.text.DateFormat |
DATE_FORMAT |
private static org.apache.logging.log4j.Logger |
LOGGER |
private static java.nio.IntBuffer |
pixelBuffer |
private static int[] |
pixelValues |
Constructor and Description |
---|
ScreenShotHelper() |
Modifier and Type | Method and Description |
---|---|
static java.awt.image.BufferedImage |
createScreenshot(int width,
int height,
Framebuffer framebufferIn) |
private static java.io.File |
getTimestampedPNGFileForDirectory(java.io.File gameDirectory) |
static ITextComponent |
saveScreenshot(java.io.File gameDirectory,
int width,
int height,
Framebuffer buffer) |
static ITextComponent |
saveScreenshot(java.io.File gameDirectory,
java.lang.String screenshotName,
int width,
int height,
Framebuffer buffer) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final java.text.DateFormat DATE_FORMAT
private static java.nio.IntBuffer pixelBuffer
private static int[] pixelValues
public static ITextComponent saveScreenshot(java.io.File gameDirectory, int width, int height, Framebuffer buffer)
public static ITextComponent saveScreenshot(java.io.File gameDirectory, @Nullable java.lang.String screenshotName, int width, int height, Framebuffer buffer)
public static java.awt.image.BufferedImage createScreenshot(int width, int height, Framebuffer framebufferIn)
private static java.io.File getTimestampedPNGFileForDirectory(java.io.File gameDirectory)