📄 gifread.cpp
字号:
////////////////////////////////////////////////////////////
// GIFFile - A C++ class to allow reading and writing of GIF Images
//
// Note : GIF support has been removed as of 9/24/97. I am
// pursuing a license from Unisys to enable me to include GIF support
// in this package. Until then, no GIF. Sorry. -cdl
//
////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "giffile.h"
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif
#define new DEBUG_NEW
GIFFile::GIFFile()
{
m_GIFErrorText="No GIF support"; // yet
}
GIFFile::~GIFFile()
{
// nothing
}
////////////////////////////////////////////////////////////////////////////////
//
// char * GIFFile::GIFReadInputFile(CString path,
// UINT *width,
// UINT *height)
//
// Give a path.
// It will read the .GIF at that path, allocate a buffer and give you
// an RGB buffer back. width and height are modified to reflect the image dim's.
//
// m_GIFErrorText is modifed to reflect error status
//
//
BYTE * GIFFile::GIFReadFileToRGB(CString path,
UINT *width,
UINT *height)
{
return NULL;
}
//
// gets image dimensions
// returns -1,-1 on bad read
//
void GIFFile::GIFGetDimensions(CString path, UINT *width, UINT *height)
{
*width=(UINT)-1;*height=(UINT)-1;
return;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -