Crusader_Decomp/tools/create_focused_crop.py
2026-04-12 14:45:08 +02:00

8 lines
240 B
Python

from PIL import Image
IN = r"K:\ghidra\Crusader_Decomp\binary\vram_weapons.png"
OUT = r"K:\ghidra\Crusader_Decomp\binary\crop_weapon_row.png"
box = (80,44,360,92)
img = Image.open(IN)
crop = img.crop(box)
crop.save(OUT)
print('wrote', OUT)