1.
Code: Select all
#include "stdafx.h"
#include "gflw.h"
#pragma comment(lib, "libgfl.lib")
#pragma comment(lib, "libgfle.lib")
int main(int argc, char* argv[])
{
gflLibraryInit();
GFL_LOAD_PARAMS load_option;
GFL_BITMAP *pic;
gflGetDefaultLoadParams( &load_option );
load_option.FormatIndex = gflGetFormatIndexByName( "jpeg" );
GFL_ERROR error = gflLoadBitmap( "E:\\tempForInet\\befor.jpg", &pic, &load_option, 0);
gflExportIntoClipboard( pic );
gflImportFromClipboard( &pic );
GFL_SAVE_PARAMS save_params;
gflGetDefaultSaveParams( &save_params );
save_params.FormatIndex = gflGetFormatIndexByName( "jpeg" );
gflSaveBitmap( "E:\\tempForInet\\after.jpg", pic, &save_params );
gflLibraryExit();
return 1;
}
befor.jpg
after.jpg
Is it possible to correct?
2.
When i add gflBrigthnes(), i have flBrigthnes: undeclared identifier
Why? I included libgfl.h and libgfle.h but i still get error "undeclared identifier"
Whats wrong?
Thanks...