Esempio n. 1
0
def build_image(items):
    r = get_bbox(items)
    x, y, w, h = r.getRect()
    print("Assemble test1:", w, "x", h)
    dest = assemble_imageitems(items, r, w, h)
    print("saving...")
    save_image("test1.png", dest)

    print("Assemble test2:", w / 4, "x", h / 4)
    dest = assemble_imageitems(items, r, w / 4, h / 4)
    save_image("test2.png", dest)
Esempio n. 2
0
def build_image(items):
    r = get_bbox(items)
    x, y, w, h = r.getRect()
    print("Assemble test1:", w, "x", h)
    dest = assemble_imageitems(items, r, w, h)
    print("saving...")
    save_image("test1.png", dest)
    
    print("Assemble test2:", w/4, "x", h/4)
    dest = assemble_imageitems(items, r, w/4, h/4)
    save_image("test2.png", dest)
Esempio n. 3
0
def build_image(items):
    r = get_bbox(items)
    x, y, w, h = r.getRect()
    print("-" * 80)
    print("Assemble test1:", w, "x", h)
    dest = assemble_imageitems(items, r, w, h)
    save_image("test1", dest)
    print("-" * 80)
    print("Assemble test2:", w / 4, "x", h / 4)
    dest = assemble_imageitems(items, r, w / 4, h / 4)
    save_image("test2", dest)
    print("-" * 80)
Esempio n. 4
0
def build_image(items):
    r = get_bbox(items)
    x, y, w, h = r.getRect()
    print("-"*80)
    print("Assemble test1:", w, "x", h)
    dest = assemble_imageitems(items, r, w, h)
    save_image("test1", dest)
    print("-"*80)
    print("Assemble test2:", w/4, "x", h/4)
    dest = assemble_imageitems(items, r, w/4, h/4)
    save_image("test2", dest)
    print("-"*80)