Package io.anyline2.core
Class AnylineImage
-
- All Implemented Interfaces:
public class AnylineImage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
AnylineImage.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 void
delete()
AnylineImage.ColorFormat
getColorFormat()
long
getWidth()
long
getHeight()
long
getChannels()
VectorOfChar
getBufferVector()
VectorOfChar
getBufferVector(AnylineImage.ColorFormat targetColorFormat)
Array<byte>
getBuffer()
Array<byte>
getBuffer(AnylineImage.ColorFormat targetColorFormat)
void
rotate(int degrees)
void
flip(boolean flipHorizontal, boolean flipVertical)
AnylineImage
crop(int x, int y, int width, int height)
-
-
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)
-
-
-
-