Difference between revisions of "LMD VCL - TLMDBitmap"

From LMD
Jump to: navigation, search
Line 1: Line 1:
[[Category:Section]]__NOTOC__
+
{{Head-StartRes}}  
<< Back to [[Main Page]]
+
 
<p style="text-align: right;">[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit&section=0}} &#91;edit&#93;]</p>
 
  
 
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

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