public final class NImageFormat
extends com.neurotec.lang.NObject
| Modifier and Type | Class and Description |
|---|---|
static class |
NImageFormat.ImageFormatCollection
Represents the collection of formats in a NImageFormat.
|
| Modifier and Type | Method and Description |
|---|---|
NImageInfo |
createInfo(NImage image)
Creates NImageInfo for the specified image.
|
NImageInfo |
createInfo(NImage image,
int flags)
Creates NImageInfo for the specified image.
|
static NImageFormat |
getBMP()
Specifies the BMP image format.
|
String |
getDefaultFileExtension()
Gets default file extension of the current image format.
|
String |
getDefaultInternetMediaType()
Gets default Internet media type of the current image format.
|
String |
getFileFilter()
Gets file filter of the current image format.
|
static NImageFormat.ImageFormatCollection |
getFormats()
Specifies collection of supported image formats.
|
static NImageFormat |
getIHead()
Specifies the NIST IHead image format.
|
String |
getInternetMediaType()
Gets Internet media type of the current image format.
|
static NImageFormat |
getJPEG()
Specifies the JPEG image format.
|
static NImageFormat |
getJPEG2K()
Specifies the JPEG2000 image format.
|
String |
getName()
Gets name of the current image format.
|
static NImageFormat |
getPNG()
Specifies the PNG image format.
|
static NImageFormat |
getTIFF()
Specifies the TIFF image format.
|
static NImageFormat |
getWSQ()
Specifies the WSQ image format.
|
boolean |
isCanRead()
Gets a value indicating whether the current image format supports reading.
|
boolean |
isCanWrite()
Gets a value indicating whether the current image format supports writing.
|
boolean |
isCanWriteMultiple()
Retrieves a value indicating whether the image format supports writing of multiple images.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves the native type for the enclosing class.
|
NImageReader |
openReader(InputStream in)
Deprecated.
|
NImageReader |
openReader(InputStream in,
int flags)
Deprecated.
|
NImageReader |
openReader(com.neurotec.io.NBuffer buffer)
Opens NImageReader from a memory buffer.
|
NImageReader |
openReader(com.neurotec.io.NBuffer buffer,
int flags)
Opens NImageReader from a memory buffer.
|
NImageReader |
openReader(com.neurotec.io.NStream stream) |
NImageReader |
openReader(com.neurotec.io.NStream stream,
int flags) |
NImageReader |
openReader(ReadableByteChannel ch)
Deprecated.
|
NImageReader |
openReader(ReadableByteChannel ch,
int flags)
Deprecated.
|
NImageReader |
openReader(String fileName)
Opens NImageReader from a specified file.
|
NImageReader |
openReader(String fileName,
int flags)
Opens NImageReader from a specified file.
|
NImageWriter |
openWriter()
Opens NImageWriter.
|
NImageWriter |
openWriter(int flags)
Opens NImageWriter.
|
NImageWriter |
openWriter(com.neurotec.io.NStream stream) |
NImageWriter |
openWriter(com.neurotec.io.NStream stream,
int flags) |
NImageWriter |
openWriter(OutputStream out)
Deprecated.
|
NImageWriter |
openWriter(OutputStream out,
int flags)
Deprecated.
|
NImageWriter |
openWriter(String fileName)
Opens NImageWriter to a specified file.
|
NImageWriter |
openWriter(String fileName,
int flags)
Opens NImageWriter to a specified file.
|
NImageWriter |
openWriter(WritableByteChannel ch)
Deprecated.
|
NImageWriter |
openWriter(WritableByteChannel ch,
int flags)
Deprecated.
|
static NImageFormat |
select(String fileName,
com.neurotec.io.NFileAccess fileAccess)
Retrieves supported image format registered with file extension of specified file name and supporting reading/writing as specified.
|
static NImageFormat |
selectByInternetMediaType(String internetMediaType,
com.neurotec.io.NFileAccess fileAccess)
Retrieves supported image format registered with Internet media type of specified file name and supporting reading/writing as specified.
|
static NImageReader |
selectReader(InputStream in)
Deprecated.
|
static NImageReader |
selectReader(InputStream in,
int flags)
Deprecated.
|
static NImageReader |
selectReader(com.neurotec.io.NBuffer buffer)
Selects a NImageReader from a memory buffer.
|
static NImageReader |
selectReader(com.neurotec.io.NBuffer buffer,
int flags)
Selects a NImageReader from a memory buffer.
|
static NImageReader |
selectReader(com.neurotec.io.NStream stream) |
static NImageReader |
selectReader(com.neurotec.io.NStream stream,
int flags) |
static NImageReader |
selectReader(ReadableByteChannel ch)
Deprecated.
|
static NImageReader |
selectReader(ReadableByteChannel ch,
int flags)
Deprecated.
|
static NImageReader |
selectReader(String fileName)
Selects a NImageReader from a specified file.
|
static NImageReader |
selectReader(String fileName,
int flags)
Selects a NImageReader from a specified file.
|
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 com.neurotec.lang.NType nativeTypeOf()
public static NImageFormat select(String fileName, com.neurotec.io.NFileAccess fileAccess)
fileName - A string that contains the name of the file.fileAccess - A file access.public static NImageFormat selectByInternetMediaType(String internetMediaType, com.neurotec.io.NFileAccess fileAccess)
internetMediaType - String containing Internet media type.fileAccess - Specifies that image format should support reading, writing or both.public static NImageReader selectReader(String fileName) throws IOException
fileName - Name of the file.IOExceptionpublic static NImageReader selectReader(String fileName, int flags) throws IOException
fileName - Name of the file.flags - Must be zero.IOExceptionpublic static NImageReader selectReader(com.neurotec.io.NBuffer buffer)
buffer - The source memory buffer.public static NImageReader selectReader(com.neurotec.io.NBuffer buffer, int flags)
buffer - The source memory buffer.flags - Must be zero.@Deprecated public static NImageReader selectReader(InputStream in) throws IOException
in - The source stream.IOException@Deprecated public static NImageReader selectReader(InputStream in, int flags) throws IOException
in - The source stream.flags - Must be zero.IOException@Deprecated public static NImageReader selectReader(ReadableByteChannel ch) throws IOException
ch - The byte channel.IOException@Deprecated public static NImageReader selectReader(ReadableByteChannel ch, int flags) throws IOException
ch - The byte channel.flags - Must be zero.IOExceptionpublic static NImageReader selectReader(com.neurotec.io.NStream stream) throws IOException
IOExceptionpublic static NImageReader selectReader(com.neurotec.io.NStream stream, int flags) throws IOException
IOExceptionpublic static NImageFormat getBMP()
public static NImageFormat getTIFF()
public static NImageFormat getJPEG()
public static NImageFormat getPNG()
public static NImageFormat getWSQ()
public static NImageFormat getIHead()
public static NImageFormat getJPEG2K()
public static NImageFormat.ImageFormatCollection getFormats()
public NImageReader openReader(String fileName) throws IOException
fileName - The file name.IOExceptionpublic NImageReader openReader(String fileName, int flags) throws IOException
fileName - The file name.flags - Must be zero.IOExceptionpublic NImageReader openReader(com.neurotec.io.NBuffer buffer)
buffer - The memory buffer.public NImageReader openReader(com.neurotec.io.NBuffer buffer, int flags)
buffer - The memory buffer.flags - Must be zero.@Deprecated public NImageReader openReader(InputStream in) throws IOException
in - The specified stream.IOException@Deprecated public NImageReader openReader(InputStream in, int flags) throws IOException
in - The specified stream.flags - Must be zero.IOException@Deprecated public NImageReader openReader(ReadableByteChannel ch) throws IOException
ch - The specified channel.IOException@Deprecated public NImageReader openReader(ReadableByteChannel ch, int flags) throws IOException
ch - The specified channel.flags - Must be zero.IOExceptionpublic NImageReader openReader(com.neurotec.io.NStream stream) throws IOException
IOExceptionpublic NImageReader openReader(com.neurotec.io.NStream stream, int flags) throws IOException
IOExceptionpublic NImageInfo createInfo(NImage image)
image - The specified image.public NImageInfo createInfo(NImage image, int flags)
image - The specified image.flags - Must be zero.public NImageWriter openWriter(String fileName) throws IOException
fileName - The file name.IOExceptionpublic NImageWriter openWriter(String fileName, int flags) throws IOException
fileName - The file name.flags - Must be zero.IOExceptionpublic NImageWriter openWriter()
public NImageWriter openWriter(int flags)
flags - Must be zero.@Deprecated public NImageWriter openWriter(OutputStream out) throws IOException
out - The specified stream.IOException@Deprecated public NImageWriter openWriter(OutputStream out, int flags) throws IOException
out - The specified stream.flags - Must be zero.IOException@Deprecated public NImageWriter openWriter(WritableByteChannel ch) throws IOException
ch - The specified channel.IOException@Deprecated public NImageWriter openWriter(WritableByteChannel ch, int flags) throws IOException
ch - The specified channel.flags - Must be zero.IOExceptionpublic NImageWriter openWriter(com.neurotec.io.NStream stream) throws IOException
IOExceptionpublic NImageWriter openWriter(com.neurotec.io.NStream stream, int flags) throws IOException
IOExceptionpublic String getName()
public String getDefaultFileExtension()
public String getDefaultInternetMediaType()
public String getFileFilter()
public String getInternetMediaType()
public boolean isCanRead()
true if image format can read, false if image format cannot read.public boolean isCanWrite()
true if image format can write, false if image format cannot write.public boolean isCanWriteMultiple()
true if image format can write, false if image format cannot write.Copyright © 2016 Neurotechnology. All rights reserved.