v# ποΈ Quick Paint (QuickBasic 4.5)
A retro paint program written in QuickBasic 4.5, designed for DOS and compatible VGA environments.
Developed by Jonathan Gallegos (JG) β a modern revival of classic DOS creativity tools.
Quick Paint is a complete paint environment for DOS, using SCREEN 12 (640Γ480, 16 colors).
It features a windowed interface, menus, dialogs, and a full suite of drawing tools inspired by MS Paint β but entirely coded in QuickBasic 4.5.
- Quick Paint for FreeDOS β get the latest ZIP from the Releases page.
- Checksums (SHA-256) will be attached as assets per release.
QUICKPT4.BAS β Main program: UI core, menu system, tool dispatcher, and initialization.
TOOLS.BAS β Drawing tools (Pencil, Brush, AirBrush, Line, Rectangle, Ellipse, RoundedBox, Polygon, Curve, Fill, Dropper, Eraser, Text).
GUI.BAS β Windowing, menu bar, buttons, dialogs, mouse helpers, and QFont text routines.
MENUITEM.BAS β Menu actions (New, Open, Save, Undo, Invert Colors, Clear Image, Exit).
OD1B.BAS β File Open Dialog (INT 21h FindFirst/FindNext) with file/folder icons.
Each tool is mouse-driven, with left/right buttons for Foreground/Background colors:
- Pencil
- Brush
- AirBrush
- Line
- Rectangle
- Ellipse
- RoundedBox
- Polygon
- Curve (Bezier routine)
- Fill
- Dropper
- Eraser
- Text
- Custom windowed GUI with title bar, menu bar, and status bar.
- Menus: File, Edit, View, Image, Colors, Help.
- File Dialog: DOS-style Open/Save using directory traversal and icons.
- Undo: Single-level undo with temp files (
.RED,.GRN,.BLU,.INT).
- Open / Save / Save As: reads and writes
.BMPwith VGA-compatible palettes. - Clear Image, Invert Colors, and Undo supported.
- Uses external
.FNTraster font files (lucidabl.fnt,verdana.fnt, etc.). - Font rendering via QFont (by Josh Heaton).
- Supports basic inline formatting toggles.
The official release archive QPAINT040.ZIP includes:
QPAINT040.ZIP
ββ QPAINT.COM / QPAINT.EXE
ββ README.TXT
ββ LICENSE.TXT
ββ FILE_ID.DIZ
ββ CREDITS.TXT
ββ DOCS/
β ββ README.md
ββ FONTS/ β includes default QFont `.FNT` files
ββ BMP/ β demo BMP files for testing Open/Save
- MS-DOS or FreeDOS (works perfectly under DOSBox)
- QuickBasic 4.5
- Mouse driver (INT 33h)
QB.BIandQB.QLBfrom your QB installation
- Place all
.BASfiles in a single folder. The official package already includes theFONTS/folder with.FNTfonts andBMP/demos. - Adjust the font path in
TOOLS.BASβSUB Tool.Text:ActualFont$ = "C:\YOUR\FONTS\PATH\lucidabl.fnt" ' or: ActualFont$ = TheFontPath$ + "lucidabl.fnt"
- Launch QuickBasic:
QB.EXE /L QB.QLB QUICKPT4.BAS - Add the other
.BASfiles:TOOLS.BAS,GUI.BAS,MENUITEM.BAS,OD1B.BAS. - Run with Shift+F5 or build with Alt+F, M.
BC.EXE QUICKPT4.BAS+TOOLS.BAS+GUI.BAS+MENUITEM.BAS+OD1B.BAS /O;
LINK.EXE QUICKPT4+TOOLS+GUI+MENUITEM+OD1B,,NUL, QB.LIB;
| Action | Description |
|---|---|
| Left Click | Draw with Foreground color |
| Right Click | Draw with Background color |
| Toolbox (left) | Select drawing tool |
| Menu bar | Access File / Edit / Image / Color actions |
| Text Tool | Drag a box, type, and press Enter |
| Undo | Single-level (temporary buffer) |
| Invert Colors | Swap palette entries for artistic effects |
Canvas is clipped to defined boundaries (PAX1%, PAY1%, PAX2%, PAY2%) to avoid overwriting UI.
- Saves standard BMP 8-bit headers with a 16-color VGA palette.
- Undo uses intermediate memory files (
memscr.*). - Open Dialog (OD1B) uses DOS interrupts for directory reading.
- VGA SCREEN 12 only.
- Single Undo level.
- Zoom and advanced Image Settings not yet implemented.
- Some paths are hardcoded (font directory, temp files).
- Text tool requires manual font configuration.
| Component | Author |
|---|---|
| QFont Engine | Josh Heaton |
| SaveBMP Routine | Aaron Zabudsky |
| Bezier Curve | Jim Emptage |
| Project Lead | Jonathan Gallegos (JG) |
| Contact | linuxloader815@gmail.com |
Original source headers: βBy JG β Quick Paint Project.β
- Multi-level Undo / Redo
- Zoom and Pan
- PNG Export
- Palette Editor
- Brush Patterns / Dithering
- Clipboard Copy & Paste
- Modern QB64 port
Released under the MIT License.
See LICENSE for details.
MIT License Β© 2025 Jonathan Gallegos
Permission is hereby granted, free of charge, to any person obtaining a copy of this software...
- New File β Draw shapes and text
- Save As β
test.bmp - Undo, then Invert Colors
- Save again
- Reopen to verify persistence
π¨ Enjoy painting on FreeDOS!
If youβd like to see Quick Paint included officially, consider opening a FreeDOS Program Proposal referencing this repository.