Added gravity to the TextReader, so text can be easily anchored to the corners.

This commit is contained in:
Jonathan Thomas
2013-03-06 23:36:28 -06:00
parent 55aa8225eb
commit 5ce6add42f
3 changed files with 44 additions and 10 deletions

View File

@@ -18,13 +18,13 @@ void FrameReady(int number)
int main()
{
// FFmpegReader r("/home/jonathan/Videos/sintel_trailer-1080p.mp4");
// r.Open();
// tr1::shared_ptr<Frame> f = r.GetFrame(300);
// f->Display();
// r.Close();
//
// return 0;
TextReader r(720, 480, 10, 10, GRAVITY_TOP_RIGHT, "What's Up!", "Courier", 30, "Blue", "Black");
r.Open();
tr1::shared_ptr<Frame> f = r.GetFrame(1);
f->Display();
r.Close();
return 0;