Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Delphi TChart example |
Post Reply |
Author | |
RhoTu
Beginner Joined: 29 Jun 09 Location: Minnesota Status: Offline Points: 12 |
Post Options
Thanks(0)
Posted: 10 Jul 09 at 3:49PM |
The following code is a snippet from an application that uses a TChart component that is inserted into a document
HTH
RT
rcfTchart:begin
strm:=TMemoryStream.Create; img:=TImage.Create(nil); rcChart.Width:=trunc(width*600); rcChart.Height:=trunc(height*600); img.Width:=rcChart.Width; img.Height:=rcChart.Height; rcChart.PrintPartialCanvas(img.Canvas,rect(0,0,rcChart.Width,rcChart.Height)); img.Picture.Graphic.SaveToStream(strm); strm.Seek(0,0); imgID:=doc.AddImageFromStream(strm,0); doc.SelectImage(imgID); doc.DrawImage(left,top,width,height); freeAndNil(img); freeAndNil(strm); used:=used+height; end; |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store