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

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

#include "../include/GifFile.h"

Public Member Functions

 GifFile ()
 
 ~GifFile ()
 
int init ()
 
 GifFile (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

◆ GifFile() [1/2]

GifFile::GifFile ( )

Constructor. Initializes class values

References init().

◆ ~GifFile()

GifFile::~GifFile ( )

Destuctor.

References close().

◆ GifFile() [2/2]

GifFile::GifFile ( 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 GifFile::close ( )

Closes the GIF file

References WXP::File::close().

Referenced by WXP::ImageFile::close(), and ~GifFile().

◆ init()

int GifFile::init ( )

Initializes the class values

Referenced by GifFile(), and GifFile().

◆ isOpen()

bool GifFile::isOpen ( )

Returns if file is open or not

Returns
True if opened

Referenced by WXP::ImageFile::open().

◆ open()

int GifFile::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 GifFile(), WXP::ImageFile::open(), and WXP::SatFile::open().

◆ read()

int GifFile::read ( Image image)

◆ setInterlace()

int GifFile::setInterlace ( int  val)

Sets whether the output GIF file is interlaced or not

Parameters
val1=interlaced, 0=not

◆ write() [1/2]

int GifFile::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 GifFile::write ( Image image)

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