Package io.anyline2.core
Class AnylineImage
-
- All Implemented Interfaces:
public class AnylineImage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumAnylineImage.ColorFormat
-
Constructor Summary
Constructors Constructor Description AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height)AnylineImage(Array<byte> buffer, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)AnylineImage(Array<byte> buffer, AnylineImage.ColorFormat colorFormat, long width, long height)
-
Method Summary
Modifier and Type Method Description synchronized voiddelete()AnylineImage.ColorFormatgetColorFormat()longgetWidth()longgetHeight()longgetChannels()VectorOfChargetBufferVector()VectorOfChargetBufferVector(AnylineImage.ColorFormat targetColorFormat)Array<byte>getBuffer()Array<byte>getBuffer(AnylineImage.ColorFormat targetColorFormat)voidrotate(int degrees)voidflip(boolean flipHorizontal, boolean flipVertical)AnylineImagecrop(int x, int y, int width, int height)StringgetBase64Image()-
-
Constructor Detail
-
AnylineImage
AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)
-
AnylineImage
AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height)
-
AnylineImage
AnylineImage(Array<byte> buffer, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)
-
AnylineImage
AnylineImage(Array<byte> buffer, AnylineImage.ColorFormat colorFormat, long width, long height)
-
-
Method Detail
-
delete
synchronized void delete()
-
getColorFormat
AnylineImage.ColorFormat getColorFormat()
-
getWidth
long getWidth()
-
getHeight
long getHeight()
-
getChannels
long getChannels()
-
getBufferVector
VectorOfChar getBufferVector()
-
getBufferVector
VectorOfChar getBufferVector(AnylineImage.ColorFormat targetColorFormat)
-
getBuffer
Array<byte> getBuffer(AnylineImage.ColorFormat targetColorFormat)
-
rotate
void rotate(int degrees)
-
flip
void flip(boolean flipHorizontal, boolean flipVertical)
-
crop
AnylineImage crop(int x, int y, int width, int height)
-
getBase64Image
String getBase64Image()
-
-
-
-