def make_all_map
all_map = RPG::Cache.icon("地图" + $game_map.map_id.to_s)
cw = $game_map.width * 32
ch = $game_map.height * 32
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(0 , 0, all_map, src_rect)
w = ($game_map.width / PLAN_Map_Window::ZOOM) * 32
h = ($game_map.height / PLAN_Map_Window::ZOOM) * 32
ret_bitmap = Bitmap.new(w, h)
src_rect = Rect.new(0, 0, all_map.width, all_map.height)
dest_rect = Rect.new(0, 0, ret_bitmap.width, ret_bitmap.height)
ret_bitmap.stretch_blt(dest_rect, all_map, src_rect)
all_map.dispose
return ret_bitmap
end
def make_all_map
all_map = RPG::Cache.icon("地图" + $game_map.map_id.to_s)
cw = $game_map.width * 32
ch = $game_map.height * 32
src_rect = Rect.new(0, 0, cw, ch)
self.contents.blt(0 , 0, all_map, src_rect)
w = ($game_map.width / PLAN_Map_Window::ZOOM) * 32
h = ($game_map.height / PLAN_Map_Window::ZOOM) * 32
ret_bitmap = Bitmap.new(w, h)
src_rect = Rect.new(0, 0, all_map.width, all_map.height)
dest_rect = Rect.new(0, 0, ret_bitmap.width, ret_bitmap.height)
ret_bitmap.stretch_blt(dest_rect, all_map, src_rect)
all_map.dispose
return ret_bitmap
end