Difference between revisions of "LMD VCL - TLMDBitmap"
From LMD
Line 1: | Line 1: | ||
+ | [[Category:Section]]__NOTOC__ | ||
+ | << Back to [[Main Page]] | ||
+ | <p style="text-align: right;">[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit§ion=0}} [edit]]</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> | ||
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. |
Revision as of 20:57, 29 May 2007
<< Back to Main 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>