#include #include #include Image::Image() { } Image::~Image() { } bool Image::open(String strPathFileName,GUIWindow &window) { CursorControl cursorControl; PureDevice pureDevice; bool returnCode=false; if(strPathFileName.isNull())return false; strPathFileName.lower(); pureDevice=window; cursorControl.waitCursor(true); if(0!=strPathFileName.strstr(".gif"))returnCode=handleOpenGIF(strPathFileName,pureDevice); else if(0!=strPathFileName.strstr(".jpg"))returnCode=handleOpenJPG(strPathFileName,pureDevice); else if(0!=strPathFileName.strstr(".bmp"))returnCode=handleOpenBMP(strPathFileName,pureDevice); cursorControl.waitCursor(false); return returnCode; } bool Image::newImage(LONG width,LONG height,GUIWindow &window) { PureDevice pureDevice; pureDevice=window; create(width,height,pureDevice); if(!isOkay())return false; for(int row=0;row