(self)
return {
            "version": 3,
            "shape": (self.height, self.width, 4),
            "typestr": "|u1",
            "data": self.raw,
        }
Numpy array interface support.
        It uses raw data in BGRA form.

        See https://docs.scipy.org/doc/numpy/reference/arrays.interface.html
Numpy array interface support.
        It uses raw data in BGRA form.
Numpy array interface support . It uses raw data in BGRA form .
def __array_interface__(self):
        # type: () -> Dict[str, Any]
        """
        Numpy array interface support.
        It uses raw data in BGRA form.

        See https://docs.scipy.org/doc/numpy/reference/arrays.interface.html
        """

        return {
            "version": 3,
            "shape": (self.height, self.width, 4),
            "typestr": "|u1",
            "data": self.raw,
        }
def __array_interface__ ( self ) : # type: () -> Dict[str, Any] return { "version" : 3 , "shape" : ( self . height , self . width , 4 ) , "typestr" : "|u1" , "data" : self . raw , }