(cls, data, width, height)
return cls(data, monitor)
Instantiate a new class given only screen shot's data and size.
Instantiate a new class given only screen shot's data and size.
Instantiate a new class given only screen shot s data and size .
def from_size(cls, data, width, height):
        # type: (bytearray, int, int) -> ScreenShot
        """ Instantiate a new class given only screen shot's data and size. """

        monitor = {"left": 0, "top": 0, "width": width, "height": height}
        return cls(data, monitor)
def from_size ( cls , data , width , height ) : # type: (bytearray, int, int) -> ScreenShot monitor = { "left" : 0 , "top" : 0 , "width" : width , "height" : height } return cls ( data , monitor )