Class Image
java.lang.Object
dev.prozilla.pine.common.system.resource.image.Image
Represents an STB image with a width and a height.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
Removes this resource from the resource pool and deletes it.static ByteBuffer
flipImageVertically
(ByteBuffer image, int width, int height, int channels) int
int
getPath()
int
getWidth()
int
hashCode()
static ByteBuffer
premultiplyAlpha
(ByteBuffer image, int width, int height, int channels)
-
Field Details
-
id
public final int id
-
-
Constructor Details
-
Image
-
-
Method Details
-
getFlippedImage
-
getPremultipliedImage
-
getPixels
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getChannels
public int getChannels() -
getPath
-
destroy
public void destroy()Description copied from interface:Resource
Removes this resource from the resource pool and deletes it. -
hashCode
public int hashCode() -
toGLFWImage
-
premultiplyAlpha
-
flipImageVertically
-