Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BitmapUserArea(GeUserArea):
- def __init__(self, bitmap, drawmode = c4d.BMP_NORMAL | c4d.BMP_ALLOWALPHA):
- self.bmp = bitmap
- self.drwmode = drawmode
- def SetDrawmode(self, mode):
- self.drwmode = drawmode
- def SetBitmap(self, bmp):
- self.bmp = bmp
- def GetBitmap(self):
- return self.bmp
- def GetDrawmode(self):
- return self.drwmode
- def DrawMsg(self, x1, y1, x2, y2, msg):
- width, height = self.bmp.GetBw(), self.bmp.GetBh()
- self.DrawBitmap(self.bmp, 0, 0, width, height, x1, y1, width, height, self.drwmode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement