def DrawDecoration(self, dc, bounds, block):
        """
        Draw the decoration
        """
        dc.SetFont(self.font)
        dc.SetTextForeground(self.color)

        # Rotate the text around the center of the page
        cx, cy = RectUtils.Center(bounds)
        w, h = dc.GetTextExtent(self.text)

        x = cx - w/2
        y = cy - h/2 + (w/2 * math.sin(math.radians(self.angle)))

        dc.DrawRotatedText(self.text, x, y, self.angle)

#----------------------------------------------------------------------------
dataset/ETHPy150Open ODM2/ODMToolsPython/odmtools/lib/ObjectListView/ListCtrlPrinter.py/WatermarkDecoration.DrawDecoration/original