Create a black bimap of size(width, height).
(self, width: int = 0, height: int = 0)
| 3014 | A simple Bitmap class wraps Windows GDI+ Gdiplus::Bitmap, but may not have high efficiency. |
| 3015 | """ |
| 3016 | def __init__(self, width: int = 0, height: int = 0): |
| 3017 | """ |
| 3018 | Create a black bimap of size(width, height). |
| 3019 | """ |
| 3020 | self._width = width |
| 3021 | self._height = height |
| 3022 | self._bitmap = 0 |
| 3023 | if width > 0 and height > 0: |
| 3024 | self._bitmap = _DllClient.instance().dll.BitmapCreate(width, height) |
| 3025 | |
| 3026 | def __del__(self): |
| 3027 | self.Release() |