Class LibImage
java.lang.Object
dev.pfaff.altargui.libimage.LibImage
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final MemoryLayout.PathElement
static final MemoryLayout.PathElement
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MemorySegment
encodeImage
(MemorySegment pixels, int width, int height, ExtendedColorType colorType, ImageFormat format, EncoderProfile profile, Arena encodedArena) static ImageData
loadImage
(MemorySegment bytes, Arena pixelsArena)
-
Field Details
-
PE_ok
-
PE_err
-
-
Constructor Details
-
LibImage
public LibImage()
-
-
Method Details
-
loadImage
-
encodeImage
public static MemorySegment encodeImage(MemorySegment pixels, int width, int height, ExtendedColorType colorType, ImageFormat format, EncoderProfile profile, Arena encodedArena) - Returns:
- the encoded image data
-