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_SAVE_PARAMS save_params;
GFL_BITMAP *pic;
gflGetDefaultLoadParams( &load_option );
load_option.FormatIndex = gflGetFormatIndexByName( "jpeg" );
gflLoadBitmap( "E:\\001.jpg", &pic, &load_option, 0);
gflBrigthness( pic, 0, -50 );
gflGetDefaultSaveParams( &save_params );
save_params.FormatIndex = gflGetFormatIndexByName( "jpeg" );
gflSaveBitmap( "E:\\002.jpg", pic, &save_params );
gflLibraryExit();
return 1;
}
I can't, get error: 'gflBrigthness' : undeclared identifier
but Why? I have included "gflw.h"