| Delphi Graphics: File Formats & Conversions |
For technical information about graphics file format specifications, search www.wotsit.org
A.
File Formats
Also
see Section E of the (Non-Delphi) Graphics Page
Graphics File Formats FAQ Home Page
| File Format | Description/Comments |
|||||||
| general info | The RegisterFileFormat method of TPicture
allows preview in the TOpenPictureDialog. See the SLD
example in the file TSlide.ZIP by Stephan
Haugh from England. (D3/D4/D5). This approach was based on
work by Colin Sarsfield's TDxf (dxfgrph.zip).
File format information on hundreds of different file types
and all sorts of other useful programming information; algorithms, source code,
specifications, etc. File Format Encyclopedia, Release
2.0 (by Salvatore Meschini)
|
|||||||
| 3DS | 3D Studio import library for Delphi 2-4 www.lischke-online.de/3DS.html |
|||||||
| 411 | efg's 411 Lab Report to read .411 file and convert to a TBitmap |
|||||||
| ANI | Animated Cursors in Neil Rubenking's PC Magazine (1
Nov 1999) Delphi utility CursorDance
Neil Rubenking's AniCurFromResource in the AllFuncs.pas unit of his ColorClue utility. |
|||||||
| AVI |
TAVIWriter. A non-visual component to create AVI files. Allows a single video stream created from an unlimited number of bitmaps, and a single audio stream from a WAV file. (By Elliott Shevin). Find several AVI components on Torry's page Ken White's UseNet Post about imbedding an AVI in a resource file "The Animate Control," pp. 40-44, Chapter 22 (online "bonus" chapter) of Mastering Delphi 5 by Marco Cantù. Toni Martir's notes and complete VFW example (see ShevinE's improvement below).
(Note: to get Toni's complete example to compile in D3-D5, make sure you can
compile with USES OLE2: Die Ansteuerung von Videokarten mit AVI-Capture unter Delphi Use Lizard.AVI or another AVI file with Toni's example. efg's Resource Demo application shows how to use the following file types in resource files: BMP, ICO, JPG, GIF (requires Anders Melander's TGIFImage), EMF, TXT, AVI, WAV and cursors Elliott Shevin's improvements to Toni Martir's example (D3-D5 source). Saves AVI to BMP files as FrameXX.BMP. Includes VFW.PAS file used in Toni's example. (Requires USES OLE2 -- see above notes for details.) [Use Lizard.AVI or another AVI file.]. Elliott Shevin's TAVIWriter is a non-visual component to create AVI files. Nelson Chu's code snippets about saving compressed AVI. Displaying seconds, minutes, tracks of an AVI (FAQ 2083D) The Resource-Grabber will scan the directories and drives on your computer and extract all Bitmaps, Glyphs (button images), Icons, Cursors, JPG/JPEG images, WAVE and RMI sound files as well as AVI video clips it finds inside the programs and DLL files in any directory of your choice. http://inner-smile.com/dl_res.htm See Video Capture in Delphi by G. L. Alston. www.undu.com/DN970501/00000024.htm for info about AVICAP.DLL. Also see "How can I capture an image from a video source" (FAQ 1037D). TtvAPIThing, a component that encapsulates many of the API calls Die Ansteuerung von Videokarten mit AVI-Capture unter Delphi Eddie Shipman's UseNet Post about how to extract 8 AVI's from Shell32.DLL |
|||||||
|
Non-Delphi:
AVI Overview VB
Info: AVI Tutorial -- VB Programmer's AVIFile Function Help Pages |
||||||||
| BLOB | Binary Large OBject:
Streaming Bitmaps and Other Binary Data to BLOB Fields JPG in Database Bob Villiers' Usenet Post1 and Post2 about how to load jpeg in file to blob field using SQL Bob Villiers' examples of copying JPEG in BLOB to clipboard, and JPEG file on clipboard to BLOB. A separate demo shows how to store a user-defined image format (CF_JPEG) and a predefined image format (DIB) simultaneously into the clipboard.
Bitmaps And InterBase BLOB Fields (TI 797D) Mike
Shkolnik's UseNet
Post about converting BLOB to TPicture John Herbster's JPEG / BLOB example that stores images from JPEG files into Paradox table BLOB field. |
|||||||
| BMP | TBitmap, BMP, DIB page | |||||||
| CMP | See Lead Tools | |||||||
| CUR | Common sources of .CUR files: - ..\Windows\Cursors - ..\Program Files\Borland\Delphi n\Images\Cursors (D3 and before) - ..\Program Files\Common Files\Borland Shared\Images\Cursors (D4 and later) - ..\BC5\Include\MFC\RES - ..\Program Files\Plus!\Themes (from Win 95 "Plus" disk) See TCursor information on VCLRTL page How to Create BMP files for Standard Cursors efg's Overlay Cursor Lab Report. Shows how to convert CUR to TBitmap and overlay cursor transparently on another bitmap. Icon, Cursor, and Caret Functions, Tomes Graphical, pp. 357-402 How to create an animated cursor with a wagging tail. The example is ready to go, source included. www.ec-software.com/delphi/ntcurs32.zip CopyCursor (FAQ
1067D) Eddie Shipman's UseNet Post about making a rainbow background on a form (see procedures CursorOff and CursorOn) Linking an animated cursor to a resource file (FAQ 2841D) Ray Lischner's UseNet Post about a better way to restore cursors automatically Thomas' UseNet Post about how to extract the cursor image from a cursor file for drawing on a bitmap Microangelo 98 Loading Cursors from a Resource File. efg's CustomCursor.TXT Also see ANI files. |
|||||||
|
Cursor Archives Windows 98: C:\Windows\Cursors |
||||||||
| DIB | TBitmap, BMP, DIB page | |||||||
| DICOM | ezDICOM is an open source Analyze, DICOM,
Genesis, Interfile and NEMA format image viewer written primarily by
Wolfgang Krug and Chris Rorden. This software will allow you to view many
medical images. Both the fully functioning program and the Delphi (an
object-oriented variant of Pascal) source are available for
download. Digital Imaging and Communications in Medicine. Basic viewer from Delphi Super
Page: ImageLib DICOM is a VCL written for Delphi and is royalty free.
DICOM
is the medical imaging format recently approved by the FDA. (somewhat
expensive) Non-Delphi DICOM Links on Medical Applications page |
|||||||
| DXF |
Descendant of TGraphic, TDxf for loading and viewing .DXF files exported from AutoCAD. dxfgrph.zip contributed by Colin Sarsfield AutoCAD DXF file reader/writer/viewer. Supports most of the
common DXF entities. POINT, LINE, INSERT(ATTRIB), TEXT, 3DFACE, CIRCLE, ARC,
POLYLINE(+mesh varieties), SOLID, ATTDEF. BLOCKs supported and 3D transformations
implemented. CADSys4: http://members.tripod.it/vpiero/cadsys40.htm DXF Specification: www.autodesk.com/techpubs/autocad/acad2000/dxf OpenDWG is a consortium of companies that work together to reverse engineer the DWG file format, and provide libraries, code, and specifications for the DXF and DWG file formats. www.opendwg.org |
|||||||
| EMF / WMF | EMF: Enhanced Metafile (Win32) WMF: Windows Metafile (Windows 3.1). Bitmap and Metafile Functions, Tomes Graphical, pp. 273-356 L'aperçu avant impression "Using Metafiles," pp. 68-70, Chapter 22 (online "bonus" chapter) of Mastering Delphi 5 by Marco Cantù. Delphi 3/4/5: ..\Demos\Imagview "Creating a metafile," pp. 316-320, Delphi Programming Problem Solver,
Neil Rubenking. Determining if a canvas is a Metafile Canvas? (FAQ 2638D) Borland's weak answer: Text in Windows Metafiles (FAQ 1550D) Joe Hecht's UseNet Post about how to access single object in a metafile Rotating a Metafile (FAQ 1655D) [Borland needs a better, more-detailed answer than this FAQ]. Freddy Darsonville's E-Mail about a code starting point for rotation of a metafile VR Meta 1.23 is a descendant of TMetafile that provides a Canvas property for you to draw on using Delphi and WinAPI commands. Additional methods and properties open up the world of Metafiles for your applications. www.programmersheaven.com/zone2/cat71/5849.htm Drawing Windows Metafiles in Delphi by Grahame S. Marsh http://www.undu.com/DN960223/00000006.htm Supported by ImageLib www.imagelib.com Greg Bullock's 13 Nov 98 post to borland.public.delphi. graphics about WMF/EMF
scaling: |
|||||||
|
Non-Delphi: MS Q156696: EMF Playback into DC Causes Memory Leak in GDI Windows Metafiles: a guide for non-windows programmers Microsoft Windows Metafile |
||||||||
| EPS | Encapsulated PostScript is a page description language used by imagesetters and some laser printers. | |||||||
| EXIF | Iinformation stored in JPEGs
on many digital cameras, including Kodak DC280, Nikon CoolPix 990.
dEXIF is a Delphi open source library for reading EXIF information from JPEG image files. It is 100% Delphi, and VCL free.
http://mcguirez.homestead.com/downloads.html Non-Delphi: EXIF Utilities |
|||||||
| FIF | Fractal Image Format from Iterated Systems, Inc. See Fractal Image Decoder for 32-bit Windows on the Delphi 3/4 CD: \INFO\EXTRAS\FIF and Test Program in INFO\EXTRAS\FIF\TEST. In Delphi 5, FIF libraries are no longer available due to discontinued development and support by Iterated Systems. Contents of FIF Info files distributed on CD with book Delphi Component Design. See pp. 218-224 for definitions of TFIFData and TFIFImage classes. |
|||||||
| FLC/FLI Movie Player |
FLC animation example (molecule) |
|||||||
| GIF | TGIFImage by Anders Melander, Delphi 2, 3, 4 and 5 &
Builder 3 and 4. Anders' site has been offline for some time. Find copies of TGIFImage and updated versions here http://finn.mobilixnet.dk/delphi. Anders' UseNet Post about 24-bit bitmap to 256-color GIF Finn Tolderlund's UseNet Post about using OnEndPaint to restart animated GIF The first six bytes of a GIF file are 'GIF89a'. TRxGIFAnimator in RxLib, Units GIFCtrl, RxGIF. efg's Resource Demo application shows how to use the following file types in resource files: BMP, ICO, JPG, GIF (requires Anders Melander's TGIFImage), EMF, TXT, AVI, WAV and cursors Picture This on the Web: A CGI Program to Deliver Database Pictures, Delphi Informant, Feb 1998 TGIFImage: Supported by ImageLib www.imagelib.com Web Graphic Formats GIF and JPEG Components for Delphi SpecialGIF procedure by Robert Poyntz |
|||||||
|
Non-Delphi GIF Links GIFShop, free GIFs, animated GIFs GIF Archives The Iconolog, collection of 7395 icons in GIF format Library of GIF animations |
||||||||
| HP-GL/2 | Partial implementation of the HP-GL/2 file
viewer. Works with most of the HP-GL/2 files. Understands some HP RTL and
PJL. http://delphi.icm.edu.pl/ftp/d50free/hpgl2.zip |
|||||||
| ICO | Neil Rubenking's PickIconDlg
in the AllFuncs.pas unit of his ColorClue
utility.
Icon, Cursor, and Caret Functions, Tomes Graphical, pp. 357-402 Colin Wilson's UseNet Post explaining limitations of TIcon: "if you want to manipulate icons in Delphi you've got to code it all yourself. The VCL doesn't do what you want" Harm's UseNet Post explaining how to create an icon from whatever graphic is in Image1 (not just a bitmap) and stores it in Image2 Bob Villiers' UseNet Post explaining how to store an icon on the clipboard efg's Resource Demo application shows how to use the following file types in resource files: BMP, ICO, JPG, GIF (requires Anders Melander's TGIFImage), EMF, TXT, AVI, WAV and cursors Example of comparing two TIcons. Creating a flashing icon (FAQ
1103D) efg's example efg's example of converting TIcon to TBitmap, as well as extracting the icon's "AND" bitmap mask and the "OR" color bitmap. "Choosing Icons" (using the PickIconDlg dialog box) in From the Shell: Part I: Dialog Boxes You’ve Always Needed, Delphi Informant, April 1999 Icon-Browser. View a directory of icons. Convert between
BMP and ICO formats. The Resource-Grabber will scan the directories and drives on your computer and extract all Bitmaps, Glyphs (button images), Icons, Cursors, JPG/JPEG images, WAVE and RMI sound files as well as AVI video clips it finds inside the programs and DLL files in any directory of your choice. http://inner-smile.com/dl_res.htm An Icon Extractor and Viewer Delphi 3 or 4: ..\Demos\Imagview Microangelo 98 IconJack by Neil Rubenking in PC
Magazine IconEdit32 by Neil Rubenking in PC
Magazine IconEdit by Michael J. Mefford in PC
Magazine TIconList, Unit IcoList.PAS in RxLib The Icon Editor and Library Manager for Windows |
|||||||
| Icon Archives
Glyphs und Icons im Internet Icons from IBM Iconoweb Cool Archive (over 4000 icons in 125 categories) The Iconolog, collection of 22,963 ICOs that use the Windows
16-color palette |
||||||||
| IPTC | Delphi example of extracting
IPTC info from a JPEG file that has such information.
dIPTC can read, write, and generate IPTC jpeg data. dIPTC
is part of the dEXIF library and as such is 100% Delphi, VCL free,
and open source. The latest version is available from http://mcguirez.homestead.com/downloads.html Non-Delphi: Associated Press IPTC header codes: IPTC specifications are included with the Adobe Photoshop SDK |
|||||||
| JPEG, JPG | In Delphi 3/4/5, look for \Info\Extras\JPEG\Test and \Info\Extras\JPEG\Src on the CD ROM! Start with the Readme.Txt file in the root directory of the CD ROM. Delphi 3 can load JPEGs at runtime through the TImage control. Just make sure "JPEG" is in one of your Uses clauses. Delphi 3 can load JPG images at design time, if any design-time package includes the jpeg unit. If you load a jpeg image into a TImage control at design time, you have to remember to add the JPEG unit to your project yourself, or your app won't be able to load the JPEG from the DFM at runtime. (Thanks to Danny Thorpe for this clarification.) When you load a JPEG image into a control at design time it writes it as a JPEG image stream. Delphi 4 will automatically add the JPEG unit to your project when you save, if any control in the project refers to a TJPEGImage instance (Thanks to Danny Thorpe for this clarification.) The first two bytes of every JPEG file are $FFD8 and the last two bytes are $FFD9. Bob Villiers' UseNet Post about X density, Y density, and dimensions Example based on UseNet post by Peter Klein showing how to extract DPI directly from JPG file. Chris Rorden's Delphi program that demonstrates three simple tasks:
JPEG Error Messages: 0 to 119 efg's JPEGSentinelsAreOK function to find "bad" JPEGs (avoid error #52) JPEG_IO.pas -- Replacing Delphi's JPEG Unit Bob Villiers observed in a UseNet Post that color JPEGs are always 24 bit and 8-bit JPEGs are black/white. He also showed how to convert a color TBitmap to a jf8bit JPEG. efg's Resource Demo application shows how to use the following file types in resource files: BMP, ICO, JPG, GIF (requires Anders Melander's TGIFImage), EMF, TXT, AVI, WAV and cursors How to print a JPEG displayed in a TImage Chris Rorden's version of how
to print a JPEG with these improvements: JPG in Database M.H. Avegaart's UseNet Post about how to resize a JPG (i.e., create Small.JPG from Big.JPG) Charles Hacker's UseNet Post with routine to resize JPGs Web Graphic Formats efg's Combine JPGs, split and display example. Combine files 1.JPG, 2.JPG, 3.JPG into a single file. Read the combined file and display the original JPGs in TImages. For a Delphi 2 JPEG Component:
Picture
This on the Web: A CGI Program to Deliver Database Pictures, Streaming Images from Web Applications: Sending a JPEG image from
the hard drive efg's UseNet Post to convert TJPEGImage to TBitmap, change size of TBitmap, and convert back to TJPEGImage "Interpreting Cryptic Jpeg Error Number's" by Corbin Dunnhttp://community.borland.com/article/0,1410,20433,00.html Corbin's UseNet Post with the same information. Kay Schubert's UseNet Post about how to "Prevent JPEG Error 41" with code that saves and loads ALL TPicture-contained TGraphic descendents into and from a stream, without any need to know its actual type According to David J. Taylor in a UseNet Posting "if you have Delphi 6, JPEG Error #36 should be fixed" (13 Aug 2002). "How to avoid 'Random' Exceptions being raised when using TJPEGImage or the JPEG unit" by Corbin Dunn. http://community.borland.com/article/0,1410,20073,00.html JPGImg. Native VCL JPEG image based on the PasJPG Library (Delphi 1/2) Freeware component allows you to read, delete and edit comments inside the JPG files. Displaying a 24 bit True Color bitmap image on a 256 color display Peter Below's UseNet Post about no standard clipboard format for JPEGs Extracting a JPEG Resource from an EXE (TI 4532D) Bob Villiers' examples of copying JPEG in BLOB to clipboard, and JPEG file on clipboard to BLOB. A separate demo shows how to store a user-defined image format (CF_JPEG) and a predefined image format (DIB) simultaneously to the clipboard. Bob Villier's related UseNet Post about JPEGs on the clipboard. John Herbster's JPEG / BLOB example that stores images from JPEG files into Paradox table BLOB field. Using JPG's in Paradox Databases Monty's UseNet Post about
setting DPI in JPEG file Trap exceptions. Error #60 and #67 occurs when the JPEG is "incomplete." Error #52 occurs when the file is not a JPEG (for example a GIF is being used as a JEPG). Here's how to trap these errors:
Maintaining Aspect Ratio. Displaying a TJPEGImage in a TImage with Stretch enabled can distort the image display. Either set Stretch to FALSE, or adjust one of the dimensions of the TImage to display the image with the correct aspect ratio:
Replace <FIX ASPECT RATIO HERE> with one of these two statements:
Example of how to use JPGs in a database with D4. GIF and JPEG Components for Delphi efg's BMPJPG Lab Report including graph of File Size vs. JPEG Quality Non-Delphi JPEG Links CRYX's note about the JPEG decoding algorithm Image Compression: JPEG PDF describing the JPEG format JPEG fundamentals |
|||||||
| JPEG-2000 | Non-Delphi: Jasper Project: The objective of this project is to develop a software-based reference implementation of the codec specified in the JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1). www.ece.ubc.ca/~mdadams/jasper |
|||||||
| MPEG | Playing MPEG files in Delphi apps (FAQ 1890D) MPEG
Audio Tools (Delphi Unit) Also see MP3 on the Multimedia page |
|||||||
| PCX | PC Paintbrush by Z-soft
TifIMG 16/32. Delphi components provide for reading of numerous
image formats such as TIFF, BMP, PCX, DCX, JPEG, TGA, WMF, WPG and the new
PNG graphics format. Read PCX into TBitmap or
write PCX from TBitmap using Davie Reed's
PCX unit. TUniDIB. Class for working with Device Independent Bitmaps. It can
handle any allowed color depth. Now it has ability to load BMP and PCX files. www.geocities.com/SiliconValley/Hills/1335/zip/unidib.zip
Michel Brazeau's UseNet Post about how to change DPI fields in PCX header |
|||||||
|
When you have an Acrobat (Reader) installed there is an OCX file in your Windows/System directory. Import this file into Delphi and select the Acrobat Reader icon and drop an reader on the form. Steven Van Hulle's UseNet post (5 Dec 99):
Peter Below's (Team B) UseNet Post about printing PDF files PDFlib allows you to implement PDF output in your own products. |
||||||||
| PGM | Non-Delphi: Portable Greymap format:
wotsit.org Used with the AT&T Cambridge Laboratory's Database of Faces (400 images) at www.uk.research.att.com/facedatabase.html (see conversion section below for Delphi viewer) |
|||||||
| PICT | Primary format for Apple Macintosh graphics. | |||||||
| PNG | Portable Network Graphics Delphi (by Gustavo
Daud) http://pngdelphi.sourceforge.net Peter Haas' overview for freeware png libraries
with source: PNG Graphics with Delphi and Kylix TPNGImage How to rebuild the LNPG library from public source code using Borland's
free C++ compiler, and provided Delphi interface units PngUnit -- PNG for Delphi. Read, view and save PNG, convert BMP to PNG (PNG = Portable Network Graphics). Nothing to install. Compile and run the program. Source code included. http://sharepower.virtualave.net/png.html GRIP (Geographic Raster Image Processor) processes PNG format images. Import Landsat, Slar, SAR, and AVHRR imagery into the PNG format. www.winsite.com/info/des_package_1500000034993.html Read, view and save PNG, convert BMP to PNG and PNG to BMP. http://delphi.icm.edu.pl/ftp/d10free/pngunit.zip Envision Image Library. Web Graphic Formats TifIMG 16/32. Delphi components provide for reading of numerous
image formats such as TIFF, BMP, PCX, DCX, JPEG, TGA, WMF, WPG and the new
PNG graphics format. Non-Delphi: Portable Network Graphics ("ping" files). An alternative to GIF files. Technical information: www.libpng.org/pub/png/ PNG
Specification |
|||||||
| PS, Postscript |
Non-Delphi: www.gnu.org/software/ghostscript/ghostscript.html |
|||||||
| RichEdit to Canvas or TBitmap | MBo's UseNet Posting with sample code | |||||||
| QuickTime Files | Dominique Louis' UseNet Post with alternatives | |||||||
| SFF | Structured Fax File Delphi unit: http://delphi.pjh2.de/units/sff.php Format description: http://delphi.pjh2.de/articles/graphic/sff_format.php |
|||||||
| SLD | TSlide class is a TImage extension to support AutoCAD slide files (SLD). This allows slides to be loaded into the TPicture of a TImage. The RegisterFileFormat method of TPicture enables preview of slides in the TOpenPictureDialog. By Stephan Haugh from England. TSlide.ZIP (D3/D4/D5) | |||||||
| Sun Raster Files | Example of reading three Sun Raster images into pf24bit
TBitmap: efg's Create Mandrill BMP Lab Report |
|||||||
| TGA (Targa) | Viewer: Simple image viewer with
high quality display of images even on 256-, 32K and 64K-colour adapters. Displays
TGA,
JPEG, GIF, WMF and BMP files. www.davidtaylor.freeserve.co.uk/software/imaging.html A unit to work with graphics. Many effects like: motion blur, alpha
blending, antialiasing, text, texture mapping, save/load from BMP/TGA. TifIMG 16/32. Delphi components provide for reading of numerous
image formats such as TIFF, BMP, PCX, DCX, JPEG, TGA, WMF, WPG and the new
PNG graphics format. Read TGA into TBitmap or write TGA from TBitmap using Davie Reed's Targa unit. |
|||||||
| TIF, TIFF | TIFF might stand for "Thousands of
Incompatible File Formats" <g>
Greg Remington in UseNet Post: "Unfortunately, the TIFF format is not simple to read or write correctly. According to the specifications, only the first 8 bytes are fixed, everything else can be anywhere in the file. Since many parts of the documentation have been differently interpreted by application programmers that have written TIFF files, a robust reader is difficult to write." TifIMG 16/32 TIFIMG Save BMP as TIFF 6.0 (D1-D5, updated Sept 2000) TIFF to BMP TifIMG 16/32. Delphi components provide for reading of numerous
image formats such as TIFF, BMP, PCX, DCX, JPEG, TGA, WMF, WPG and the new
PNG graphics format. GraphicEx unit is an enhancement to Graphics.pas to
provide you with additional image types to load (other than BMP, ICO and WMF/EMF). These
are the image types currently supported: TiffPack package was developed for a purposes of convenient operating in a
Delphi's environment with a tiff images. From previous versions this package differs
by that it can more correctly work both OS, e.g. Windows NT and Windows 95(98). Envision Image Library. The evaluation version of the Envision
Image Library includes the compiled units (DCU's) and object files (OBJ's). Its supports
Dephi 3, 4, 5, and C++ Builder 4. The download also includes complete source code for registered users.
A commerical library for Delphi 3 or 4 with a nice
price. With Envision you can View and save Multi Page TIFFs, Rotate the images
and Add images to the another Multi Page TIFF files. Also there is support for many
other formats ( JPEG, PNG, TGA, BMP, TIFF, etc. ). Tim Fagerman's UseNet Post
about using Wang Imaging ActiveX Control. Non-Delphi - Alex Weidauer's UseNet Post about how to compile libtiff with BCC5.5 |
|||||||
| YUV | efg's YUV Lab Reports | |||||||
| WMF | Windows Metafile. See EMF.
Carsten Kronenberg reports that Windows 95 has serious resource leaks when processing hundreds of WMF files. The same problem has not been observed in Windows 98 or Windows 2000. |
| Conversion(s) | Description/Comments |
| anything to TBitmap | TBitmap, BMP, DIB page
|
| anything to BMP | |
| BMP to anything | TBitmap, BMP, DIB page |
| BitmapHandle to/from TBitmap | TBitmap, BMP, DIB page |
| DIBtoBitmap | Procedure in ImageLib Suite DLL. Also see hDIB to TBitmap. |
| EMF to BMP | Gordon Whittam's UseNet Post about this conversion |
| EMF to WMF | "There is a bug in the EMF to WMF conversion code in
Delphi 3 that overstates the scale of the image by a factor of 10. (1/100th mm per
inch should be 2540, not 25400) This will make WMF files read by Delphi 3 smaller
than normal (if you pay attention to the original scale information, which is usually
absent), or WMF files written by Delphi 3 larger than normal in other apps (like Word
7). Since the bug is symmetrical, WMFs written by Delphi 3 are read by Delphi 3 at
the correct scale. EMF files are not affected by this WMF conversion issue.
The WMF conversion scale problem is fixed in Delphi 4." by Danny Thorpe in 10/5/98 post to borland.public.delphi.graphics. |
| hBitmap to TBitmap | Herbert Dapper's UseNet Post |
| hDIB to TBitmap | efg's
Lead Tools-to-Delphi conversions show
two ways to start with a hDIB and end up with a TBitmap. - Method 1. hDIB to TBitmap resulting in bmDDB using StretchDIBits - Method 2. hDIB to TBitmap resulting in bmDIB using MemoryStream |
| ICO to Cursor | Kerstin Thaler's UseNet Post about how to convert ICO to a Cursor |
| ICO to TBitmap | Howard Moon's UseNet Post with ConvertIconToBitmap procedure |
| Multiple Conversions | "Image Conversion Lib" contains
several components which let you load, display, convert and save images in a very
easy way. All the most important image file formats are supported: BMP, DIB,
GIF, JPG, PCD, PCX, SCR, TIF. You can convert the images to Indexed 2-Color, Indexed
16-Color, Indexed 256-Color, RGB True Color, Black & White, Grayscale-16 and
Grayscale-256 image types. Color Quantization: Popularity, Median-Cut. Dithering:
None, Floyd-Steinberg. The components offer resize and fade in/out functions.
You can import/export images to the TBitmap object (TImage component). http://delphi.icm.edu.pl/ftp/d30share/imgcnvd3.zip http://delphi.icm.edu.pl/ftp/d40share/imgcnvd4.zip http://delphi.icm.edu.pl/ftp/c40share/imgcnvc4.zip Component suite for image processing and analysis. TIFF (RGB, CMYK,G3/G4
Fax,LZW), PNG, BMP, PCX, JPEG (RGB,CMYK,YCbCr,YCbCrK), animated GIF (LZW and Non-LZW
- no-Unisys licence); TWain scanners (without DLL), video capture, thumbnail
grids, create animations, vectorial objects (lines, box, ellipses, text...) over
bitmaps and more. Pure VCL code, no DLL required. |
| ImgSource. is a Win32 DLL that can be used in any 32-bit environment capable of calling a Win32 DLL (VC++, VB, Access, SDK, etc). It provides over 160 image file and image processing functions. Supports JPG, BMP, TIFF, Photoshop, WBMP, PNG, PCX, PAX, TLA, WMF, EMF, APM and TGA. . www.smalleranimals.com/isource.htm | |
| GraphicEx unit is an enhancement to
Graphics.pas to provide you with additional image types to load (other than BMP, ICO and
WMF/EMF). These are the image types currently supported: TIFF (both big endian and little endian format, uncompressed, LZW compressed), SGI (.bw and .rgb), Autodesk (.cel and .pic), Truevision (.tga, .vst, .icb, .vda, .win), Kodak Photo-CD images (*.pcd) www.lischke-online.de/Graphics.html |
|
| Viewer: Simple image viewer with
high quality display of images even on 256-, 32K and 64K-colour adapters. Displays TGA,
JPEG, GIF, WMF and BMP files. www.davidtaylor.freeserve.co.uk/software/imaging.html |
|
| ImageEn is a component
suite for image processing, viewing and analysis. It can load and save from varios image
file formats, acquire from TWain scanners (single and multi pages), capture videos,
applies filters, merge images, and other. ImageEn allow you to include some Photo
Shop or Photo Paint features in your programs. ImageEn works on Delphi 3, Delphi 4,
Delphi5, C++Builder 3 and C++Builder 4.- Load and save JPEG in true color or gray levels
to file or stream. - Load and save TIFF (rev.6.0, Packbits, LZW, CCITT G.3 and G.4) in true color and B/W to file or stream. - Load and save PNG with various compression levels. - Load and save compressed and uncompressed BMP in 2,16,256 or 16M colors to file or stream. - Load and save compressed and uncompressed PCX in 2,16,256 or 16M colors to file or stream. - Load and save 2,4,8,16,32,64,128 or 256 colors GIF to file or stream. - Load WMF, EMF, ICO and CUR. - Load and save AVI, animated GIF and multi-TIFF. - Editing of animated GIF: extract, insert and delete single images. - Editing of multi TIFF: extract, insert and delete single images. - Included source code of a sample plug-in to read/write LZW Gif and TIFF. www.hicomponents.com http://delphi.icm.edu.pl/ftp/d30share/ie15d3.zip http://delphi.icm.edu.pl/ftp/d40share/ie15d4.zip http://delphi.icm.edu.pl/ftp/d50share/ie15d5.zip |
|
| Component suite for image processing and analysis. BMP, PCX, JPEG, animated GIF (LZW and NON-LZW no-Unisys licence!) and TIFF; Twain scanners. http://delphi.icm.edu.pl/ftp/d30free/imag070b.zip http://delphi.icm.edu.pl/ftp/d30free/imag065b.zip | |
| TThumbNail is a component to handle any image as a thumbnail it can only opens emf, wmf, bmp, jpg file types. TThumbview is a component that displays all the components in a directory as thumbnails. http://delphi.icm.edu.pl/ftp/d30free/thumbs.zip | |
| ImageLib by Skyline Tools: ImageLib is a professional software development tool that allows a programmer to incorporate BMP, CMS, GIF, ICO, JPEG, PCX, PNG, SCM, IMG, TIFF, TIFF CCITT 3 and 4, Multipage TIFF, Packbits, PCD (Photo CD-Kodak), LZW, (most flavors), DXF, PCD, TGA, EPS, WMF and other image formats into applications. In addition, AVI, MOV, MID, WAV, and RMI multimedia formats are supported. These image and multimedia formats can be implemented to/from a file or database BLOB field. www.imagelib.com | |
|
|
![]() The Envision Image Library provides image file I/O for popular file formats (TIFF, PNG, JPEG, BMP, PCX, TGA, ICO, WFM, EMF), printing, scanning and image processing features. Twain scanning. Image processing: anti-aliasing, brightness, contrast, convert to gray, edge detection, emboss, sharpen, flip vertical and horizontal, gamma adjustment, negative, interpolated resize, rotate 90, 180, 270 and arbitrary angle, cropping, format conversion including Floyd Steinberg dithering and color quantization. For Delphi 3, 4 or 5, or Builder 4. www.intervalsoftware.com Schoeneck Howell in a UseNet Posting: "I just started using the Envision image library... I mainly picked it up for TIF support, but its TJpegGraphic works with Timage and eliminated the 'error 36' on GIF to JPEG translation saves producing 1MB+ JPG's, that I previously had been seeing. The package also has some nice features like: no external DLLs; TWAIN support; image processing; flexible printing; and an ImageScrollBox component with smooth mouse grab panning. Registration was $49 US and included source. The evaluation copy is fully functional (sans source), but includes nag screen & image branding." |
|
| NViewLib.DLL - Support more graphic format: JPG, JIF, GIF, BMP, DIB, RLE, TGA, PCX. - Both 16 bit and 32 bit dll. - Detect JPG and GIF by parsing the file |
|
| Resource-Grabber | The Resource-Grabber will scan the directories and drives on your computer and extract all Bitmaps, Glyphs (button images), Icons, Cursors, JPG/JPEG images, WAVE and RMI sound files as well as AVI video clips it finds inside the programs and DLL files in any directory of your choice. http://inner-smile.com/dl_res.htm |
| PGM to BMP or JPG | See efg's Interactive PGMP5 "viewer" to display PGM files (P5 format) or the command-line utility ConvertFaces to convert PGM files of the AT&T Laboratories Cambridge Database of Faces (400 images) at www.uk.research.att.com/facedatabase.html to BMP or JPG: PortableGrayMap.ZIP |
| TBitmap to anything | TBitmap, BMP, DIB page |
| TChart Canvas to GIF | See Anders Melander's UseNet Post |
| YUV to RGB | efg's YUV Lab Reports |
| WMF to BMP | Harm's UseNet Post with example |
| WMF to EMF | Joël Joly's UseNet Post with example |
| WMFtoBitmap WMFtoDIB |
Procedures in ImageLib Suite DLL. |
| Components |
List of Components |
| Compression Library | Project JEDI contribution by Mariusz Klimczak www.delphi-jedi.org/Jedi:API_TOOLS:236830434 ftp://delphi-jedi.org//tools/d_hsdll.zip |
| Compression Pointers | www.internz.com/compression-pointers.html |
| DelphiZLib | The DelphiZlib package contains a TGzip, TCrc32 and TAdler32
component. http://delphi.icm.edu.pl/ftp/d30free/nikkelen.zip |
| GIF | Non-Delphi GIF Links |
| FAQ | comp.compression Newsgroup FAQ www.faqs.org/faqs/by-newsgroup/comp/comp.compression.html |
| FIF | Fractal Image Format from Iterated Systems, Inc. See Fractal Image Decoder for 32-bit Windows on the Delphi 3/4 CD: \INFO\EXTRAS\FIF. NOT on the Delphi 5 CD. Mark L. Tiede's UseNet Post [Foley96, pp. 846-850] |
| Image Compression: JPEG | Image Compression: JPEG http://pascalzone.amirmelamed.co.il/Graphics/JPEG/JPEG.htm |
| JPEG (lossy) | Non-Delphi JPEG Links See Delphi 3/4/5 CD: \INFO\EXTRAS\JPEG |
| Run-Length Encoding (RLE) | Compressing 256 Color Bitmaps www.undu.com/Articles/980311b.htm |
| wavelets | See efg's Mathematics Reference Library |
| Xceed Zip Compression Library | www.xceedsoft.com/html/xz_intro.html |
| ZIP | Eric Engler's Freeware Delphi Zip package |
| Zlib |
Mike Orriss' UseNet Post with CompressStream and ExpandStream procedure using Zlib. Zlib can be found on the Delphi installation disk in the directory \Info\Extras\Zlib. |
D. Other File Format Resources
| Graphics File Formats (non-Delphi information) | www.wotsit.org www.dcs.ed.ac.uk/~mxr/gfx My File Formats http://myfileformats.com |
| Index of /soft/compgraph/ fileformats/docs |
www.tnt.uni-hannover.de/soft/compgraph/fileformats/docs |
| PKZip | www.pkware.com |
| Print to Graphics File | Print to graphics file format using special printer
driver: PEERNET.DRV Pro Driver www.peernet.com/drivers/C._PRO_Driver.html |
| TWAIN | Image Acquisition Using TWAIN, Sept. 1994, Dr. Dobb's
Journal www.ddj.com/articles/1994/9409/9409i/9409i.htm |
| Web graphics | Optimizing Web Graphics: The Great Bandwidth Shortage http://webreference.com/dev/graphics |
| WinZIP | www.winzip.com |
Links Verified 27 Feb 2005
Updated 27 Feb 2005
since 1 Nov 1998