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

Method SetPixelColor

wxauto/uiautomation.py:3162–3170  ·  view source on GitHub ↗

Set color value of a pixel. x: int. y: int. argb: int, color value. Return bool, True if succeed otherwise False.

(self, x: int, y: int, argb: int)

Source from the content-addressed store, hash-verified

3160 return _DllClient.instance().dll.BitmapGetPixel(self._bitmap, x, y)
3161
3162 def SetPixelColor(self, x: int, y: int, argb: int) -> bool:
3163 """
3164 Set color value of a pixel.
3165 x: int.
3166 y: int.
3167 argb: int, color value.
3168 Return bool, True if succeed otherwise False.
3169 """
3170 return _DllClient.instance().dll.BitmapSetPixel(self._bitmap, x, y, argb)
3171
3172 def GetPixelColorsHorizontally(self, x: int, y: int, count: int) -> ctypes.Array:
3173 """

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.45

Tested by

no test coverage detected