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