Rogue Wave Views 5.5.1 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Bitmap streamer class. More...
#include <ilviews/bitmaps/tiff.h>
Public Member Functions | |
IlvTIFFStreamer () | |
Constructor. | |
IlBoolean | canRead () const |
Indicates that the instance can read from a stream. | |
IlBoolean | canWrite () const |
Indicates that the instance can write to a stream. | |
IlBoolean | checkSignature (const IlUChar *data, IlUInt size) |
Indicates whether the instance can handle the stream. | |
Compression | getCompression () const |
Returns the compression mode. | |
IlUInt | getRowsPerStrip () const |
Returns The number of rows per strip used when saving. | |
IlBoolean | getTagValue (IlAny identifier, IlUInt tag, IlUInt &count, IlAny value=0) |
Returns the value of a given tag in a stream. | |
IlUInt | getTileHeight () const |
Returns The tile height used when saving. | |
IlUInt | getTileWidth () const |
Returns the tile width used when saving. | |
Mode | getWriteMode () const |
Returns the write mode. | |
virtual IlAny | openStream (ILVSTDPREF istream &stream) |
Opens the stream. | |
IlvBitmapData * | read (ILVSTDPREF istream &stream) |
Reads a TIFF image from a stream. | |
IlvBitmapInformation * | readInfo (ILVSTDPREF istream &stream) |
Reads image information from a stream. | |
IlvBitmapData * | readTile (ILVSTDPREF istream &stream, IlUShort x, IlUShort y) |
Reads a TIFF tile from a stream. | |
void | setCompression (Compression compression) |
Sets the compression mode used when writing. | |
void | setRowsPerStrip (IlUInt rowsperstrip) |
Sets the number of rows per strip used when saving. | |
void | setTileHeight (IlUInt tileheight) |
Sets the tile height used when saving. | |
void | setTileWidth (IlUInt tilewidth) |
Sets the tile width used when saving. | |
void | setWriteMode (Mode mode) |
Sets the write mode. | |
IlBoolean | write (IlvBitmapData *data, ILVSTDPREF ostream &stream) |
Writes an IlvBitmapData to a TIFF stream. | |
virtual void | writeCustomData (IlAny identifier) |
Allows custom data to be written in the stream. | |
IlBoolean | writeTagValue (IlAny identifier, IlUInt tag, IlUInt count, IlAny value=0) |
Writes a tag in the stream. |
Bitmap streamer class.
Library: display
This streamer provides methods to deal with a stream containing a TIFF image. This streamer can read and write.
IlBoolean IlvTIFFStreamer::canRead | ( | ) | const [virtual] |
Indicates that the instance can read from a stream.
IlTrue
. Reimplemented from IlvBitmapStreamer.
IlBoolean IlvTIFFStreamer::canWrite | ( | ) | const [virtual] |
Indicates that the instance can write to a stream.
IlTrue
. Reimplemented from IlvBitmapStreamer.
Indicates whether the instance can handle the stream.
data | The stream signature. | |
size | The size of the stream signature. |
IlTrue
if the instance recognizes the signature. Implements IlvBitmapStreamer.
Compression IlvTIFFStreamer::getCompression | ( | ) | const |
Returns the compression mode.
IlUInt IlvTIFFStreamer::getRowsPerStrip | ( | ) | const |
Returns The number of rows per strip used when saving.
IlBoolean IlvTIFFStreamer::getTagValue | ( | IlAny | identifier, | |
IlUInt | tag, | |||
IlUInt & | count, | |||
IlAny | value = 0 | |||
) |
Returns the value of a given tag in a stream.
This method must be called between openStream
and closeStream
. The tag value must be known by the underlying TIFF library. Values must be copied.
identifier | The stream identifier. | |
tag | The tag | |
count | The number of elements. | |
value | The tag value. |
IlTrue
if the tag is known and its value has been found. IlUInt IlvTIFFStreamer::getTileHeight | ( | ) | const |
Returns The tile height used when saving.
IlUInt IlvTIFFStreamer::getTileWidth | ( | ) | const |
Returns the tile width used when saving.
Mode IlvTIFFStreamer::getWriteMode | ( | ) | const |
Returns the write mode.
virtual IlAny IlvTIFFStreamer::openStream | ( | ILVSTDPREF istream & | stream | ) | [virtual] |
Opens the stream.
stream | The stream to open. |
IlvBitmapData* IlvTIFFStreamer::read | ( | ILVSTDPREF istream & | stream | ) |
Reads a TIFF image from a stream.
stream | The stream to read from. |
IlvBitmapData
. IlvBitmapInformation* IlvTIFFStreamer::readInfo | ( | ILVSTDPREF istream & | stream | ) |
Reads image information from a stream.
stream | The stream to read from. |
IlvBitmapInformation
. IlvBitmapData* IlvTIFFStreamer::readTile | ( | ILVSTDPREF istream & | stream, | |
IlUShort | x, | |||
IlUShort | y | |||
) |
Reads a TIFF tile from a stream.
stream | The stream to read from. | |
x | The horizontal position of the tile. | |
y | The vertical position of the tile. |
IlvBitmapData
. void IlvTIFFStreamer::setCompression | ( | Compression | compression | ) |
Sets the compression mode used when writing.
The compression can be one of IlvTIFFstreamer::None
, IlvTIFFstreamer::Packbits
, or IlvTIFFstreamer::Zip
.
compression | The new compression mode. |
void IlvTIFFStreamer::setRowsPerStrip | ( | IlUInt | rowsperstrip | ) |
Sets the number of rows per strip used when saving.
rowsperstrip | The new rows per strip value. |
void IlvTIFFStreamer::setTileHeight | ( | IlUInt | tileheight | ) |
Sets the tile height used when saving.
tileheight | The new tile height. |
void IlvTIFFStreamer::setTileWidth | ( | IlUInt | tilewidth | ) |
Sets the tile width used when saving.
tilewidth | The new tile width. |
void IlvTIFFStreamer::setWriteMode | ( | Mode | mode | ) |
Sets the write mode.
The mode can be either IlvTIFFStreamer::Tile
or IlvTIFFStreamer::Strip
.
mode | The new write mode. |
IlBoolean IlvTIFFStreamer::write | ( | IlvBitmapData * | data, | |
ILVSTDPREF ostream & | stream | |||
) |
Writes an IlvBitmapData
to a TIFF stream.
data | The bitmap data to write. | |
stream | The stream to write to. |
IlTrue
if the bitmap data has been written. virtual void IlvTIFFStreamer::writeCustomData | ( | IlAny | identifier | ) | [virtual] |
Allows custom data to be written in the stream.
This method will be called by the write
method.
identifier | The stream identifier. |
IlBoolean IlvTIFFStreamer::writeTagValue | ( | IlAny | identifier, | |
IlUInt | tag, | |||
IlUInt | count, | |||
IlAny | value = 0 | |||
) |
Writes a tag in the stream.
identifier | The stream identifier. | |
tag | The tag | |
count | the number of elements. | |
value | The tag value. |
IlTrue
if the tag is known and its value has been written. © Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.