(self, padding_top, padding_left, image)
Puts the image given on top of this image with the given padding
Puts the image given on top of this image with the given padding
Puts the image given on top of this image with the given padding
def blit(self, padding_top, padding_left, image):
        """
        Puts the image given on top of this image with the given padding
        """
        # there *must* be a better/faster way to do this:
        # TODO: check that palettes etc match.
        # TODO: fastpath this by copying the array if pixelsize is identical/palette is the same
        for x in range(min([image.width, self.width - padding_left])):
            for y in range(min([image.height, self.height- padding_top])):
                self.set_color(padding_left + x, padding_top + y, image.get_color(x, y))
def blit ( self , padding_top , padding_left , image ) : # there *must* be a better/faster way to do this: # TODO: check that palettes etc match. # TODO: fastpath this by copying the array if pixelsize is identical/palette is the same for x in range ( min ( [ image . width , self . width - padding_left ] ) ) : for y in range ( min ( [ image . height , self . height - padding_top ] ) ) : self . set_color ( padding_left + x , padding_top + y , image . get_color ( x , y ) )