Page 1 of 1

gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Fri Oct 26, 2007 11:25 pm
by Serg
Hi,
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;
}
Now we can see not well result

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...

Re: gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Sat Oct 27, 2007 6:08 am
by helmut
Serg wrote:.. When i add gflBrigthnes(), i have flBrigthnes: undeclared identifier
Perhaps gflBrightness() - just a guess?

Re: gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Sat Oct 27, 2007 6:52 am
by Serg
Perhaps gflBrightness() - just a guess?
oh, it's my fault. Now it's work. Thanks.

And how about the first question?

Re: gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Sat Oct 27, 2007 11:18 am
by xnview
Serg wrote: And how about the first question?
I've sent you a fixed library

Re: gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Sat Oct 27, 2007 2:30 pm
by Serg
I've sent you a fixed library
Ok. Thanks. I'm waiting...
Has not come yet.

Re: gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Sun Oct 28, 2007 7:16 am
by Serg
I've sent you a fixed library
I didn't get your fixed library yet. May be place on any hosting, and then give me the reference?

Re: gflExportIntoClipboard(...), gflImportFromClipboard(...)

Posted: Mon Oct 29, 2007 7:34 am
by xnview
Serg wrote:
I've sent you a fixed library
I didn't get your fixed library yet. May be place on any hosting, and then give me the reference?
I'll send it again

Posted: Mon Oct 29, 2007 7:35 am
by Serg
to Pierre

What's wrong? Why you don't send me a fixed lib? or don't gime me a reference?

Posted: Mon Oct 29, 2007 7:45 am
by xnview
Serg wrote:to Pierre

What's wrong? Why you don't send me a fixed lib? or don't gime me a reference?
I've sent to your mail the fixed lib

Posted: Tue Oct 30, 2007 10:51 pm
by Serg
to Pierre
thank you very much for your fixed lib. It's work.