This repository has been archived on 2024-02-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
MyPresenter1.0/MPS/projection.pas
2015-08-20 15:16:03 -07:00

49 lines
753 B
ObjectPascal

unit projection;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, BGRABitmap, data;
type
{ TfrmProjection }
TfrmProjection = class(TForm)
procedure FormCreate(Sender: TObject);
procedure FormPaint(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
currProjection: TBGRABitmap;
end;
var
frmProjection: TfrmProjection;
implementation
{$R *.lfm}
{ TfrmProjection }
procedure TfrmProjection.FormCreate(Sender: TObject);
begin
Init;
end;
procedure TfrmProjection.FormPaint(Sender: TObject);
//var bmp: TBGRABitmap;
begin
if currProjection<>Nil then
begin
currProjection.Draw(Canvas, 0, 0, True)
end;
end;
end.