(self, offset, amount, fill=0)
Adds `amount` columns to the pixel array starting at `offset` and fills them with `fill`.
Adds `amount` columns to the pixel array starting at `offset` and fills them with `fill`.
Adds amount columns to the pixel array starting at offset and fills them with fill .
def add_columns(self, offset, amount, fill=0):
        """
        Adds `amount` columns to the pixel array starting at `offset` and fills them with `fill`.
        """
        if not amount:
            return
        start = offset * self.pixelsize
        for i in reversed(range(self.height)):
            line_start = (i * self.line_length) + start
            self.data[line_start:line_start] = array.array(self.data.typecode, [fill] * self.pixelsize * amount)
        self.width += amount
        self._precalculate()
def add_columns ( self , offset , amount , fill = 0 ) : if not amount : return start = offset * self . pixelsize for i in reversed ( range ( self . height ) ) : line_start = ( i * self . line_length ) + start self . data [ line_start : line_start ] = array . array ( self . data . typecode , [ fill ] * self . pixelsize * amount ) self . width += amount self . _precalculate ( )