Example #1
0
def BuildBack(card_list, page_num, page_width, page_height, workspace_path):
    back_list = []
    for i in range(0, page_height):
        for j in range(1, page_width + 1):
            back_list.append(card_list[(i + 1) * page_width - j])

    PIL_Helper.BuildPage(
        back_list, page_width, page_height,
        os.path.join(workspace_path, "backs_{0:>03}.png".format(page_num)))
Example #2
0
def BuildPage(card_list, page_num, page_width, page_height, workspace_path):
    PIL_Helper.BuildPage(
        card_list, page_width, page_height,
        os.path.join(workspace_path, "page_{0:>03}.png".format(page_num)))
Example #3
0
def BuildPage(card_list,
              page_num,
              page_width=PAGE_WIDTH,
              page_height=PAGE_HEIGHT):
    PIL_Helper.BuildPage(card_list, page_width, page_height,
                         r"page_{0:>03}.png".format(page_num))