Recent

Author Topic: open image with external editor  (Read 2128 times)

BubikolRamios

  • Full Member
  • ***
  • Posts: 194
open image with external editor
« 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 ?
lazarus-2.0.2-fpc-3.0.4-win32

Bart

  • Hero Member
  • *****
  • Posts: 3940
    • Bart en Mariska's Webstek
Re: open image with external editor
« Reply #1 on: March 08, 2013, 11:50:47 am »
Take a look at TProcess / TProcessUTF8.

Bart

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: open image with external editor
« Reply #2 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');
Lazarus 1.7 (SVN) FPC 3.0.0

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: open image with external editor
« Reply #3 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
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018