MapImage

Set different clickable regions on the image
Download

MapImage Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Markus Stephany
  • Operating Systems:
  • Windows All
  • File Size:
  • 31 KB

MapImage Tags


MapImage Description

The MapImage was developed to be a Delphi-component. TMapImage descends from TImage. The added properties / functions are : - map : tstrings the description strings of the TMI's regions. the syntax for each string: first character : 'r' for a rectangular region 'c' for a round region 'p' for a polygonal region the further contents: ',xxx' for each number 'c' : 3 items (x,y,radius) (e.g. 'c,0,0,100') 'r' : 4 items (left,top,right,bottom) (eg 'r,0,0,80,120') 'p' : 2..500 items (two for each border-point (x,y)) (eg. 'p,50,0,0,100,100,100' for a triangle) if there are 2 or more regions on one point, the region described in the map with the higher index is used. - getmap (x,y:integer) : integer on which region is the coordinate(x,y) ? result : -1 for no region xx for the index of the map-tstrings - MapCursor,NoMapCursor : tcursor the cursor that will be shown if the mouse is / is not on a region (by default : crHand (included index : 39) / crdefault - createregion (x:integer) : hrgn this function will create a windows-region from map and give back the handle. you have to delete the region after the usage with deleteobject (result) by yourself! overlapping regions will be handled correctly.


MapImage Related Software