Recent

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

BubikolRamios

  • Sr. Member
  • ****
  • Posts: 258
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 3.2-fpc-3.2.2-win32/win64

Bart

  • Hero Member
  • *****
  • Posts: 5275
    • 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