mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@5502 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
09918a6f5d
commit
cc0cd38f12
1 changed files with 21 additions and 19 deletions
|
|
@ -1,19 +1,21 @@
|
|||
#include <PdfDraw/PdfDraw.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define IMAGECLASS AppImg
|
||||
#define IMAGEFILE <PDF/app.iml>
|
||||
#include <Draw/iml.h>
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
PdfDraw pdf;
|
||||
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(GetHomeDirFile("pdf.pdf"), pdf.Finish());
|
||||
}
|
||||
#include <PdfDraw/PdfDraw.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
#define IMAGECLASS AppImg
|
||||
#define IMAGEFILE <PDF/app.iml>
|
||||
#include <Draw/iml.h>
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
PdfDraw pdf;
|
||||
pdf.DrawRect(400, 400, 500, 500, Blue);
|
||||
pdf.DrawImage(100, 500, 200, 200, AppImg::test());
|
||||
pdf.DrawImage(300, 500, 200, 200, AppImg::testbw());
|
||||
pdf.DrawImage(500, 500, 200, 200, AppImg::testg());
|
||||
pdf.DrawText(100, 100, "Ahoj", Roman(100), Black);
|
||||
pdf.DrawText(100, 200, "Ahoj", Arial(100), Black);
|
||||
pdf.DrawText(300, 100, "Ahoj", Roman(150).Italic(), Black);
|
||||
pdf.DrawText(300, 200, "Ahoj", Arial(150).Italic(), Black);
|
||||
SaveFile(GetHomeDirFile("pdf.pdf"), pdf.Finish());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue