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

Method SetPixelColorsVertically

wxauto/uiautomation.py:3209–3220  ·  view source on GitHub ↗

Set pixel colors form x,y vertically. x: int. y: int. colors: Iterable[int], an iterable list of int color values in argb. Return bool, True if succeed otherwise False.

(self, x: int, y: int, colors: Iterable[int])

Source from the content-addressed store, hash-verified

3207 return values
3208
3209 def SetPixelColorsVertically(self, x: int, y: int, colors: Iterable[int]) -> bool:
3210 """
3211 Set pixel colors form x,y vertically.
3212 x: int.
3213 y: int.
3214 colors: Iterable[int], an iterable list of int color values in argb.
3215 Return bool, True if succeed otherwise False.
3216 """
3217 count = len(colors)
3218 arrayType = ctypes.c_uint32 * count
3219 values = arrayType(*colors)
3220 return _DllClient.instance().dll.BitmapSetPixelsVertically(ctypes.c_size_t(self._bitmap), x, y, values, count)
3221
3222 def GetPixelColorsOfRow(self, y: int) -> ctypes.Array:
3223 """

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.45

Tested by

no test coverage detected