OFFIS DCMTK Version 3.6.0
Public Member Functions | Static Public Member Functions | Private Attributes
DiPNGPlugin Class Reference

Implementation of a PNG plugin for the dcmimgle/dcmimage library. More...

Inheritance diagram for DiPNGPlugin:
Inheritance graph
[legend]
Collaboration diagram for DiPNGPlugin:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DiPNGPlugin ()
 constructor
virtual ~DiPNGPlugin ()
 destructor
virtual int write (DiImage *image, FILE *stream, const unsigned long frame=0) const
 write given image to a file stream (PNG format)
void setInterlaceType (DiPNGInterlace inter)
 set interlace type for PNG creation
void setMetainfoType (DiPNGMetainfo minfo)
 set metainfo type for PNG creation

Static Public Member Functions

static OFString getLibraryVersionString ()
 get version information of the PNG library.

Private Attributes

DiPNGInterlace interlaceType
 PNG interlace type.
DiPNGMetainfo metainfoType
 PNG metainfo type.

Detailed Description

Implementation of a PNG plugin for the dcmimgle/dcmimage library.

Definition at line 85 of file dipipng.h.


Member Function Documentation

static OFString DiPNGPlugin::getLibraryVersionString ( ) [static]

get version information of the PNG library.

Typical output format: "LIBPNG, Version 3.5.7"

Returns:
name and version number of the PNG library
void DiPNGPlugin::setInterlaceType ( DiPNGInterlace  inter)

set interlace type for PNG creation

Parameters:
interinterlace type
void DiPNGPlugin::setMetainfoType ( DiPNGMetainfo  minfo)

set metainfo type for PNG creation

Parameters:
minfometainfo type
virtual int DiPNGPlugin::write ( DiImage image,
FILE *  stream,
const unsigned long  frame = 0 
) const [virtual]

write given image to a file stream (PNG format)

Parameters:
imagepointer to DICOM image object to be written
streamstream to which the image is written (open in binary mode!)
frameindex of frame used for output (default: first frame = 0)
Returns:
true if successful, false otherwise

Implements DiPluginFormat.


The documentation for this class was generated from the following file:


Generated on Sat Jun 11 2011 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.7.4