Recent

Author Topic: My second "paint" program ** update **  (Read 466 times)

TBMan

  • Full Member
  • ***
  • Posts: 200
My second "paint" program ** update **
« on: June 22, 2025, 05:22:18 pm »
My second attempt this year in coding a "Paint" program. This one features a pop up taskbar menu, pop up drawing tool selection, a detail area editor, help screen, info screen,  a pop up grid overlay and an "undo" feature (1 level).

As of now it supports 2 video modes, 800 x 640 and 640 x 480. Grid sizes are 8x8, 16x16 and 32x32 with any combination of those sizes possible.  The app saves and loads image files that are created using a run-length encoding algorithm that I coded 30+ years ago. 

The reason for the grid overlay is pretty lame, lol. When I was a kid I remember getting a magazine that gave you pictures with a grid overlay and a blank page with just the grid. The idea was to draw a copy of the picture on your own using the grid. Somehow I'm going to use this when doing my "art work", (which is terrible).

Right clicking with the mouse on the screen brings up the grid editor. I'm also going to set up more hot keys to bring up the load palette, load file dialog and save file options.
** edit **
I revised the look of the dialogs to lose that Windows 95 appearance. (I think, anyway, lol)


https://www.youtube.com/watch?v=ehxcqOVV7Cc
« Last Edit: June 24, 2025, 04:05:26 pm by TBMan »

Handoko

  • Hero Member
  • *****
  • Posts: 5459
  • My goal: build my own game engine using Lazarus
Re: My second "paint" program
« Reply #1 on: June 23, 2025, 03:48:56 am »
Interesting. With some polishing it could be a nice program.
I believe you use unit Graphs. Is there any reason you don't use other more modern graphics engine?

TBMan

  • Full Member
  • ***
  • Posts: 200
Re: My second "paint" program
« Reply #2 on: June 23, 2025, 04:13:41 am »
Interesting. With some polishing it could be a nice program.
I believe you use unit Graphs. Is there any reason you don't use other more modern graphics engine?

Thanks.

I'm just really comfortable using the PTCGraph unit. I might take a stab at using the LCL library one of these days.

My weaknesses are

1. Creating original artwork

2. Algorithms  - path finding, decision trees, etc.

A more advanced graphic library won't really help me that much in these areas.

Handoko

  • Hero Member
  • *****
  • Posts: 5459
  • My goal: build my own game engine using Lazarus
Re: My second "paint" program
« Reply #3 on: June 23, 2025, 04:41:15 pm »
The user interface may look old but what you did is impressive. The pixel editor feature, it requires you to have good math skill especially when doing the calculation between mouse/screen and memory X, Y positions. RLE and color pallete, you must have good knowledge in Pascal and graphics programming to be able to do it. Not only skills, one has to put time and efforts to be able achive it. Respect.

TBMan

  • Full Member
  • ***
  • Posts: 200
Re: My second "paint" program
« Reply #4 on: June 23, 2025, 05:05:26 pm »
The user interface may look old but what you did is impressive. The pixel editor feature, it requires you to have good math skill especially when doing the calculation between mouse/screen and memory X, Y positions. RLE and color pallete, you must have good knowledge in Pascal and graphics programming to be able to do it. Not only skills, one has to put time and efforts to be able achive it. Respect.

Thank you, I appreciate that.

I do realize though that the real programmers are the people who develop the operating systems, languages and compilers so people like me can enjoy coding. So many layers of skill there.
« Last Edit: June 23, 2025, 05:42:57 pm by TBMan »

 

TinyPortal © 2005-2018