CreateMetaFile

In Advanced Charts we use CreateMetaFile to get an image to include in reports. This option does not seem to be available in FNC Charts. Is this somewhere else or to be included in a future (soon!) release?


Dave Craggs

Manage to do it myself. Quality of picture not so good though


procedure TTestGraph.AssignToPicture(APicture: TPicture);
var
  lGraphic: TTMSFNCChartGraphics;
begin
  lGraphic := TTMSFNCChartGraphics.CreateBitmapCanvas(Round(Width), Round(Height));
  try
    chartMain.DrawChart(lGraphic);
    if Assigned(lGraphic.Bitmap) then
       APicture.Assign(lGraphic.Bitmap);
  finally
    lGraphic.Free;
  end;
end; 

A TMetaFile is a Windows specific functionality. Before we can add such functionality we will need the equivalent on all other platforms.