Fixes to getFlatIcon and more. (#3353)

(Rebased and reopened #3347)

Attempted to fix pipe and door rendering
Fixed Table, carpet rendering
Ported full map-capture tool from bay, with python script to merge captured images.
This commit is contained in:
Karolis
2017-09-19 15:43:01 +03:00
committed by Erki
parent 82be2f30ad
commit 031b958039
15 changed files with 197 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
from PIL import Image
import re
reg_findnums = re.compile("[0-9]+")
class ImageFile:
def __init__(self, filename, path):
self.filename = path
nums = reg_findnums.findall(filename)
self.cords = (int(nums[0]), int(nums[1]), int(nums[2]))
self.range = int(nums[3])
def getImage(self):
im = Image.open(self.filename)
im.load()
return im