I'm working on a small image editor with python and I am getting blank rows in my test pictures. Can someone look over my code and give some advice?
def expand_height(picture, factor): height= media.get_height(pic) #width=media.get_width(pic) new_height=height*factor newpic=media.create_picture(media.get_width(pic), new_height, media.black) for pix in pic: x = media.get_x(pix) y = media.get_y(pix) newpixel = media.get_pixel(newpic, x, (y*factor) ) new_red = newpixel.get_red() + media.get_red (pix) #new_blue = newpixel.get_blue() + media.get_blue (pix) #new_green = newpixel.get_green() + media.get_green (pix) media.set_red(newpixel, new_red) #media.set_green(newpixel, new_green) #media.set_blue(newpixel, new_blue) I know this is not with the normal python media package so some wont have these functions, but I need advice/help on the algorithm's structure. Help me fill these blank rows! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.