LazPaint was started to demonstrate the capabilities of the graphic library BGRABitmap. It provides advanced drawing functions in Lazarus development environment. Both provided a source of inspiration for the other and finally LazPaint became real image editor. Thanks to the help of Lazarus community, the program has been compiled on Windows, Linux and macOS.
Files: read and write a variety of file formats, including layered bitmaps and 3D files.
Tools: many tools are available to draw on the layers.
Edit/Select: select parts of an image with antialiasing and modify the selection as a mask.
View: color window, layer stack window and toolbox window.
Command line: call LazPaint from a console.
Right mouse button can be used to:
Video tutorials are available on Youtube :
Binaries can be downloaded on GitHub for Windows, Linux and macOS.
The source code can be downloaded on GitHub:
You can download the source code and compile it for a specific platform. MacOS version is now fully functional.
Compilation of latest version
- Download Lazarus at https://sourceforge.net/projects/lazarus/files/
- Open Lazarus to check it works
- Download latest version of BGRABitmap at https://github.com/bgrabitmap/bgrabitmap/releases
- Open the package file BGRABitmapPack.lpk in Lazarus
- Download latest version of BGRAControls at https://github.com/bgrabitmap/bgracontrols/releases
- Open the package file bgracontrols.lpk in Lazarus
- Download LazPaint at https://github.com/bgrabitmap/lazpaint/releases
- Open the package file lazpaintcontrols.lpk in Lazarus
- Open the project file lazpaint.lpi or lazpaint.lpr in Lazarus (choose to Open project if prompted)
- Click the green triangle "Run" and check if the program is working
- Close LazPaint and close Lazarus and go in the release folder of the project
The essential files are: the executable file, the readme file, the models, i18n and scripts folders.
Additional files and instructions are in release folder for each platform:
- windows: run the batch file stage.bat to generate a lazpaint32 and lazpaint64 folders that contains everything (it adds particular support for WebP and RAW images by adding dcraw.exe and libwebp.dll).
- macOS: go in the folder with the terminal and call ./makedmg.sh to generate the bundle.
- debian: go in the folder with the terminal and call ./makedeb.sh to generate the DEB package and the TAR.GZ file.
Note: when debugging on Windows, you may want to have support for WebP and RAW images. You can do that by copying the dcraw.exe and libwebp.dll files next to the compiled files (for example debug\i386-win32 for 32-bit version).
LazPaint on Linux (and dark theme)
LazPaint on Windows
LazPaint on Puppy Linux
Many common actions can be done with the toolbar. Zoom can be changed with the magnifying glass (+ or -), or by clicking on the 1:1 button to show the image at its original size in pixels, or with the zoom fit button to set the zoom so that the whole image be within the window.
It is possible to undo/redo the 200 last operations. If you have a doubt on what you are drawing, undo back to the beginning, save a copy, and redo the modifications before going further.
An image can be resampled, flipped horizontally and vertically.
Smart zoom x3 : resize the image x3 and detects borders; this provides a useful zoom with ancient games sprites.
- Colorize : set the color of an image while preserving intensities
- Shift colors : cycle colors and change colorness (saturation)
- Intensity : make colors lighter or darker without making them white
- Lightness : make colors lighter or darker by making them whiter
- Normalize : use the whole range of each color channel and alpha channel
- Negative : invert colors (with gamma correction)
- Linear negative : invert colors (without gamma correction)
- Grayscale : converts colors to grayscale with gamma correction
Filters can be applied to the whole image or to the active selection.
- Radial blur : non directional blur
- Motion blur : directional blur
- Custom blur : blur according to a mask
- Sharpen : makes contours more accute, complementary to Smooth
- Smooth : softens whole image, complementary to Sharpen
- Median : computes the median of colors around each pixel, which softens corners
- Contour : draws contours on a white background (like a pencil drawing)
- Emboss : draws contours with shadow
- Sphere : spherical projection
- Cylinder : cylinder projection
- Clouds : add clouds of the current pen color