public class SoTIFFImageRW extends SoRasterImageRW
The writeCapability is WRITE_SCANLINES and isMultipleBufferInverted is true.
See SoRasterImageRW
for more information and code examples.
See also:
Modifier and Type | Class and Description |
---|---|
static class |
SoTIFFImageRW.CompressionModes
CompressionMode.
|
SoRasterImageRW.OpenModes, SoRasterImageRW.ReadCapabilities, SoRasterImageRW.WriteCapabilities
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
NO_COMPRESSION
Deprecated.
Use
SoTIFFImageRW.CompressionModes.NO_COMPRESSION instead. |
static int |
PACKBITS_COMPRESSION
Deprecated.
Use
SoTIFFImageRW.CompressionModes.PACKBITS_COMPRESSION instead. |
OPEN_READ, OPEN_WRITE, READ_AVAILABLE, READ_UNAVAILABLE, WRITE_FULL_IMAGE, WRITE_SCANLINES, WRITE_UNAVAILABLE
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoTIFFImageRW()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SoTIFFImageRW.CompressionModes |
getCompressionMode()
Gets the compression mode used for encoding.
|
boolean |
read(SbRasterImage rasterImage,
long imageIndex)
Calls read(rasterImage, imageIndex, false).
|
boolean |
read(SbRasterImage rasterImage,
long imageIndex,
boolean infoOnly)
Read the current open image into rasterImage.
|
boolean |
readRegion(SbRasterImage rasterImage,
long imageIndex,
SbBox2i32 region)
Read the specified region of current open image into rasterImage.
|
void |
setCompressionMode(SoTIFFImageRW.CompressionModes compressionMode)
Sets the compression mode to use when encoding the image.
|
checkRead, close, enableMultipleWriting, getReadCapability, getWriteCapability, isMultipleBufferInverted, isMultipleWritingEnabled, open, read, read, readRegion, write, write, write, writeFooter, writeHeader, writeHeader
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int NO_COMPRESSION
SoTIFFImageRW.CompressionModes.NO_COMPRESSION
instead.@Deprecated public static final int PACKBITS_COMPRESSION
SoTIFFImageRW.CompressionModes.PACKBITS_COMPRESSION
instead.public boolean read(SbRasterImage rasterImage, long imageIndex)
public boolean read(SbRasterImage rasterImage, long imageIndex, boolean infoOnly)
If infoOnly is true, then the buffer will not be read; the parameter rasterImage will be set with raster size and raster number of components, the buffer will be NULL.
public SoTIFFImageRW.CompressionModes getCompressionMode()
public void setCompressionMode(SoTIFFImageRW.CompressionModes compressionMode)
public boolean readRegion(SbRasterImage rasterImage, long imageIndex, SbBox2i32 region)
After calling this method successfully, the size of the SbRasterImage
is the requested region size. The requested region may extend outside the source image. In this case, undefined pixels are set to zero. The region may be as small as a single pixel, e.g. (1,1,1,1), but xmin must be <= xmax and ymin <= ymax.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com