def drawBorder(im, dr, cfg):
    u'绘制边框'
    if (not cfg['border-size']):
        return
    (w, h) = im.size
    (x, y) = ((w - 1), (h - 1))
    dr.line([(0, 0), (x, 0), (x, y), (0, y), (0, 0)], width=cfg['border-size'], fill=cfg['border-color'])
绘制边框
def drawBorder(im, dr, cfg):
    u
    if (not cfg['border-size']):
        return
    (w, h) = im.size
    (x, y) = ((w - 1), (h - 1))
    dr.line([(0, 0), (x, 0), (x, y), (0, y), (0, 0)], width=cfg['border-size'], fill=cfg['border-color'])