public final class NativeImage
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
NativeImage.PixelFormat |
static class |
NativeImage.PixelFormatGLCode |
Constructor and Description |
---|
NativeImage(int widthIn,
int heightIn,
boolean clear) |
NativeImage(NativeImage.PixelFormat pixelFormatIn,
int widthIn,
int heightIn,
boolean initialize) |
Modifier and Type | Method and Description |
---|---|
void |
blendPixel(int xIn,
int yIn,
int colIn) |
void |
close() |
void |
copyAreaRGBA(int xFrom,
int yFrom,
int xToDelta,
int yToDelta,
int widthIn,
int heightIn,
boolean mirrorX,
boolean mirrorY) |
void |
copyImageData(NativeImage from) |
void |
downloadFromFramebuffer(boolean opaque) |
void |
downloadFromTexture(int level,
boolean opaque) |
void |
fillAreaRGBA(int x,
int y,
int widthIn,
int heightIn,
int value) |
void |
flip() |
void |
func_216510_a(java.lang.String p_216510_1_) |
static NativeImage |
func_216511_b(java.lang.String p_216511_0_) |
NativeImage.PixelFormat |
getFormat() |
int |
getHeight() |
byte |
getPixelLuminanceOrAlpha(int x,
int y) |
int |
getPixelRGBA(int x,
int y) |
int |
getWidth() |
int[] |
makePixelArray()
Deprecated.
|
static NativeImage |
read(java.nio.ByteBuffer byteBufferIn) |
static NativeImage |
read(java.io.InputStream inputStreamIn) |
static NativeImage |
read(NativeImage.PixelFormat pixelFormatIn,
java.nio.ByteBuffer byteBufferIn) |
static NativeImage |
read(NativeImage.PixelFormat pixelFormatIn,
java.io.InputStream inputStreamIn) |
void |
renderGlyph(org.lwjgl.stb.STBTTFontinfo info,
int glyphIndex,
int widthIn,
int heightIn,
float scaleX,
float scaleY,
float shiftX,
float shiftY,
int x,
int y) |
void |
resizeSubRectTo(int xIn,
int yIn,
int widthIn,
int heightIn,
NativeImage imageIn) |
void |
setPixelRGBA(int x,
int y,
int value) |
java.lang.String |
toString() |
void |
untrack() |
void |
uploadTextureSub(int level,
int xOffset,
int yOffset,
boolean mipmap) |
void |
uploadTextureSub(int level,
int xOffset,
int yOffset,
int unpackSkipPixels,
int unpackSkipRows,
int widthIn,
int heightIn,
boolean mipmap) |
void |
uploadTextureSub(int level,
int xOffset,
int yOffset,
int unpackSkipPixels,
int unpackSkipRows,
int widthIn,
int heightIn,
boolean blur,
boolean clamp,
boolean mipmap) |
void |
write(java.io.File fileIn) |
void |
write(java.nio.file.Path pathIn) |
public NativeImage(int widthIn, int heightIn, boolean clear)
public NativeImage(NativeImage.PixelFormat pixelFormatIn, int widthIn, int heightIn, boolean initialize)
public java.lang.String toString()
toString
in class java.lang.Object
public static NativeImage read(java.io.InputStream inputStreamIn) throws java.io.IOException
java.io.IOException
public static NativeImage read(@Nullable NativeImage.PixelFormat pixelFormatIn, java.io.InputStream inputStreamIn) throws java.io.IOException
java.io.IOException
public static NativeImage read(java.nio.ByteBuffer byteBufferIn) throws java.io.IOException
java.io.IOException
public static NativeImage read(@Nullable NativeImage.PixelFormat pixelFormatIn, java.nio.ByteBuffer byteBufferIn) throws java.io.IOException
java.io.IOException
public void close()
close
in interface java.lang.AutoCloseable
public int getWidth()
public int getHeight()
public NativeImage.PixelFormat getFormat()
public int getPixelRGBA(int x, int y)
public void setPixelRGBA(int x, int y, int value)
public byte getPixelLuminanceOrAlpha(int x, int y)
public void blendPixel(int xIn, int yIn, int colIn)
@Deprecated public int[] makePixelArray()
public void uploadTextureSub(int level, int xOffset, int yOffset, boolean mipmap)
public void uploadTextureSub(int level, int xOffset, int yOffset, int unpackSkipPixels, int unpackSkipRows, int widthIn, int heightIn, boolean mipmap)
public void uploadTextureSub(int level, int xOffset, int yOffset, int unpackSkipPixels, int unpackSkipRows, int widthIn, int heightIn, boolean blur, boolean clamp, boolean mipmap)
public void downloadFromTexture(int level, boolean opaque)
public void downloadFromFramebuffer(boolean opaque)
public void func_216510_a(java.lang.String p_216510_1_) throws java.io.IOException
java.io.IOException
public void write(java.io.File fileIn) throws java.io.IOException
java.io.IOException
public void renderGlyph(org.lwjgl.stb.STBTTFontinfo info, int glyphIndex, int widthIn, int heightIn, float scaleX, float scaleY, float shiftX, float shiftY, int x, int y)
public void write(java.nio.file.Path pathIn) throws java.io.IOException
java.io.IOException
public void copyImageData(NativeImage from)
public void fillAreaRGBA(int x, int y, int widthIn, int heightIn, int value)
public void copyAreaRGBA(int xFrom, int yFrom, int xToDelta, int yToDelta, int widthIn, int heightIn, boolean mirrorX, boolean mirrorY)
public void flip()
public void resizeSubRectTo(int xIn, int yIn, int widthIn, int heightIn, NativeImage imageIn)
public void untrack()
public static NativeImage func_216511_b(java.lang.String p_216511_0_) throws java.io.IOException
java.io.IOException