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
(ImageInfo info, MemorySegment pixels, ImageFormat format, EncoderProfile profile, Arena encodedArena) static ImageData
loadImage
(MemorySegment bytes, Arena pixelsArena)
-
Field Details
-
PE_ok
-
PE_info
-
-
Constructor Details
-
LibImage
public LibImage()
-
-
Method Details
-
loadImage
-
encodeImage
public static MemorySegment encodeImage(ImageInfo info, MemorySegment pixels, ImageFormat format, EncoderProfile profile, Arena encodedArena) - Returns:
- the encoded image data
-