|
#include "standard.h"
#include "PortablePicture.h"
#include "MemoryMap.h"
#include <windows.h>
#include <atlbase.h>
Include dependency graph for PortablePicture.cpp:
Go to the source code of this file.
Compounds | |
class | BitmapDeviceContext |
Allows us to draw to a bitmap instead of drawing to the screen. More... | |
Defines | |
#define | HIMETRIC_PER_INCH 2540 |
Functions | |
char * | fileErrorString (FILE *fp, const char *filename, const char *function_name) |
Returns an error string, depending on the error state of the "fp" param. | |
std::string | getNextLine (FILE *fp, const char *filename) |
Keeps grabbing lines from the file until we find one that has actual data in it. More... | |
void | removeFirstToken (std::string &str) |
PictureHeaderInfo | readHeader (FILE *fp, const char *filename) |
Reads out the header for a (.pgm, .ppm, or .pbm) file. | |
template<typename T> void | readBinaryNumbers (FILE *fp, const char *filename, PictureHeaderInfo info, std::vector< RgbColor< T > > &picture) |
void | readBinaryBytes (FILE *fp, const char *filename, PictureHeaderInfo info, std::vector< RgbByte > &picture) |
void | readBinaryFloats (FILE *fp, const char *filename, PictureHeaderInfo info, std::vector< RgbFloat > &picture) |
void | readAscii (FILE *fp, const char *filename, PictureHeaderInfo info, std::vector< RgbByte > &picture) |
CComPtr< IPicture > | loadIPicture (const char *filename) |
void | loadBits (const char *filename, PortablePixMap &p) |
Author: Matt Loper
Definition in file PortablePicture.cpp.
|
Keeps grabbing lines from the file until we find one that has actual data in it. This means removing comments and blank space. Definition at line 38 of file PortablePicture.cpp. Referenced by readHeader(). |