Quickies

[categories] [index] [all (531)] [latest]

iOS
  1. from PIL import Image
    
    LEFT = 38
    TOP = 146
    WIDTH = 320
    HEIGHT = 460
    
    img = Image.open('sc.png')
    box = (LEFT, TOP, LEFT+WIDTH, TOP+HEIGHT)
    area = img.crop(box)
    
    area.save('sc2.png')