Navigation C API Pages Python bindings Applications


GFXprim is Open-source modular 2D bitmap graphics library with emphasis on speed and correctness.

The goal of the library is to provide simple but powerful API for applications that need to work with bitmap graphics. The library itself started as a simple replacement for SDL_gfx which was unusable at the time and soon it outgrew the initial purpose and became the main topic of development.

GFXprim is not tied to a specific graphic system (such as X11) but on the other hand provides means to interact with them.

GFXprim also includes a simple widget library that could be used to create user interfaces just in a couple lines of C code.

GFXprim can load and save images in variety of formats, operate on the data on a pixel level, run image filters, render basic shapes or text, open and manage X11 windows, draw on Linux framebuffer and more.

GFXprim also comes with Python bindings.

There are a few example applications included, the most advanced is a spiv image viewer which is already a full featured application.

See the about page for more detailed information.


The code is licensed under LGPL 2.1 or (at your opinion) any later.


Get rpm packages (for RedHat and SUSE) from buildservice.

Get deb packages (for Debian, Ubuntu and Raspbian) from buildservice.


Report bugs on the GFXprim mailing list. Eventually you can use GitHub issue tracker.


We do have a mailing list and although there is not much of discussion now, we are there and listening.