How to draw the chart to a metafile.
This example uses the PaintTo method to draw the chart to a metafile canvas.
var emf: TMetaFile; emfcvs: TMetafileCanvas; begin emf := TMetafile.Create(); try emf.Enhanced := true; emf.Width := RAC.ClientWidth; emf.Height := RAC.ClientHeight; emf.MMWidth := 0; emf.MMHeight := 0; emfcvs := TMetafileCanvas.Create(emf, 0); try RAC.PaintTo(emfcvs, RAC.ClientRect, RAC.FirstDisplayedIndex); finally emfcvs.Free; end; emf.SaveToFile('RAC.emf'); finally emf.Free; end; end;
- Overview
- Download
- Screen Shots
- Properties
- FAQ & Getting Started
- User Comments
- Support Forum
- Change History
- License
- Buy
What People Say |
---|
![]() ... The conclusion cannot be an other one than to state that if you are looking for a planning component you have to get the RAC. For your future planning business it is simply a must. ![]() H. de Boer, Staaf Automatisering (see the full case study) |
More … |