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

Marek Mauder 9521befe81 VCL/LCL support: added PNG saving fallback for TImagingGraphic 4 anos atrás
.github 0f1e5feb70 CI: Build Lazarus demos in release mode 4 anos atrás
Demos a3696dfbd6 chore: updated a few comments and Readme 4 anos atrás
Doc 3e9c6be1b7 Added Readme file and updated logos. 6 anos atrás
Extensions 885df9a506 FMS demo updates and fixes 4 anos atrás
Extras cd80f8e29f Lazarus packages updated 4 anos atrás
Packages e5667c2146 Do not use LibTiffDelphi units in VampyreImagingPackageExt.lpk -- they (#25) 4 anos atrás
Scripts cf764eaf6a Updated and fixed Delphi package 4 anos atrás
Source 43725d3d95 VCL/LCL support: added PNG saving fallback for TImagingGraphic 4 anos atrás
.gitignore cf764eaf6a Updated and fixed Delphi package 4 anos atrás
License.txt 9cd0c4b029 Create License.txt 4 anos atrás
Readme.md a3696dfbd6 chore: updated a few comments and Readme 4 anos atrás

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.

Features

Loading and saving of these image file formats:

  • PNG/APNG, MNG, JNG
  • JPEG
  • GIF
  • DDS, HDR
  • TGA, BMP
  • PCX, XPM, PNM/PPM
  • 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