def file_to_img(width, height, filename):
# Do a check for file type
im = Image.open(filename).convert('RGBA')
im = im.resize((Settings.actualWidth, Settings.height), Image.NEAREST)
return im
# Takes index as an input at returns all indices for the character that index contains
评论列表
文章目录