Lazarus

Programming => Graphics and Multimedia => Graphics => Topic started by: BubikolRamios on March 08, 2013, 08:00:21 am

Title: open image with external editor
Post by: BubikolRamios on March 08, 2013, 08:00:21 am
That option has IrfanView. In options you just ste path to exe, like path to paintshop.exe.

How does this works ?

Is this possible to do cross OS, for accepting such command & sending such command, in lazarus ?
Title: Re: open image with external editor
Post by: Bart on March 08, 2013, 11:50:47 am
Take a look at TProcess / TProcessUTF8.

Bart
Title: Re: open image with external editor
Post by: Ocye on March 08, 2013, 01:27:09 pm
OpenDocument() opens the image with your default image editor/viewer.

Code: [Select]
uses ..LCLInt;
OpenDocument('test.bmp');
Title: Re: open image with external editor
Post by: BigChimp on March 08, 2013, 01:32:55 pm
And it's all described in glorious detail on
http://wiki.lazarus.freepascal.org/Executing_External_Programs
TinyPortal © 2005-2018