mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Syncing uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@1809 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4403b65174
commit
acd590d240
16 changed files with 171 additions and 29 deletions
|
|
@ -1,16 +1,20 @@
|
|||
#include "PDF.h"
|
||||
|
||||
#include <PdfDraw/PdfDraw.h>
|
||||
|
||||
GUI_APP_MAIN
|
||||
using namespace Upp;
|
||||
|
||||
#define IMAGECLASS AppImg
|
||||
#define IMAGEFILE <PDF/app.iml>
|
||||
#include <Draw/iml.h>
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
PdfDraw pdf;
|
||||
// pdf.DrawRect(100, 100, 500, 500, Blue);
|
||||
FontInfo fi = ScreenInfo().GetFontInfo(Roman(100));
|
||||
pdf.DrawRect(100, 100, 100, fi.GetHeight(), LtGray);
|
||||
pdf.DrawRect(100, 100 + fi.GetAscent(), 100, 1, Blue);
|
||||
pdf.DrawText(100, 100, "Ahoj", Roman(100), Black);
|
||||
pdf.DrawRect(1000, 1000, 100, 100, LtGray);
|
||||
pdf.DrawText(1000, 1000, 300, "Angle!", Roman(100), Black);
|
||||
SaveFile("d:\\pdf.pdf", pdf.Finish());
|
||||
// pdf.DrawRect(400, 400, 500, 500, Blue);
|
||||
// pdf.DrawText(100, 100, "Ahoj", Roman(100), Black);
|
||||
// pdf.DrawText(100, 200, "Ahoj", Arial(100), Black);
|
||||
pdf.DrawImage(100, 500, 200, 200, AppImg::test());
|
||||
pdf.DrawImage(300, 500, 200, 200, AppImg::testbw());
|
||||
pdf.DrawImage(500, 500, 200, 200, AppImg::testg());
|
||||
SaveFile("u:\\pdf.pdf", pdf.Finish());
|
||||
LaunchWebBrowser("u:\\pdf.pdf");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue