mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-05 15:12:44 +02:00

* Add SaveToImage and SaveToFile methods. * Implement SaveToBitmapFile and CopyToClipboardBitmap via SaveToImage/SaveToFile. * Add demo. git-svn-id: trunk@19918 -
22 lines
424 B
ObjectPascal
22 lines
424 B
ObjectPascal
program savedemo;
|
|
|
|
{$mode objfpc}{$H+}
|
|
|
|
uses
|
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
|
cthreads,
|
|
{$ENDIF}{$ENDIF}
|
|
Interfaces, // this includes the LCL widgetset
|
|
Forms, main, TAChartLazarusPkg
|
|
{ you can add units after this };
|
|
|
|
{$IFDEF WINDOWS}{$R savedemo.rc}{$ENDIF}
|
|
|
|
begin
|
|
Application.Title := 'Saving chart as image demo';
|
|
Application.Initialize;
|
|
Application.CreateForm(TForm1, Form1);
|
|
Application.Run;
|
|
end.
|
|
|