示例#1
0
def _load_image(full_path, unit):
    if full_path not in LOAD_CACHE:
        LOAD_CACHE[full_path] = Image(img=CachedImage.open(full_path),
                                      unit=unit or 1)
    return LOAD_CACHE[full_path]
示例#2
0
def _load_image(full_path, unit):
    if full_path not in LOAD_CACHE:
        LOAD_CACHE[full_path] = Image(img=CachedImage.open(full_path), unit=unit or 1)
    return LOAD_CACHE[full_path]