11 #ifndef ossimPngWriter_HEADER 12 #define ossimPngWriter_HEADER 63 virtual bool isOpen()
const;
73 const char* prefix=0)
const;
80 const char* prefix=0);
102 virtual void getPropertyNames(std::vector<ossimString>& propertyNames)
const;
176 static void pngWriteData(png_structp png_ptr, png_bytep data,
183 static void pngFlush(png_structp png_ptr);
ossim_uint16 theTransparentGreen
ossim_uint16 theBackgroundBlue
void writeTransparentColorChunk(png_structp pp, png_infop info)
Write transparent color chunk (tRNS) Location: Multiple:
void writePhysicalScale(png_structp pp, png_infop info)
Write physical scale (sCAL) Location: before first IDAT Multiple: no.
bool theTimeFlag
Time support, either on or off.
void writeLatinTextChunk(png_structp pp, png_infop info)
Write any text (tEXt, zTXt).
virtual ossimString getLongName() const
Represents serializable keyword/value map.
ossim_int32 theInterlaceSupport
Interlace support: PNG_INTERLACE_ADAM7 PNG_INTERLACE_NONE.
virtual ossimString getClassName() const
virtual void setProperty(ossimRefPtr< ossimProperty > property)
Will set the property whose name matches the argument "property->getName()".
void writeBackgroundColorChunk(png_structp pp, png_infop info)
Write background color chunk (bKGD) Location: After PLTE, before first IDAT.
ossim_int32 thePngFilter
PNG_NO_FILTERS 0x00 PNG_FILTER_NONE 0x08 PNG_FILTER_SUB 0x10 PNG_FILTER_UP 0x20 PNG_FILTER_AVG 0x40 P...
bool theBackgroundFlag
For background support.
virtual bool saveState(ossimKeywordlist &kwl, const char *prefix=0) const
saves the state of the object.
void setAlphaChannelFlag(bool flag)
Set the writer to add an alpha channel to the output png image.
virtual void getImageTypeList(std::vector< ossimString > &imageTypeList) const
void getImageTypeList(std::vector<ossimString>& imageTypeList)const
void writeImageOffset(png_structp pp, png_infop info)
Write image offset (oFFs) Location: before first IDAT Multiple: no.
virtual bool writeStream()
Method to write the image to a stream.
ossim_uint16 theTransparentGray
void writeFractalParameters(png_structp pp, png_infop info)
Write fractal parameters (fRAc) Location: anywhere Multiple: yes.
Pure virtual base class for image file writers.
unsigned short ossim_uint16
virtual ossimString getExtension() const
Returns a 3-letter extension from the image type descriptor (theOutputImageType) that can be used for...
bool setCompressionLevel(const ossimString &level)
Set the png compression level from a string.
ossim_uint16 theBackgroundGray
static void pngFlush(png_structp png_ptr)
Callback method for a flush.
std::ostream * theOutputStream
virtual void getPropertyNames(std::vector< ossimString > &propertyNames) const
Pushes this's names onto the list of property names.
void writeInternationalTextChunk(png_structp pp, png_infop info)
Write any text (iTXt).
void writeSuggestedPalette(png_structp pp, png_infop info)
Write suggested palette (sPLT) Location: before first IDAT Multiple: yes.
ossim_uint16 theBackgroundRed
ossimString getCompressionLevel() const
Get the png compression level as a string.
virtual bool isOpen() const
ossim_int32 theCompressionLevel
Compression level from zlib.h: Z_NO_COMPRESSION 0 Z_BEST_SPEED 1 Z_BEST_COMPRESSION 9 Z_DEFAULT_COMPR...
bool isLutEnabled() const
void writePixelCalibration(png_structp pp, png_infop info)
Write pixel calibration (pCAL) Location: after PLTE, before first IDAT Multiple: no.
bool theAlphaChannelFlag
For alpha channel support.
virtual bool writeFile()
Writes the file to disk or a stream.
bool getAlphaChannelFlag(void) const
Retrieve the writer's setting for whether or not to add an alpha channel to the output png image...
bool hasImageType(const ossimString &imageType) const
bool hasImageType(const ossimString& imageType) const
bool theGammaFlag
For gamma support.
void writeHistogram(png_structp pp, png_infop info)
Write histogram (hIST) Location: after PLTE, before first IDAT Multiple: no.
ossim_int32 getColorType(ossim_int32 bands) const
Get the png color type.
void writeGammaChunk(png_structp pp, png_infop info)
Write gamm chunk (gAMMA) Location: Before PLTE, before first IDAT.
bool theTransparentFlag
For transparent color support.
virtual ~ossimPngWriter()
virtual ossimString getShortName() const
void writeOptionalChunks(png_structp pp, png_infop info)
writes optionial chunks.
void writeTimeStampChunk(png_structp pp, png_infop info)
Write time stamp chunk (tIME).
virtual ossimRefPtr< ossimProperty > getProperty(const ossimString &name) const
class ossimNBandLutDataObject
ossim_uint16 theTransparentBlue
virtual bool loadState(const ossimKeywordlist &kwl, const char *prefix=0)
Method to the load (recreate) the state of an object from a keyword list.
ossim_uint16 theBackgroundGreen
void writeSignificantBits(png_structp pp, png_infop info)
Write significant bits (sBIT) Location: before PLTE and first IDAT Multiple: no.
ossim_uint16 theTransparentRed
void writePhysicalPixelDimensions(png_structp pp, png_infop info)
Write physical pixel dimensions (pHYs) Location: before first IDAT Multiple: no.
void setLut(const ossimNBandLutDataObject &lut)
ossim_int32 getBitDepth(ossimScalarType outputScalar) const
ossim_int32 theCompressionStratagy
Z_FILTERED 1 Z_HUFFMAN_ONLY 2 Z_RLE 3 Z_FIXED 4 Z_DEFAULT_STRATEGY 0.
virtual bool setOutputStream(std::ostream &stream)
Sets the output stream to write to.
bool doSwap(ossimScalarType outputScalar) const
std::basic_ostream< char > ostream
Base class for char output streams.
static void pngWriteData(png_structp png_ptr, png_bytep data, png_size_t length)
Callback method for writing to stream.