Example #1
0
int main(int argc, char** argv) {
    int y,x;
    char tmp;
    FILE *filePtr;
    imm=loadBmp("testR1.bmp");
    saveBmp(imm,"testSave.bmp");
    printf("START\n");
    
    return (EXIT_SUCCESS);
}
Example #2
0
BOOL
savePNG( const char *fileName, HBITMAP hBitmap )
{
    const char  intermediateFilename[MAX_PATH] = "tempTmp.png";
    BOOL        ret = FALSE;

    ret = saveBmp( fileName, hBitmap );
    if ( ret ) {
        int r = bmp2png( fileName, intermediateFilename );
        ret = !r ? TRUE : FALSE;
    }

    unlink( fileName );
    rename( intermediateFilename, fileName );

    return ( ret );
}
void CRawImage::saveBmp()
{
	char name[100];
	sprintf(name,"%04i.bmp",numSaved++);
	saveBmp(name);
}