예제 #1
0
def main():
    file = 'penguin.gif'
    title = 'Penguin'
    photo = image.Image(file=file, title=title)
    photo_negative = negative(photo)
    photo.show()
    photo_negative.show()
    image.mainloop()
예제 #2
0
def main():
    penguin = image.Image(file='penguin.gif', title='Penguin')
    penguinSmall = reduce(penguin)
    penguinGray = grayscale(penguinSmall)
    penguinRotate1 = rotate90(penguinGray)
    penguinRotate2 = rotate90(penguinRotate1)
    penguinRotate2.show()
    image.mainloop()
def main():
    file = 'penguin.gif'
    title = 'Penguin'
    photo = image.Image(file=file, title=title)
    photo_gray = grayscale(photo)
    photo.show()
    photo_gray.show()
    image.mainloop()
예제 #4
0
def main():
    penguin = image.Image(file='penguin.gif', title='Penguin')
    penguin.show()
    blurpenguin = blur(penguin)
    blurpenguin.show()
    penguinModified = grayscale(penguin)
    penguinModified.show()
    littlepenguin = reduce(penguin)
    littlepenguin.show()
    fourblurPenguin = repeat_blur(penguin, 4)
    fourblurPenguin.show()
    croppedPenguin = crop(penguin, 30, 50, 139, 200)
    croppedPenguin.show()
    brighterpenguin = brighten(penguin, 2)
    brighterpenguin.show()
    image.mainloop()
def main():
    file = 'penguin.gif'
    title = 'Penguin'
    photo = image.Image(file=file, title=title)
    photo_gray = grayscale(photo)
    photo_rotated = rotate_90(photo)
    photo_reduced = reduce(photo)
    photo.show()
    photo_gray.show()

    photo_rotated.show()
    photo_reduced.show()
    image.mainloop()

    # combine grayscale, rotate, and reduce on a single image:
    photo_multi = reduce(photo_gray)
    photo_multi = rotate_90(photo_multi)
    photo_multi = rotate_90(photo_multi)
    photo_multi.show()