This component is a Delphi wrapper for the fabulous ImageMagick library. ImageMagick is a very portable library that excels in the vast number of file formats it supports.
The wrapper class is named the TMagickImage class, descending from TGraphic. It supports assignment to and from TBitmap, so you can easily load an ImageMagick image, then assign it to a standard TBitmap for visualisation.
Some key methods of TMagickImage:
LoadFromFile(const Filename: string);
Load an image from disk into TMagickImage. TMagickImage uses the filename's extension to determine which kind of file it is. For example: gif, jpg, jp2 (jpeg2000), pdf, png, fpx, tiff, svg and many others.
SaveToFile(const Filename: string);
Save an image to disk, again the filename determines in which format the file will be saved.
AssignTo
Use this one to assign to any TBitmap. Showing a TMagickImage in a TImage component is as easy as Image1.Picture.Bitmap.Assign(MyMagic); |