| Modifier and Type | Class and Description |
|---|---|
static class |
NImage.ImagePalette
Represents the palette of the image.
|
static class |
NImage.PlaneCollection
Represents a collection of planes.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAG_ALL_DST
For internal use.
|
static int |
FLAG_ALL_DST_AND_SRC
For internal use.
|
static int |
FLAG_ALL_SRC
For internal use.
|
static int |
FLAG_DST_ALPHA_CHANNEL_FIRST
This flag is used when Nimage should be copied using RGB Alpha channel first method (ARGB color space).
|
static int |
FLAG_DST_BOTTOM_TO_TOP
This flag is used when NImage should be copied changing pixels order bottom to top (bottom lines become top and vice versa).
|
static int |
FLAG_DST_SWAP_CHANNELS
This flag is used when NImage should be copied swapping RGB channels (e.g.
|
static int |
FLAG_READ_UNKNOWN_IMAGE
Flag specifying whether unknown images should be read.
|
static int |
FLAG_SRC_ALPHA_CHANNEL_FIRST
This flag is used when Nimage should be copied using RGB Alpha channel first method (ARGB color space).
|
static int |
FLAG_SRC_BOTTOM_TO_TOP
This flag is used when NImage should be copied changing pixels order bottom to top (bottom lines become top and vice versa).
|
static int |
FLAG_SRC_SWAP_CHANNELS
This flag is used when NImage should be copied swapping RGB channels (e.g.
|
static int |
FLAG_WRITE_UNKNOWN_IMAGE
Flag specifying whether unknown images should be written.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(NImage srcImage,
int left,
int top,
int width,
int height,
NImage dstImage,
int dstLeft,
int dstTop)
Copies specified rectangular area of the NImage to other NImage object.
|
static void |
copy(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
int srcStride,
ByteBuffer srcPixels,
int srcLeft,
int srcTop,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
int dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int width,
int height)
Copies pixels from one memory buffer to another.
|
static void |
copy(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer[] srcPlanes,
int srcLeft,
int srcTop,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
Copies planes from one memory buffer to another.
|
static void |
copy(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer srcPixels,
int srcLeft,
int srcTop,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
Copies pixels from one memory buffer to another.
|
static void |
copy(NPixelFormat srcPixelFormat,
Object srcMinValue,
Object srcMaxValue,
ByteBuffer srcPalette,
int srcPaletteLength,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer[] srcPlanes,
int srcLeft,
int srcTop,
NPixelFormat dstPixelFormat,
Object dstMinValue,
Object dstMaxValue,
ByteBuffer dstPalette,
int dstPaletteLength,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
Copies planes from one memory buffer to another.
|
void |
copyFrom(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
int srcStride,
ByteBuffer srcPixels,
int left,
int top)
Copies pixels to from memory buffer.
|
void |
copyFrom(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
int srcStride,
ByteBuffer srcPixels,
int srcLeft,
int srcTop,
int left,
int top,
int width,
int height)
Copies part of pixels to from memory buffer.
|
void |
copyFrom(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer[] srcPlanes,
int srcLeft,
int srcTop,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int left,
int top,
int width,
int height,
int flags)
Copies part of pixels to from memory buffer.
|
void |
copyFrom(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer srcPixels,
int left,
int top,
int flags)
Copies pixels to from memory buffer.
|
void |
copyFrom(NPixelFormat srcPixelFormat,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer srcPixels,
int srcLeft,
int srcTop,
int left,
int top,
int width,
int height,
int flags)
Copies part of pixels to from memory buffer.
|
void |
copyFrom(NPixelFormat srcPixelFormat,
Object srcMinValue,
Object srcMaxValue,
ByteBuffer srcPalette,
int srcPaletteLength,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer[] srcPlanes,
int srcLeft,
int srcTop,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int left,
int top,
int width,
int height,
int flags)
Copies part of pixels to from memory buffer.
|
void |
copyFromYCbCrData(com.neurotec.io.NBuffer hPlaneY,
int rowStrideY,
int pixelStrideY,
com.neurotec.io.NBuffer hPlaneCb,
int rowStrideCb,
int pixelStrideCb,
com.neurotec.io.NBuffer hPlaneCr,
int rowStrideCr,
int pixelStrideCr) |
void |
copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
int dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int width,
int height)
Copies part of NImage pixels to memory buffer.
|
void |
copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
Copies part of NImage planes to memory buffer.
|
void |
copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
Copies part of NImage pixels to memory buffer.
|
void |
copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
Object dstMinValue,
Object dstMaxValue,
ByteBuffer dstPalette,
int dstPaletteLength,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
Copies part of NImage planes to memory buffer.
|
void |
copyTo(NImage dstImage,
int dstLeft,
int dstTop)
Copies specified rectangular area of the NImage to other NImage object.
|
void |
copyTo(NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
int dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop)
Copies specified rectangular area of the NImage to other NImage object.
|
void |
copyTo(NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int flags)
Copies specified rectangular area of the NImage to other NImage object.
|
static NImage |
create(NPixelFormat pixelFormat,
int width,
int height,
int stride)
Creates an image with specified pixel format, size and stride.
|
static NImage |
create(NPixelFormat pixelFormat,
int width,
int height,
long stride,
int flags)
Creates an image with specified pixel format, size and stride.
|
NImage |
crop(int left,
int top,
int width,
int height)
Crops an image.
|
void |
flipDiagonally()
Flips image diagonally.
|
void |
flipHorizontally()
Flips image horizontally.
|
void |
flipVertically()
Flips image vertically.
|
static NImage |
fromChannel(ReadableByteChannel ch)
Deprecated.
|
static NImage |
fromChannel(ReadableByteChannel ch,
NImageFormat imageFormat)
Deprecated.
|
static NImage |
fromChannel(ReadableByteChannel ch,
NImageFormat imageFormat,
int flags)
Deprecated.
|
static NImage |
fromData(NPixelFormat pixelFormat,
int width,
int height,
int stride,
int srcStride,
ByteBuffer srcPixels)
Creates NImage object from data.
|
static NImage |
fromData(NPixelFormat pixelFormat,
int stride,
int srcWidth,
int srcHeight,
int srcStride,
ByteBuffer srcPixels,
int left,
int top,
int width,
int height)
Creates NImage object from data.
|
static NImage |
fromData(NPixelFormat pixelFormat,
int width,
int height,
long stride,
long srcStride,
ByteBuffer srcPixels,
int flags)
Creates NImage object from data.
|
static NImage |
fromData(NPixelFormat pixelFormat,
long stride,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer[] srcPlanes,
int left,
int top,
int width,
int height,
int flags)
Creates NImage object from data.
|
static NImage |
fromData(NPixelFormat pixelFormat,
long stride,
int srcWidth,
int srcHeight,
long srcStride,
ByteBuffer srcPixels,
int left,
int top,
int width,
int height,
int flags)
Creates NImage object from data.
|
static NImage |
fromFile(String fileName)
Creates NImage object from file.
|
static NImage |
fromFile(String fileName,
NImageFormat imageFormat)
Creates NImage object from file with specified NImageFormat.
|
static NImage |
fromFile(String fileName,
NImageFormat imageFormat,
int flags)
Creates NImage object from file with specified NImageFormat.
|
static NImage |
fromImage(NPixelFormat pixelFormat,
int stride,
NImage srcImage)
Creates NImage object from another NImage object.
|
static NImage |
fromImage(NPixelFormat pixelFormat,
int stride,
NImage srcImage,
int left,
int top,
int width,
int height)
Creates NImage object from another NImage object.
|
static NImage |
fromImage(NPixelFormat pixelFormat,
long stride,
NImage srcImage,
int flags)
Creates NImage object from another NImage object.
|
static NImage |
fromImage(NPixelFormat pixelFormat,
long stride,
NImage srcImage,
int left,
int top,
int width,
int height,
int flags)
Creates NImage object from another NImage object.
|
static NImage |
fromInputStream(InputStream in)
Deprecated.
|
static NImage |
fromInputStream(InputStream in,
NImageFormat imageFormat)
Deprecated.
|
static NImage |
fromInputStream(InputStream in,
NImageFormat imageFormat,
int flags)
Deprecated.
|
static NImage |
fromMemory(ByteBuffer buffer)
Creates NImage object from a byte buffer.
|
static NImage |
fromMemory(com.neurotec.io.NBuffer buffer)
Creates NImage object from another memory buffer.
|
static NImage |
fromMemory(com.neurotec.io.NBuffer buffer,
NImageFormat imageFormat)
Creates NImage object from another memory buffer.
|
static NImage |
fromMemory(com.neurotec.io.NBuffer buffer,
NImageFormat imageFormat,
int flags)
Creates NImage object from another memory buffer.
|
static NImage |
fromStream(com.neurotec.io.NStream stream) |
static NImage |
fromStream(com.neurotec.io.NStream stream,
NImageFormat imageFormat) |
static NImage |
fromStream(com.neurotec.io.NStream stream,
NImageFormat imageFormat,
int flags) |
static NImage |
fromVideoSample(NVideoFormat format,
byte[] sample) |
static NImage |
fromVideoSample(NVideoFormat format,
com.neurotec.io.NBuffer sample) |
int |
getHeight()
Gets height of image from NImage object.
|
float |
getHorzResolution()
Gets horizontal resolution in pixels per inch of image.
|
int |
getImageSize()
Gets size of NImage object.
|
int |
getIndex(int x,
int y)
Retrieves the palette entry index of the specified pixel.
|
NImageInfo |
getInfo()
Retrieves a NImageInfo object for the current image.
|
long |
getLongImageSize()
Gets size of NImage object.
|
long |
getLongPlaneSize()
Gets the plane size.
|
long |
getLongStride()
Gets stride of image from NImage object.
|
Object |
getMaxValue()
Retrieves maximum pixel value for the current image image.
|
Object |
getMinValue()
Retrieves minimum pixel value for the current grayscale image.
|
NImage.ImagePalette |
getPalette()
Retrieves the palette of the current image.
|
Object |
getPixel(int x,
int y)
Retrieves the specified pixel.
|
NPixelFormat |
getPixelFormat()
Gets NPixelFormat of NImage object.
|
com.neurotec.io.NBuffer |
getPixels()
Gets pointer to array of pixels from NImage object.
|
NImage.PlaneCollection |
getPlanes()
Gets the collection of planes.
|
int |
getPlaneSize()
Gets the plane size.
|
int |
getStride()
Gets stride of image from NImage object.
|
static int[] |
getSupportedVideoSubtypes() |
float |
getVertResolution()
Gets vertical resolution in pixels per inch of image.
|
int |
getWidth()
Gets width of image from NImage object.
|
static NImage |
getWrapper(NImage srcImage,
int left,
int top,
int width,
int height)
Creates NImage object wrapper.
|
static NImage |
getWrapper(NImage srcImage,
int left,
int top,
int width,
int height,
int flags)
Creates NImage object wrapper.
|
static NImage |
getWrapper(NPixelFormat pixelFormat,
int width,
int height,
int stride,
com.neurotec.io.NBuffer pixels)
Creates NImage object wrapper.
|
static NImage |
getWrapper(NPixelFormat pixelFormat,
int srcWidth,
int srcHeight,
int stride,
com.neurotec.io.NBuffer pixels,
int left,
int top,
int width,
int height)
Creates NImage object wrapper.
|
static NImage |
getWrapper(NPixelFormat pixelFormat,
int srcWidth,
int srcHeight,
long stride,
com.neurotec.io.NBuffer[] planes,
int left,
int top,
int width,
int height,
int flags)
Creates NImage object wrapper.
|
static NImage |
getWrapper(NPixelFormat pixelFormat,
int width,
int height,
long stride,
com.neurotec.io.NBuffer pixels,
int flags)
Creates NImage object wrapper.
|
static NImage |
getWrapper(NPixelFormat pixelFormat,
int srcWidth,
int srcHeight,
long stride,
com.neurotec.io.NBuffer pixels,
int left,
int top,
int width,
int height,
int flags)
Creates NImage object wrapper.
|
boolean |
isResolutionIsAspectRatio()
Gets NImage resolution aspect ratio.
|
static boolean |
isVideoFormatSupported(NVideoFormat format) |
static boolean |
isVideoSubtypeSupported(int value) |
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
NImage |
rotateFlip(NImageRotateFlipType rotateFlipType)
Rotates image using rotation type.
|
NImage |
rotateFlip(NImageRotateType rotateType,
EnumSet<NImageFlipType> flipType)
Deprecated.
|
com.neurotec.io.NBuffer |
save(NImageFormat imageFormat)
Saves image to memory buffer using specified format.
|
com.neurotec.io.NBuffer |
save(NImageFormat imageFormat,
NImageInfo info,
int flags)
Saves image to memory buffer with specified image info and format.
|
com.neurotec.io.NBuffer |
save(NImageInfo info)
Saves image to memory buffer with specified image info.
|
void |
save(com.neurotec.io.NStream stream,
NImageFormat imageFormat) |
void |
save(com.neurotec.io.NStream stream,
NImageFormat imageFormat,
NImageInfo info,
int flags) |
void |
save(com.neurotec.io.NStream stream,
NImageInfo info) |
void |
save(OutputStream out,
NImageFormat imageFormat)
Deprecated.
|
void |
save(OutputStream out,
NImageFormat imageFormat,
NImageInfo info,
int flags)
Deprecated.
|
void |
save(OutputStream out,
NImageInfo info)
Deprecated.
|
void |
save(String fileName)
Saves NImage object to file.
|
void |
save(String fileName,
NImageFormat imageFormat)
Saves NImage object to file with specified NImageFormat.
|
void |
save(String fileName,
NImageFormat imageFormat,
NImageInfo info,
int flags)
Saves image to file using specified format and image info.
|
void |
save(String fileName,
NImageInfo info)
Saves NImage object to file using specified image info.
|
void |
save(WritableByteChannel ch,
NImageFormat imageFormat)
Deprecated.
|
void |
save(WritableByteChannel ch,
NImageFormat imageFormat,
NImageInfo info,
int flags)
Deprecated.
|
void |
save(WritableByteChannel ch,
NImageInfo info)
Deprecated.
|
void |
setHorzResolution(float value)
Sets horizontal resolution in pixels per inch of image.
|
void |
setIndex(int x,
int y,
int value)
Sets the palette entry index for the specified pixel.
|
void |
setMaxValue(Object value)
Sets the maximum pixel value for the current grayscale image.
|
void |
setMinValue(Object value)
Sets the minimum pixel value for the current grayscale image.
|
void |
setPixel(int x,
int y,
Object value)
Sets specified pixel's value to the specified value.
|
void |
setResolutionIsAspectRatio(boolean value)
Sets NImage resolution aspect ratio.
|
void |
setVertResolution(float value)
Sets vertical resolution in pixels per inch of image.
|
Image |
toImage()
Creates an Image object.
|
Image |
writeTo(BufferedImage bufferedImage,
boolean maintainBufferedImageType)
Attempts to write pixels from this NImage to the specified BufferedImage,
converting the pixel format to maintain the
bufferedImage's type
if maintainBufferedImageType is true. |
Image |
writeTo(Image awtImage)
Attempts to write pixels from this NImage to the specified Image.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic static final int FLAG_READ_UNKNOWN_IMAGE
public static final int FLAG_WRITE_UNKNOWN_IMAGE
public static final int FLAG_DST_SWAP_CHANNELS
public static final int FLAG_DST_ALPHA_CHANNEL_FIRST
public static final int FLAG_DST_BOTTOM_TO_TOP
public static final int FLAG_SRC_SWAP_CHANNELS
public static final int FLAG_SRC_ALPHA_CHANNEL_FIRST
public static final int FLAG_SRC_BOTTOM_TO_TOP
public static final int FLAG_ALL_DST
public static final int FLAG_ALL_SRC
public static final int FLAG_ALL_DST_AND_SRC
public static com.neurotec.lang.NType nativeTypeOf()
public static NImage getWrapper(NPixelFormat pixelFormat, int width, int height, int stride, com.neurotec.io.NBuffer pixels)
pixelFormat - A NPixelFormat of image.width - A width of image.height - A height of image.stride - A stride of image.pixels - ByteBuffer containing pixels.public static NImage getWrapper(NPixelFormat pixelFormat, int width, int height, long stride, com.neurotec.io.NBuffer pixels, int flags)
pixelFormat - A NPixelFormat of image.width - A width of image.height - A height of image.stride - A stride of image.pixels - ByteBuffer containing pixels.flags - Must be zero.public static NImage getWrapper(NPixelFormat pixelFormat, int srcWidth, int srcHeight, int stride, com.neurotec.io.NBuffer pixels, int left, int top, int width, int height)
pixelFormat - A NPixelFormat of image.srcWidth - A width of image.srcHeight - A height of image.stride - A stride of image.pixels - A source Bytebuffer.left - Left X-coordinate of the image.top - Top Y-coordinate of the image.width - Image width.height - Image height.public static NImage getWrapper(NPixelFormat pixelFormat, int srcWidth, int srcHeight, long stride, com.neurotec.io.NBuffer pixels, int left, int top, int width, int height, int flags)
pixelFormat - A NPixelFormat of image.srcWidth - A width of image.srcHeight - A height of image.stride - A stride of image.pixels - A source Bytebuffer.left - Left X-coordinate of the image.top - Top Y-coordinate of the image.width - NImage width.height - NImage height.flags - Must be zero.public static NImage getWrapper(NPixelFormat pixelFormat, int srcWidth, int srcHeight, long stride, com.neurotec.io.NBuffer[] planes, int left, int top, int width, int height, int flags)
pixelFormat - A NPixelFormat of image.srcWidth - A width of image.srcHeight - A height of image.stride - A stride of image.planes - A source Bytebuffer.left - Left X-coordinate of the image.top - Top Y-coordinate of the image.width - NImage width.height - NImage height.flags - Must be zero.public static NImage getWrapper(NImage srcImage, int left, int top, int width, int height)
srcImage - A NImage source object.left - X - coordinate of the image rectangle.top - Y - coordinate of the image rectangle.width - A width of image.height - A height of image.public static NImage getWrapper(NImage srcImage, int left, int top, int width, int height, int flags)
srcImage - A NImage source object.left - X - coordinate of the image rectangle.top - Y - coordinate of the image rectangle.width - A width of image.height - A height of image.flags - Must be zero.public static NImage create(NPixelFormat pixelFormat, int width, int height, int stride)
pixelFormat - Specifies pixel format of the image.width - Specifies width of the image.height - Specifies height of the image.stride - Specifies stride of the image.public static NImage create(NPixelFormat pixelFormat, int width, int height, long stride, int flags)
pixelFormat - Specifies pixel format of the image.width - Specifies width of the image.height - Specifies height of the image.stride - Specifies stride of the image.flags - public static NImage fromData(NPixelFormat pixelFormat, int width, int height, int stride, int srcStride, ByteBuffer srcPixels)
pixelFormat - A NPixelFormat of image.width - A width of image.height - A height of image.stride - A stride of image.srcStride - A stride of source image.srcPixels - ByteBuffer of pixels.public static NImage fromData(NPixelFormat pixelFormat, int width, int height, long stride, long srcStride, ByteBuffer srcPixels, int flags)
pixelFormat - A NPixelFormat of image.width - A width of image.height - A height of image.stride - A stride of image.srcStride - A stride of source image.srcPixels - ByteBuffer of pixels.flags - public static NImage fromData(NPixelFormat pixelFormat, int stride, int srcWidth, int srcHeight, int srcStride, ByteBuffer srcPixels, int left, int top, int width, int height)
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcWidth - A width of source image.srcHeight - A height of source image.srcStride - A stride of source image.srcPixels - ByteBuffer of pixels.left - X - coordinate of the image rectangle.top - Y - coordinate of the image rectangle.width - A width of image.height - A height of image.public static NImage fromData(NPixelFormat pixelFormat, long stride, int srcWidth, int srcHeight, long srcStride, ByteBuffer srcPixels, int left, int top, int width, int height, int flags)
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcWidth - A width of source image.srcHeight - A height of source image.srcStride - A stride of source image.srcPixels - ByteBuffer of pixels.left - X - coordinate of the image rectangle.top - Y - coordinate of the image rectangle.width - A width of image.height - A height of image.flags - public static NImage fromData(NPixelFormat pixelFormat, long stride, int srcWidth, int srcHeight, long srcStride, ByteBuffer[] srcPlanes, int left, int top, int width, int height, int flags)
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcWidth - A width of source image.srcHeight - A height of source image.srcStride - A stride of source image.srcPlanes - ByteBuffer of planes.left - X - coordinate of the image rectangle.top - Y - coordinate of the image rectangle.width - A width of image.height - A height of image.flags - public static NImage fromImage(NPixelFormat pixelFormat, int stride, NImage srcImage)
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcImage - A NImage source object.public static NImage fromImage(NPixelFormat pixelFormat, long stride, NImage srcImage, int flags)
If stride is zero then image stride is automatically calculated. For more information on image stride see Stride property.
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcImage - A NImage source object.flags - public static NImage fromImage(NPixelFormat pixelFormat, int stride, NImage srcImage, int left, int top, int width, int height)
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcImage - A NImage source object.left - X-coordinate of the image rectangle.top - Y-coordinate of the image rectangle.width - A width of image.height - A height of image.public static NImage fromImage(NPixelFormat pixelFormat, long stride, NImage srcImage, int left, int top, int width, int height, int flags)
pixelFormat - A NPixelFormat of image.stride - A stride of image.srcImage - A NImage source object.left - X-coordinate of the image rectangle.top - Y-coordinate of the image rectangle.width - A width of image.height - A height of image.flags - public static NImage fromFile(String fileName) throws IOException
fileName - A string that contains the name of the file.IOExceptionpublic static NImage fromFile(String fileName, NImageFormat imageFormat) throws IOException
fileName - A name of the file.imageFormat - An image NImageFormat object.IOExceptionpublic static NImage fromFile(String fileName, NImageFormat imageFormat, int flags) throws IOException
fileName - A name of the file.imageFormat - An image NImageFormat object.flags - IOExceptionpublic static NImage fromMemory(ByteBuffer buffer)
buffer - The source byte buffer.public static NImage fromMemory(com.neurotec.io.NBuffer buffer)
buffer - Memory buffer containing NImage data.public static NImage fromMemory(com.neurotec.io.NBuffer buffer, NImageFormat imageFormat)
buffer - Memory buffer containing NImage data.imageFormat - Format of the image.public static NImage fromMemory(com.neurotec.io.NBuffer buffer, NImageFormat imageFormat, int flags)
buffer - Memory buffer containing NImage data.imageFormat - Format of the image.flags - Should be zero.@Deprecated public static NImage fromInputStream(InputStream in) throws IOException
in - The input stream.IOException@Deprecated public static NImage fromInputStream(InputStream in, NImageFormat imageFormat) throws IOException
in - The input stream.imageFormat - Format of the image.IOException@Deprecated public static NImage fromInputStream(InputStream in, NImageFormat imageFormat, int flags) throws IOException
in - The input stream.imageFormat - Format of the image.flags - Should be zero.IOException@Deprecated public static NImage fromChannel(ReadableByteChannel ch) throws IOException
ch - The source byte channelIOException@Deprecated public static NImage fromChannel(ReadableByteChannel ch, NImageFormat imageFormat) throws IOException
ch - The source byte channelimageFormat - Format of the image.IOException@Deprecated public static NImage fromChannel(ReadableByteChannel ch, NImageFormat imageFormat, int flags) throws IOException
ch - The source byte channelimageFormat - Format of the image.flags - Should be zero.IOExceptionpublic static NImage fromStream(com.neurotec.io.NStream stream) throws IOException
IOExceptionpublic static NImage fromStream(com.neurotec.io.NStream stream, NImageFormat imageFormat) throws IOException
IOExceptionpublic static NImage fromStream(com.neurotec.io.NStream stream, NImageFormat imageFormat, int flags) throws IOException
IOExceptionpublic static int[] getSupportedVideoSubtypes()
public static boolean isVideoSubtypeSupported(int value)
public static boolean isVideoFormatSupported(NVideoFormat format)
public static NImage fromVideoSample(NVideoFormat format, com.neurotec.io.NBuffer sample)
public static NImage fromVideoSample(NVideoFormat format, byte[] sample)
public static void copy(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, int srcStride, ByteBuffer srcPixels, int srcLeft, int srcTop, NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, int dstStride, ByteBuffer dstPixels, int dstLeft, int dstTop, int width, int height)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPixels - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.dstPixelFormat - The destination pixel format.dstWidth - The width of the destination image data.dstHeight - The height of the destination image data.dstStride - The stride of the destination image data.dstPixels - The destination memory block.dstLeft - The left coordinate of the destination image data.dstTop - The top coordinate of the destination image data.width - Image width.height - Image height.public static void copy(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, long srcStride, ByteBuffer srcPixels, int srcLeft, int srcTop, NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, long dstStride, ByteBuffer dstPixels, int dstLeft, int dstTop, int width, int height, int flags)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPixels - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.dstPixelFormat - The destination pixel format.dstWidth - The width of the destination image data.dstHeight - The height of the destination image data.dstStride - The stride of the destination image data.dstPixels - The destination memory block.dstLeft - The left coordinate of the destination image data.dstTop - The top coordinate of the destination image data.width - Image width.height - Image height.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public static void copy(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, long srcStride, ByteBuffer[] srcPlanes, int srcLeft, int srcTop, NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, long dstStride, ByteBuffer[] dstPlanes, int dstLeft, int dstTop, int width, int height, int flags)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPlanes - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.dstPixelFormat - The destination pixel format.dstWidth - The width of the destination image data.dstHeight - The height of the destination image data.dstStride - The stride of the destination image data.dstPlanes - The destination memory block.dstLeft - The left coordinate of the destination image data.dstTop - The top coordinate of the destination image data.width - Image width.height - Image height.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public static void copy(NPixelFormat srcPixelFormat, Object srcMinValue, Object srcMaxValue, ByteBuffer srcPalette, int srcPaletteLength, int srcWidth, int srcHeight, long srcStride, ByteBuffer[] srcPlanes, int srcLeft, int srcTop, NPixelFormat dstPixelFormat, Object dstMinValue, Object dstMaxValue, ByteBuffer dstPalette, int dstPaletteLength, int dstWidth, int dstHeight, long dstStride, ByteBuffer[] dstPlanes, int dstLeft, int dstTop, int width, int height, int flags)
srcPixelFormat - The source pixel format.srcMinValue - The minimum source pixel values.srcMaxValue - The maximum source pixel values.srcPalette - The source image palette.srcPaletteLength - Source image palette size.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPlanes - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.public static void copy(NImage srcImage, int left, int top, int width, int height, NImage dstImage, int dstLeft, int dstTop)
srcImage - NImage object to copy.left - The x coordinate of source rectangle.top - The y coordinate of source rectangle.width - The width of source rectangle.height - The height of source rectangle.dstImage - A destination NImage object.
Specified rectangular area will be copied to this object.dstLeft - The x coordinate in the destination NImage object.
Copied NImage will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object.
Copied NImage will be placed starting by this coordinate.NullPointerException - srcImage or dstImage has null value.public final void copyFrom(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, int srcStride, ByteBuffer srcPixels, int left, int top)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPixels - The source memory block.left - The left coordinate of the image data.top - The top coordinate of the image data.public final void copyFrom(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, long srcStride, ByteBuffer srcPixels, int left, int top, int flags)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPixels - The source memory block.left - The left coordinate of the image data.top - The top coordinate of the image data.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyFrom(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, int srcStride, ByteBuffer srcPixels, int srcLeft, int srcTop, int left, int top, int width, int height)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPixels - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.left - The left coordinate of the image part.top - The top coordinate of the image part.width - Width of the image part.height - Height of the image part.public final void copyFrom(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, long srcStride, ByteBuffer srcPixels, int srcLeft, int srcTop, int left, int top, int width, int height, int flags)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPixels - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.left - The left coordinate of the image part.top - The top coordinate of the image part.width - Width of the image part.height - Height of the image part.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyFrom(NPixelFormat srcPixelFormat, int srcWidth, int srcHeight, long srcStride, ByteBuffer[] srcPlanes, int srcLeft, int srcTop, NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, long dstStride, ByteBuffer[] dstPlanes, int dstLeft, int dstTop, int left, int top, int width, int height, int flags)
srcPixelFormat - The source pixel format.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPlanes - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.dstPixelFormat - The destination pixel format.dstWidth - The width of the destination image data.dstHeight - The height of the destination image data.dstStride - The stride of the destination image data.dstPlanes - The destination memory block.dstLeft - The left coordinate of the destination image data.dstTop - The top coordinate of the destination image data.left - The left coordinate of the image part.top - The top coordinate of the image part.width - Width of the image part.height - Height of the image part.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyFrom(NPixelFormat srcPixelFormat, Object srcMinValue, Object srcMaxValue, ByteBuffer srcPalette, int srcPaletteLength, int srcWidth, int srcHeight, long srcStride, ByteBuffer[] srcPlanes, int srcLeft, int srcTop, NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, long dstStride, ByteBuffer[] dstPlanes, int dstLeft, int dstTop, int left, int top, int width, int height, int flags)
srcPixelFormat - The source pixel format.srcMinValue - The minimum source pixel values.srcMaxValue - The maximum source pixel values.srcPalette - The source image palette.srcPaletteLength - Source image palette size.srcWidth - The width of the source image data.srcHeight - The height of the source image data.srcStride - The stride of the source image data.srcPlanes - The source memory block.srcLeft - The left coordinate of the source image data.srcTop - The top coordinate of the source image data.dstPixelFormat - The destination pixel format.dstWidth - The width of the destination image data.dstHeight - The height of the destination image data.dstStride - The stride of the destination image data.dstPlanes - The destination memory block.dstLeft - The left coordinate of the destination image data.dstTop - The top coordinate of the destination image data.left - The left coordinate of the image part.top - The top coordinate of the image part.width - Width of the image part.height - Height of the image part.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyFromYCbCrData(com.neurotec.io.NBuffer hPlaneY,
int rowStrideY,
int pixelStrideY,
com.neurotec.io.NBuffer hPlaneCb,
int rowStrideCb,
int pixelStrideCb,
com.neurotec.io.NBuffer hPlaneCr,
int rowStrideCr,
int pixelStrideCr)
public final void copyTo(NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, int dstStride, ByteBuffer dstPixels, int dstLeft, int dstTop)
dstPixelFormat - Destination pixel format.dstWidth - The width of source image data.dstHeight - The height of source image data.dstStride - The stride of source image data.dstPixels - Memory buffer where Nimage data is saved.dstLeft - The x coordinate in the destination NImage object. Copied NImage will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied NImage will be placed starting by this coordinate.public final void copyTo(NPixelFormat dstPixelFormat, int dstWidth, int dstHeight, long dstStride, ByteBuffer dstPixels, int dstLeft, int dstTop, int flags)
dstPixelFormat - Destination pixel format.dstWidth - The width of source image data.dstHeight - The height of source image data.dstStride - The stride of source image data.dstPixels - Memory buffer where Nimage data is saved.dstLeft - The x coordinate in the destination NImage object. Copied NImage will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied NImage will be placed starting by this coordinate.flags - Flags controlling this method. These flags can be used: FlagDstAlphaChannelFirst, FlagDstBottomToTop, FlagDstSwapChannels.public final void copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
int dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int width,
int height)
left - Left coordinate of the image part.top - Top coordinate of the image part.dstPixelFormat - Destination pixel format.dstWidth - The width of source image data.dstHeight - The height of source image data.dstStride - The stride of source image data.dstPixels - The memory block where Nimage data is saved.dstLeft - The x coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.width - Width of the image part.height - Height of the image part.public final void copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer dstPixels,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
left - Left coordinate of the image part.top - Top coordinate of the image part.dstPixelFormat - Destination pixel format.dstWidth - The width of source image data.dstHeight - The height of source image data.dstStride - The stride of source image data.dstPixels - The memory block where Nimage data is saved.dstLeft - The x coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.width - Width of the image part.height - Height of the image part.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
left - Left coordinate of the image part.top - Top coordinate of the image part.dstPixelFormat - Destination pixel format.dstWidth - The width of source image data.dstHeight - The height of source image data.dstStride - The stride of source image data.dstPlanes - The memory block where Nimage data is saved.dstLeft - The x coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.width - Width of the image part.height - Height of the image part.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyTo(int left,
int top,
NPixelFormat dstPixelFormat,
Object dstMinValue,
Object dstMaxValue,
ByteBuffer dstPalette,
int dstPaletteLength,
int dstWidth,
int dstHeight,
long dstStride,
ByteBuffer[] dstPlanes,
int dstLeft,
int dstTop,
int width,
int height,
int flags)
left - Left coordinate of the image part.top - Top coordinate of the image part.dstPixelFormat - Destination pixel format.dstMinValue - The minimum destination pixel values.dstMaxValue - The maximum destination pixel values.dstPalette - The destination image palette.dstPaletteLength - Destination image palette size.dstWidth - The width of source image data.dstHeight - The height of source image data.dstStride - The stride of source image data.dstPlanes - The memory block where Nimage data is saved.dstLeft - The x coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied data will be placed starting by this coordinate.width - Width of the image part.height - Height of the image part.flags - Flags controlling function. These flags can be used: NI_DST_ALPHA_CHANNEL_FIRST, NI_DST_BOTTOM_TO_TOP, NI_DST_SWAP_CHANNELS.public final void copyTo(NImage dstImage, int dstLeft, int dstTop)
dstImage - Destination NImage object. Specified NImage will be copied to this object.dstLeft - The x coordinate in the destination NImage object. Copied NImage will be placed starting by this coordinate.dstTop - The y coordinate in the destination NImage object. Copied NImage will be placed starting by this coordinate.public final void save(String fileName) throws IOException
fileName - A string that contains the name of the file.IOExceptionpublic final void save(String fileName, NImageFormat imageFormat) throws IOException
fileName - A string that contains the name of the file.imageFormat - An image NImageFormat object.IOExceptionpublic final void save(String fileName, NImageInfo info) throws IOException
fileName - A string that contains the name of the file.info - Image info.IOExceptionpublic final void save(String fileName, NImageFormat imageFormat, NImageInfo info, int flags) throws IOException
fileName - A string that contains the name of the file.imageFormat - An image NImageFormat object.info - Image info.flags - Must be zero.IOExceptionpublic com.neurotec.io.NBuffer save(NImageFormat imageFormat)
imageFormat - The image format.public com.neurotec.io.NBuffer save(NImageInfo info)
info - The image info.public com.neurotec.io.NBuffer save(NImageFormat imageFormat, NImageInfo info, int flags)
imageFormat - The image format.info - The image info.flags - Must be zero.@Deprecated public final void save(OutputStream out, NImageFormat imageFormat) throws IOException
out - Data stream used to save the image.imageFormat - The image format.IOException@Deprecated public final void save(OutputStream out, NImageInfo info) throws IOException
out - Data stream used to save the image.info - The image info.IOException@Deprecated public final void save(OutputStream out, NImageFormat imageFormat, NImageInfo info, int flags) throws IOException
out - Data stream used to save the image.imageFormat - The image format.info - The image info.flags - Must be zero.IOException@Deprecated public final void save(WritableByteChannel ch, NImageFormat imageFormat) throws IOException
ch - Byte channel used to save the image.imageFormat - The image format.IOException@Deprecated public final void save(WritableByteChannel ch, NImageInfo info) throws IOException
ch - Byte channel used to save the image.info - The image info.IOException@Deprecated public final void save(WritableByteChannel ch, NImageFormat imageFormat, NImageInfo info, int flags) throws IOException
ch - Byte channel used to save the image.imageFormat - The image format.info - The image info.flags - Must be zero.IOExceptionpublic final void save(com.neurotec.io.NStream stream,
NImageFormat imageFormat)
throws IOException
IOExceptionpublic final void save(com.neurotec.io.NStream stream,
NImageInfo info)
throws IOException
IOExceptionpublic final void save(com.neurotec.io.NStream stream,
NImageFormat imageFormat,
NImageInfo info,
int flags)
throws IOException
IOExceptionpublic final void flipHorizontally()
public final void flipVertically()
public final void flipDiagonally()
public final NImage rotateFlip(NImageRotateFlipType rotateFlipType)
rotateFlipType - One of the rotation type value.@Deprecated public final NImage rotateFlip(NImageRotateType rotateType, EnumSet<NImageFlipType> flipType)
rotateType - One of the NImageRotateType value.flipType - One of the NImageFlipType value.public final NImage crop(int left, int top, int width, int height)
left - X\-coordinate of the cropping rectangle.top - Y\-coordinate of the cropping rectangle.width - Width of the cropping rectangle.height - Width of the cropping rectangle.public final Image toImage()
public final Image writeTo(BufferedImage bufferedImage, boolean maintainBufferedImageType)
bufferedImage's type
if maintainBufferedImageType is true. The following types are
supported: TYPE_INT_RGB, TYPE_INT_ARGB,
TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_3BYTE_BGR,
TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE,
TYPE_BYTE_GRAY. If maintainBufferedImageType is false,
may return a new BufferedImage with a different type.bufferedImage - A BufferedImage to write pixel data to, if
maintainBufferedImageType is true.maintainBufferedImageType - If true, write pixel data to
bufferedImage, maintaining destination pixel format. Otherwise
may return a new image with a different pixel format.bufferedImage with unchanged BufferedImage type and pixel
data from this NImage if maintainBufferedImageType is true.UnsupportedOperationException - if
maintainBufferedImageType is true, and bufferedImage's
type is not supported.IllegalArgumentException - if this NImage's and
bufferedImage's dimensions are not equal.BufferedImage.TYPE_INT_RGB,
BufferedImage.TYPE_INT_ARGB,
BufferedImage.TYPE_INT_ARGB_PRE,
BufferedImage.TYPE_INT_BGR,
BufferedImage.TYPE_3BYTE_BGR,
BufferedImage.TYPE_4BYTE_ABGR,
BufferedImage.TYPE_4BYTE_ABGR_PRE,
BufferedImage.TYPE_BYTE_GRAYpublic final Image writeTo(Image awtImage)
awtImage, a new Image will be created, or pixel data will be
written directly to the specified awtImage. If awtImage
is null, a new Image is created.awtImage - An Image to write pixel data to, if awtImage is
compatible with this NImage.awtImage with pixel data from this NImage, or a new
NImage.public final NPixelFormat getPixelFormat()
public final Object getMinValue()
public final void setMinValue(Object value)
value - The minimum pixel value.public final Object getMaxValue()
public final void setMaxValue(Object value)
value - The maximum pixel value.public final int getWidth()
public final int getHeight()
public final int getStride()
public final long getLongStride()
public final int getPlaneSize()
public final long getLongPlaneSize()
public final int getImageSize()
public final long getLongImageSize()
public final float getHorzResolution()
Horizontal resolution equal to zero means that it is not applicable for the image.
public final void setHorzResolution(float value)
value - A horizontal resolution in pixels per inch of image.public final float getVertResolution()
public final void setVertResolution(float value)
value - A vertical resolution in pixels per inch of image.public final boolean isResolutionIsAspectRatio()
public final void setResolutionIsAspectRatio(boolean value)
value - [in] Defines NImage resolution mode. If set to true, it means that NImage shape
will be defined using width and height ratio (aspect ratio).public final Object getPixel(int x, int y)
x - X-coordinate of the pixel.y - Y-coordinate of the pixel.public final void setPixel(int x,
int y,
Object value)
x - X-coordinate of the pixel.y - Y-coordinate of the pixel.value - The new pixel value.public final int getIndex(int x,
int y)
x - X-coordinate of the pixel.y - Y-coordinate of the pixel.public final void setIndex(int x,
int y,
int value)
x - X-coordinate of the pixel.y - Y-coordinate of the pixel.value - Index of the palette entry.public final com.neurotec.io.NBuffer getPixels()
public final NImageInfo getInfo()
public final NImage.PlaneCollection getPlanes()
public final NImage.ImagePalette getPalette()
Copyright © 2016 Neurotechnology. All rights reserved.