Get color value of a pixel. x: int. y: int. Return int, argb color. b = argb & 0x0000FF g = (argb & 0x00FF00) >> 8 r = (argb & 0xFF0000) >> 16 a = (argb & 0xFF0000) >> 24
(self, x: int, y: int)
| 3147 | return bool(_DllClient.instance().dll.BitmapToFile(self._bitmap, ctypes.c_wchar_p(savePath), ctypes.c_wchar_p(gdiplusImageFormat))) |
| 3148 | |
| 3149 | def GetPixelColor(self, x: int, y: int) -> int: |
| 3150 | """ |
| 3151 | Get color value of a pixel. |
| 3152 | x: int. |
| 3153 | y: int. |
| 3154 | Return int, argb color. |
| 3155 | b = argb & 0x0000FF |
| 3156 | g = (argb & 0x00FF00) >> 8 |
| 3157 | r = (argb & 0xFF0000) >> 16 |
| 3158 | a = (argb & 0xFF0000) >> 24 |
| 3159 | """ |
| 3160 | return _DllClient.instance().dll.BitmapGetPixel(self._bitmap, x, y) |
| 3161 | |
| 3162 | def SetPixelColor(self, x: int, y: int, argb: int) -> bool: |
| 3163 | """ |