WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
WXP::LZWComp Class Reference

This class reads and writes GIF files. More...

#include "../include/LZWComp.h"

Public Member Functions

 LZWComp ()
 
 ~LZWComp ()
 
int init ()
 
 LZWComp (const char *filename, int access)
 
int open (const char *filename, int access)
 
bool isOpen ()
 
int close ()
 
int setInterlace (int val)
 
int read (Image &image)
 
int write (Image &image)
 
int write (const char *file)
 

Detailed Description

This class reads and writes GIF files.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ LZWComp() [1/2]

LZWComp::LZWComp ( )

Constructor. Initializes class values

References init().

◆ ~LZWComp()

LZWComp::~LZWComp ( )

Destuctor.

References close().

◆ LZWComp() [2/2]

LZWComp::LZWComp ( const char *  filename,
int  raccess 
)

Constructor. Opens the GIF file

Parameters
filenameThe file to open
raccessThe access (FileAttr::READ, FileAttr::WRITE)

References init(), and open().

Member Function Documentation

◆ close()

int LZWComp::close ( )

Closes the GIF file

References WXP::File::close().

Referenced by ~LZWComp().

◆ init()

int LZWComp::init ( )

Initializes the class values

Referenced by LZWComp().

◆ isOpen()

bool LZWComp::isOpen ( )

Returns if file is open or not

Returns
True if opened

◆ open()

int LZWComp::open ( const char *  filename,
int  raccess 
)

Opens the GIF file

Parameters
filenameThe file to open
raccessThe access (FileAttr::READ, FileAttr::WRITE)

References WXP::File::isOpen(), WXP::File::open(), WXP::FileAttr::READ, and WXP::FileAttr::WRITE.

Referenced by LZWComp().

◆ read()

int LZWComp::read ( Image image)

◆ setInterlace()

int LZWComp::setInterlace ( int  val)

Sets whether the output GIF file is interlaced or not

Parameters
val1=interlaced, 0=not

◆ write() [1/2]

int LZWComp::write ( const char *  filename)

Write GIF data from opened file to new file

Parameters
filenameOutput filename

References WXP::File::close(), WXP::StrLib::equal(), WXP::File::isOpen(), WXP::File::open(), WXP::Wxp::outMessage(), WXP::Wxp::outWarning(), WXP::File::read(), and WXP::File::write().

◆ write() [2/2]

int LZWComp::write ( Image image)

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