Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)