NAME
Video::Xine::OSD - Xine onscreen display
METHODS
These methods are used for the Xine on-screen display.
new()
my $osd = Video::Xine::OSD->new($stream, $x, $y, $width, $height);
Creates a new OSD.
clear()
$osd->clear()
Clears out the on-screen display.
draw_text()
$osd->draw_text(x => 0, y => 0, text => 'hello world', color_base => 1)
Draw text on the on-screen display. Set the font with set_font()
before calling this method, or no text will be drawn.
set_font()
$osd->set_font($font_name, $font_size);
Sets the font and font size. $font_name
can be either a straight name or a path to a TrueType font file. $font_size
is the point size of the font. The Xine header seems to want you to make this a multiple of 11; not sure why.
show()
$osd->show();
Renders the OSD onto the screen.
hide()
$osd->hide();
Hides the OSD from the screen.