Difference between revisions of "LMD VCL - TLMDBitmap"

From LMD
Jump to: navigation, search
 
 
(2 intermediate revisions by the same user not shown)
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>
 
In VCL.NET no special features are added, because support of different graphic formats is available here through ImageFormat property.
 
In VCL.NET no special features are added, because support of different graphic formats is available here through ImageFormat property.

Latest revision as of 21:06, 29 May 2007

<< 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>