mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-14 12:12:03 +00:00
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:
15
tools/mapcapturemerge/imageHelpers.py
Normal file
15
tools/mapcapturemerge/imageHelpers.py
Normal 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
|
||||
Reference in New Issue
Block a user