Difference between revisions of "LMD VCL - TLMDBitmap"
From LMD
Line 1: | Line 1: | ||
− | + | {{Head-StartRes}} | |
− | + | ||
− | |||
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.<br> | 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.<br> |
Revision as of 21:03, 29 May 2007
<< Back to Getting started or Product Resources page
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>