Command Line - A Simple Image Processor in PureBasic - Part 12

Опубликовано: 30 Март 2026
на канале: Pure Programming
1,122
29

Learn how to program in PureBasic. Follow the development step by step of a simple image processing application.

In this final episode, I use the same code to create a console-based version of the Simple Image Processor. I add a new target in the project options to build the SIP-console.exe. Then, I use compiler directives to separate the console-only code from the GUI-only code. I also add the code to parse the command line and act accordingly.

The main procedure of this episode is the ReadCommandLine(...) that parses the command line arguments, fills in a structure that contains the program options, and returns if the command line is valid or not.

Download the code from this episode at https://bit.ly/2yPtzzI

The PureBasic Cheat Sheet (v2)
https://pure-programming.com/download...

Pure Programming blog
https://pure-programming.com

Facebook
  / pureprogramming  

Follow me on Instagram at @pure.programming

Download PureBasic at http://www.purebasic.com/pp

Support the channel with some Merchandising
EU : shop.spreadshirt.net/pure-programming
US : shop.spreadshirt.com/pure-programming

Attributions:
Facebook and Instagram icons made by Freepik from https://www.flaticon.com
Car vector created by starline - https://www.freepik.com