Set different clickable regions on the image #Delphi Component #Image Region #Map Image #Delphi #Component #Image
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[xx] 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[x] 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.
System requirements
- Delphi 3.0
What's new in MapImage 1.1:
- procedure OffsetMap ( Index , dX , dY : Integer ) : modifies the index'st region 's position by dx and dy
- function GetMapAtCursorPos : Integer : returns the map under the current cursor position ( -1, if none )
- function GetDescription ( Index : Integer ) : string : e.g. if a map-entry is "c,0,30,100,this here", then this function returns "this here"
- procedure SetDescription ( Index : Integer ; Value : string ) : sets a new description for the index'st region
MapImage 1.1
add to watchlist add to download basket send us an update REPORT- runs on:
- Windows All
- file size:
- 31 KB
- filename:
- mapimg.zip
- main category:
- Programming
- developer:
- visit homepage
Bitdefender Antivirus Free
Microsoft Teams
7-Zip
ShareX
4k Video Downloader
Context Menu Manager
Zoom Client
Windows Sandbox Launcher
calibre
IrfanView
- Windows Sandbox Launcher
- calibre
- IrfanView
- Bitdefender Antivirus Free
- Microsoft Teams
- 7-Zip
- ShareX
- 4k Video Downloader
- Context Menu Manager
- Zoom Client