Custom Map Shortest Path
<p>I have a custom map designed in Illustrator .
I need to find shortest path beetween two places in Map and i should highlight the path.The Map is designed in such a way that Roads are represented by yellow lines,Houses by Red,Grass by green,water by blue. Map size is 2000 X 3000 pixels resolution.</p>

<p>To find Shortest path I planned to implement A* Algorithm.</p>

<p>The problem is how do i access my graphic map in my code ? Do i need take a array of size 2000x3000  metioning which pixels has road , water ,building.To represent them i thought assigning values road by 1 , water by 2 , houses by 3. But i think it is a complicated  and long process.</p>

<p>Is there any other solution ?</p>
