def test_map_tile_redraw( tile_id = 0x0000): p = PILSurface() p.load('/home/g4b/tmp/map0x%04X.png' % tile_id) art.get_tile( tile_id ) data = art.artmul.image_to_rawtile( p ) print len(data) image = art.artmul.rawtile_data( data ) image.save('/home/g4b/tmp/maptest.png', 'PNG')
def test_art_tile_redraw(): p = PILSurface() p.load('/home/g4b/tmp/uotest/0x3D6B.png') art.get_tile( 0x4000 + 0x3D6B ) data = art.artmul.image_to_runtile( p ) print data image = art.artmul.runtile_data( data ) image.save('/home/g4b/tmp/statictest.png', 'PNG')