#imaging #pascal #vampyre #image #library #image-processing #image-loading

Marek Mauder 5a11215fe8 #38: Upped the sizes of various IO params před 9 měsíci
.github db07d8fe4c GitHub CI Update (#40) před 1 rokem
Demos b9c77158af FMX demo update před 9 měsíci
Doc 3e9c6be1b7 Added Readme file and updated logos. před 6 roky
Extensions 5a11215fe8 #38: Upped the sizes of various IO params před 9 měsíci
Extras c095448fd7 Removed outdated Imaging DLL project and headers před 9 měsíci
Packages 8b252eca3b Updated Lazarus OPM package versions před 4 roky
Scripts cf764eaf6a Updated and fixed Delphi package před 4 roky
Source 5a11215fe8 #38: Upped the sizes of various IO params před 9 měsíci
.gitignore b9c77158af FMX demo update před 9 měsíci
License.txt 9cd0c4b029 Create License.txt před 4 roky
Readme.md c095448fd7 Removed outdated Imaging DLL project and headers před 9 měsíci

Readme.md

Vampyre Imaging Library

Imaging Logo

Object Pascal image loading, saving, and manipulation library.

https://github.com/galfar/imaginglib

Homepage: https://imaginglib.sourceforge.io Issues: https://github.com/galfar/imaginglib/issues Discuss: https://github.com/galfar/imaginglib/discussions

Overview

In the beginning, the goal of the library was to provide cross-platform native Object Pascal support for loading images in various file formats, do some basic operations like resizing and pixel format conversions, and save back - and all this without needing external dependencies both build time and run time.

Later, more features were added on top for convenience but the following still applies:

  • core library depends only on Delphi/FPC RTL (common subset nowadays)
  • keep the image in the original pixel format (for all operations or as long as possible)
  • if a feature needs some external library or platform specific stuff it's an optional extension
  • drawing and painting is not a main use of the library -> there are better and faster options for this

Status

Imaging started almost 20 years ago and since 2009 it is more or less in maintenance mode without big new features being added. Anyway, it is still alive, updated to work with current compilers and platforms, and here and there a new feature gets in. Documentation can be pretty outdated though.

Still compiles with Delphi 7, and also with the latest Delphi and FPC.

Features

Loading and saving of these image file formats:

  • PNG/APNG, MNG, JNG
  • JPEG
  • GIF
  • DDS, QOI, HDR
  • TGA, BMP
  • PCX, XPM, PNM/PPM, PSD
  • TIFF, JPEG2000 (not native Pascal, depends on platform)
  • and more

Supported platforms are:

  • Delphi: Windows, macOS
  • FPC: Windows, Linux x86/ARM, Android, macOS

Many internal image data formats and conversions:

  • 8, 16, 24, 32, 48 and 64 bit RGB and ARGB formats
  • indexed formats
  • grayscale formats
  • floating point formats (IEEE754 and half precision)
  • compressed formats like DXT1/3/5, 3Dc, and BTC

Basic image manipulation functions working for all supported data formats and conversions between them (bilinear/bicubic resizing, rotation by any angle, color reduction, mipmap generation, ...).

Image drawing with blending, linear and nonlinear filters, point transforms, binary morphology, drawing lines, ellipses, rectangles, etc.

Low level library interface (accessible by other programming languages) and high level OOP one.

Extensions for creating OpenGL, Direct3D, and SDL textures/surfaces.

VCL, LCL, and FMX graphic classes and functions.

Support multi-images, direct access to image data, user-specified file formats, overriding default read and write functions, and more.

License & Credits

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0.

Developed by Marek Mauder