8dcc / hl-png

Highlight PNG image

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hl-png

Highlight PNG image.

Description

This simple program allows you to open a PNG image and draw/highlight any region.

Arguments and keybinds

The program expects an optional list of arguments, followed by a filename as its last argument. These are the supported arguments.

ArgumentDescription
-fLaunch the program in full-screen mode
-FLaunch the program in fixed mode (i.e. the window is not resizable). Might be useful for tiling window managers
-hShow help and exit

From the program window, the following keybinds can be used.

KeyDescription
LMouseDraw in the window
CtrlIf held, join lines together
cClear the drawing
gToggle the background grid
f, F11Toggle full-screen

Building

You will need to install the SDL2 and libpng libraries.

# On debian-based distros
apt install libsdl2-dev libpng-dev

# On arch-based distros
pacman -S sdl2 libpng

Then, you can build the project.

git clone https://github.com/8dcc/hl-png
cd hl-png
make

About

Highlight PNG image

License:GNU General Public License v3.0


Languages

Language:C 97.4%Language:Makefile 2.6%