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

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: helmut, XnTriq, xnview

Post Reply
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

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

Post 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...
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

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

Post by helmut »

Serg wrote:.. When i add gflBrigthnes(), i have flBrigthnes: undeclared identifier
Perhaps gflBrightness() - just a guess?
Last edited by helmut on Sat Oct 27, 2007 11:35 am, edited 1 time in total.
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

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

Post by Serg »

Perhaps gflBrightness() - just a guess?
oh, it's my fault. Now it's work. Thanks.

And how about the first question?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

Serg wrote: And how about the first question?
I've sent you a fixed library
Pierre.
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

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

Post by Serg »

I've sent you a fixed library
Ok. Thanks. I'm waiting...
Has not come yet.
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

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

Post 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?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post 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
Pierre.
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

Post by Serg »

to Pierre

What's wrong? Why you don't send me a fixed lib? or don't gime me a reference?
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post 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
Pierre.
Serg
Posts: 13
Joined: Fri Oct 26, 2007 9:52 pm
Contact:

Post by Serg »

to Pierre
thank you very much for your fixed lib. It's work.
Post Reply