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])
| 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 | """ |