Lazarus Metafile: X-platform vector graphic implementation
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Proposed X-platform LCL-based TGraphic descendant (TlmfImage) and corresponding TCanvas descendant (TlmfCanvas) which behaves mostly as metafiles in Delphi.
Basic features:
* True X-platform (currently tested under Win32 and GTK2)
* Usage exact as Delphi TMetafile and TMetafileCanvas (makes Delphi projects migration convenient)
* Stream of recorded graphic commands can be easily enumerated and converted to other vector formats (SVG)
* Scalable (StretchDraw works fine)
* Extensible - metafile records are TComponent descendants - so it is easy to subclass them.
Steps to reproduce:
Presented sample print-preview application with 3 sample pages.
1st page generated pragmatically
2nd and 3rd are recorded by another application.
Feel free to use for any purpose.
Mantis conversion info:
- Mantis ID: 14333
- OS: Debian GNU/Linux
- OS Build: 5.0
- Build: 21200
- Platform: x86_64
- Version: 0.9.27 (SVN)
- Monitored by: » birger (B. Jansen), » taazz (John Kozikopoulos), » sekelsenmat (Felipe Monteiro de Carvalho), » @zeljan1 (Zeljan Rikalo), » @PascalDragon (Sven Barth)