summaryrefslogtreecommitdiff
path: root/osd.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-04 15:53:47 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-04 15:53:47 +0100
commitfc0094231d3f803869b8a03f449092b9464b2c21 (patch)
tree3c9acf86af44d5fcb2cb4eb515344b1d3e8d6363 /osd.h
parentaacdeba5d9591a8afc5f2e0e008a3b3b9dfc3bba (diff)
downloadvdr-fc0094231d3f803869b8a03f449092b9464b2c21.tar.gz
vdr-fc0094231d3f803869b8a03f449092b9464b2c21.tar.bz2
Added cOsd::DrawScaledBitmap()
Diffstat (limited to 'osd.h')
-rw-r--r--osd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/osd.h b/osd.h
index 4eaef96d..8c262451 100644
--- a/osd.h
+++ b/osd.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.h 3.2 2013/09/06 12:13:47 kls Exp $
+ * $Id: osd.h 3.3 2015/01/04 15:51:03 kls Exp $
*/
#ifndef __OSD_H
@@ -885,6 +885,11 @@ public:
///< If Overlay is true, any pixel in Bitmap that has color index 0 will
///< not overwrite the corresponding pixel in the target area.
///< If this is a true color OSD, ReplacePalette has no meaning.
+ virtual void DrawScaledBitmap(int x, int y, const cBitmap &Bitmap, double FactorX, double FactorY, bool AntiAlias = false);
+ ///< Sets the pixels in the OSD with the data from the given Bitmap, putting
+ ///< the upper left corner of the Bitmap at (x, y) and scaled by the given
+ ///< factors. If AntiAlias is true and either of the factors is greater than
+ ///< 1.0, anti-aliasing is applied.
virtual void DrawText(int x, int y, const char *s, tColor ColorFg, tColor ColorBg, const cFont *Font, int Width = 0, int Height = 0, int Alignment = taDefault);
///< Draws the given string at coordinates (x, y) with the given foreground
///< and background color and font. If Width and Height are given, the text