where 'imdisplay' process the arguments?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
efa
Posts: 8
Joined: 2012-04-27T06:18:57-07:00
Authentication code: 13

where 'imdisplay' process the arguments?

Post by efa »

hi,
as 'imdisplay' arguments are not documented, I'm trying to understand them by looking at the sources.
Strangely the unix sources doen't contain the IMdisplay.exe related files, and so isn't possible to crosscompile this file with:
./configure --target=i686-pc-mingw32 & make
So I downloaded the "Windows sources" zip file:
http://www.imagemagick.org/download/win ... indows.zip
and found them in '/win2k/IMDisplay' path.

Looking in 'IMDisplay.cpp' main file I found:

Code: Select all

/////////////////////////////////////////////////////////////////////////////
// CIMDisplayApp initialization
BOOL CIMDisplayApp::InitInstance()
{
....
	// Parse command line for standard shell commands, DDE, file open
	CCommandLineInfo cmdInfo;
	ParseCommandLine(cmdInfo);
...
	// Dispatch commands specified on the command line
	if (!ProcessShellCommand(cmdInfo))
		return FALSE;
I looked for symbols: 'CCommandLineInfo', 'ParseCommandLine' and 'ProcessShellCommand' in all the IM sources, but was not found.
Maybe are defined in Windows headers? I'm not an expert on Win related things, sorry.

So, where is the command line arguments processing in 'imdisplay' sources?
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: where 'imdisplay' process the arguments?

Post by anthony »

Perhaps you like to go further and actually program and improve it. I believe their is no programmer looking after the command to a great extent.

Converting it in to a 'windows' coder would be even better :-)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
efa
Posts: 8
Joined: 2012-04-27T06:18:57-07:00
Authentication code: 13

Re: where 'imdisplay' process the arguments?

Post by efa »

My user attept are at:
viewtopic.php?f=1&t=20867&p=84347#p84347
I think I'm a good driver and CLI coder, but I have little experience in GUI as GTK programmer.
The major problem I have completely 0 experience in Win32 programming.

Who wrote 'imdisplay' ? I haven't found a copyright or so.
I also tried to wrote to Michael S. Noble and Rafael Laboissiere contact found @ http://dev.man-online.org/man1/imdisplay/
but the debian contact was bounced. Michael never answers. He is a IM developer now?
Post Reply