GBM is a Bitmap Rosetta Stone that can understand a wide variety of bitmap file formats. GBM has command-line programs that can be used to convert, crop, reflect, transpose, rotate, error-diffuse, halftone, map-to-gray, display under PM, and display and edit under PM.
The source code can be found in the following directories after you install the GBM source code product.
o .
Bits from elsewhere, included to make source
complete. standard.h is a common header with
some standard typedefs. scroll.* is a prebuilt
OS/2 2.x PM scroller control.
o .\gbm
Fully portable 32-bit C code that provides most of
the functionality. Has been compiled on OS/2 2.x,
AIX, and other 32-bit platforms. Provides libraries
to perform file I/O, error-diffusion, halftoning,
color reduction, reflecting, rotating, transposing
and cropping.
o .\gbmv
Simple OS/2 2.x PM bitmap viewer. Provides an
application whose client displays a bitmap.
o .\gbmdlg
Provides a derivation of WinFileDlg, which is
designed to allow you to specify the file for
loading or saving. Has additional entry field for
"Bitmap specific options". Has "Bitmap", "GIF",
"PCX" etc. in the Filetypes combo box. Includes
help source to generate accompanying help text.
o .\gbmv2
Sophisticated OS/2 2.x PM bitmap viewer with menu
and dialogs to give access to bitmap manipulation
tools. Full help available.
Note: If a makefile uses files from another directory, it accesses them via a make variable defined at the start. In this way, if you move a directory, you need only change a line at the top of a makefile.