X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fmain.h;h=7cfa22c739ef14edac3f0e85fd0ac4d4e9b9ecea;hp=afcffe8c4efe0de923034ba03a7caac6f45e7d0c;hb=4f0feb025e48aaaa0ffe0226c5135e116d1cb986;hpb=07db15ca49833542130f7c29c6a6dc7560fab59d diff --git a/src/main.h b/src/main.h index afcffe8..7cfa22c 100644 --- a/src/main.h +++ b/src/main.h @@ -9,16 +9,16 @@ using namespace std; using namespace IPDF; -inline void OverlayBMP(Document & doc, const char * filename, const Rect & bounds = Rect(0,0,1,1), const Colour & c = Colour(0.f,0.f,0.f,1.f)) +inline void OverlayBMP(Document & doc, const char * input, const char * output, const Rect & bounds = Rect(0,0,1,1), const Colour & c = Colour(0.f,0.f,0.f,1.f)) { View view(doc, bounds, c); Screen scr; //view.Render(); - scr.RenderBMP(filename); + scr.RenderBMP(input); scr.Present(); - //MainLoop(doc, bounds, c); - sleep(3); - scr.ScreenShot(filename); + sleep(1); + scr.ScreenShot(output); + sleep(1); } inline void MainLoop(Document & doc, const Rect & bounds = Rect(0,0,1,1), const Colour & c = Colour(0.f,0.f,0.f,1.f))