source/dcm_transform.py
def draw_pixel(self, pos_x, width, xstep, pos_y, height, ystep, val, alpha=1.0):
        """Set a pixel buffer value val at x, y to x+w, y+h with an xstep and ystep increments """
        for col in range(int(pos_x), int(pos_x + width), xstep):
            for row in range(int(pos_y), int(pos_y + height), ystep):
                #            print(col, row)
                orig = self.pixel_buffer[row, col] * (1 - alpha)
                new = val * alpha
                blend = orig + new
                self.pixel_buffer[row, col] = blend
Set a pixel buffer value val at x, y to x+w, y+h with an xstep and ystep increments 
Set a pixel buffer value val at x, y to x+w, y+h with an xstep and ystep increments
Set a pixel buffer value val at x y to x + w y + h with an xstep and ystep increments
def draw_pixel(self, pos_x, width, xstep, pos_y, height, ystep, val, alpha=1.0):
        for col in range(int(pos_x), int(pos_x + width), xstep):
            for row in range(int(pos_y), int(pos_y + height), ystep):
                orig = self.pixel_buffer[row, col] * (1 - alpha)
                new = val * alpha
                blend = orig + new
                self.pixel_buffer[row, col] = blend
def draw_pixel ( self , pos_x , width , xstep , pos_y , height , ystep , val , alpha = 1.0 ) : for col in range ( int ( pos_x ) , int ( pos_x + width ) , xstep ) : for row in range ( int ( pos_y ) , int ( pos_y + height ) , ystep ) : orig = self . pixel_buffer [ row , col ] * ( 1 - alpha ) new = val * alpha blend = orig + new self . pixel_buffer [ row , col ] = blend
Set a pixel buffer value val at x, y to x+w, y+h with an xstep and ystep increments
Set a pixel buffer value val at x y to x + w y + h with an xstep and ystep increments
"""Set a pixel buffer value val at x, y to x+w, y+h with an xstep and ystep increments """ #            print(col, row)
self
pos_x
width
xstep
pos_y
height
ystep
val
alpha