Package io.anyline2.core
Class AnylineImage
- java.lang.Object
-
- io.anyline2.core.AnylineImage
-
public class AnylineImage extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnylineImage.ColorFormat
-
Constructor Summary
Constructors Constructor Description AnylineImage(byte[] buffer, AnylineImage.ColorFormat colorFormat, long width, long height)
AnylineImage(byte[] buffer, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)
AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height)
AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnylineImage
crop(int x, int y, int width, int height)
void
delete()
void
flip(boolean flipHorizontal, boolean flipVertical)
byte[]
getBuffer()
byte[]
getBuffer(AnylineImage.ColorFormat targetColorFormat)
VectorOfChar
getBufferVector()
VectorOfChar
getBufferVector(AnylineImage.ColorFormat targetColorFormat)
long
getChannels()
AnylineImage.ColorFormat
getColorFormat()
long
getHeight()
long
getWidth()
void
rotate(int degrees)
-
-
-
Constructor Detail
-
AnylineImage
public AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)
-
AnylineImage
public AnylineImage(VectorOfChar bufferVector, AnylineImage.ColorFormat colorFormat, long width, long height)
-
AnylineImage
public AnylineImage(byte[] buffer, AnylineImage.ColorFormat colorFormat, long width, long height, long bytesPerRow)
-
AnylineImage
public AnylineImage(byte[] buffer, AnylineImage.ColorFormat colorFormat, long width, long height)
-
-
Method Detail
-
delete
public void delete()
-
getColorFormat
public AnylineImage.ColorFormat getColorFormat()
-
getWidth
public long getWidth()
-
getHeight
public long getHeight()
-
getChannels
public long getChannels()
-
getBufferVector
public VectorOfChar getBufferVector()
-
getBufferVector
public VectorOfChar getBufferVector(AnylineImage.ColorFormat targetColorFormat)
-
getBuffer
public byte[] getBuffer()
-
getBuffer
public byte[] getBuffer(AnylineImage.ColorFormat targetColorFormat)
-
rotate
public void rotate(int degrees)
-
flip
public void flip(boolean flipHorizontal, boolean flipVertical)
-
crop
public AnylineImage crop(int x, int y, int width, int height)
-
-