(self, offset, amount)
Removes `amount` columns from the pixel array starting at column `offset`.
Removes `amount` columns from the pixel array starting at column `offset`.
Removes amount columns from the pixel array starting at column offset .
def remove_columns(self, offset, amount):
        """
        Removes `amount` columns from the pixel array starting at column `offset`.
        """
        if not amount:
            return
        start = offset * self.pixelsize
        end = start + (amount * self.pixelsize)
        # reversed is used because otherwise line_start would be all messed up.
        for i in reversed(range(self.height)):
            line_start = i * self.line_length
            del self.data[line_start+start:line_start+end]
        self.width -= amount
        self._precalculate()
def remove_columns ( self , offset , amount ) : if not amount : return start = offset * self . pixelsize end = start + ( amount * self . pixelsize ) # reversed is used because otherwise line_start would be all messed up. for i in reversed ( range ( self . height ) ) : line_start = i * self . line_length del self . data [ line_start + start : line_start + end ] self . width -= amount self . _precalculate ( )