MCPcopy
hub / github.com/cluic/wxauto / __init__

Method __init__

wxauto/uiautomation.py:3016–3024  ·  view source on GitHub ↗

Create a black bimap of size(width, height).

(self, width: int = 0, height: int = 0)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.45

Tested by

no test coverage detected