Delphi Tips&Tricks News   Tips   .NET Software   VCL Software   Search   Contacts
Special Offer!

Ultimate Pack  hot!
Image Editor  new!
Runtime Fusion
Form Designer
Object Inspector
Print Suite Pro
Commented Image
Delphi Toys
WinDowse
Delphi Bonus
TMS Scripter Studio
Form Designer VB
Form Designer .NET

...get more...
for Delphi.NET, C#, VB.NET
for Delphi VCL, BCB 3-6

WinAPI Online
Unix Manual Pages
MegaDetailed.NET
in3steps.com

Blogspot  greatis.blogspot.com

 See more ads about delphi programming →


Put bitmap to StringGrid - Components - Tips & Tricks - Greatis Delphi Pages

Use StrechDraw property of the StringGrid.Canvas and don't forget to free the bitmap.


procedure TForm1.Button1Click(Sender: TObject);
var
  Bitmap: TBitmap;
begin
  Bitmap:=TBitmap.Create;
  Bitmap.LoadFromFile('factory.bmp');
  StringGrid1.Canvas.StretchDraw(StringGrid1.CellRect(1,1),Bitmap);
  Bitmap.Free;
end;
Related chapters
Databases

Related topics
Create DBGrid that shows images
Create DBGrid with colored cells
Set colors for DBCtrlGrid's lines

For more
Delphi Help

Download source


 See more ads about delphi components →