LMD VCL - TLMDBitmap

From LMD
Revision as of 22:06, 29 May 2007 by Rafael (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<< Back to Getting started or Product Resources page

[edit]

The new TLMDBitmap class is derived from TBitmap and mainly utilizes the Windows built-in OleLoadPicture function. GIF, JPEG, Icon or Bitmap Files can be loaded without additional special VCL libs.
In VCL.NET no special features are added, because support of different graphic formats is available here through ImageFormat property.

The LMDBitmap example project in \LMDRTLX folder demonstrates use of the bitmap class. To load e.g. any supported format into a TImage control, following code can be used: <delphi> bmp:=TLMDBitmap.Create; with bmp do

 try
   LoadFromFile(OpenDialog1.FileName);
   Image1.Picture.Assign(bmp);
 finally
   Free;
 end;

</delphi>