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

Method SetPixelColorsHorizontally

wxauto/uiautomation.py:3184–3195  ·  view source on GitHub ↗

Set pixel colors form x,y horizontally. 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

3182 return values
3183
3184 def SetPixelColorsHorizontally(self, x: int, y: int, colors: Iterable[int]) -> bool:
3185 """
3186 Set pixel colors form x,y horizontally.
3187 x: int.
3188 y: int.
3189 colors: Iterable[int], an iterable list of int color values in argb.
3190 Return bool, True if succeed otherwise False.
3191 """
3192 count = len(colors)
3193 arrayType = ctypes.c_uint32 * count
3194 values = arrayType(*colors)
3195 return _DllClient.instance().dll.BitmapSetPixelsHorizontally(ctypes.c_size_t(self._bitmap), x, y, values, count)
3196
3197 def GetPixelColorsVertically(self, x: int, y: int, count: int) -> ctypes.Array:
3198 """

Callers

nothing calls this directly

Calls 1

instanceMethod · 0.45

Tested by

no test coverage detected