MADRIX Forum • MapDlgGetMapPixel()
Page 1 of 1

MapDlgGetMapPixel()

Posted: Tue Apr 01, 2014 12:20 am
by pjveltri
How does one use MapDlgPixelGetMapPixel() to give the x,y,w & h a starting value?

I'm trying to post it into an int named x and am unable how to figure out how to use it at all!

Help Please!
PJ

Re: MapDlgGetMapPixel()

Posted: Tue Apr 01, 2014 9:28 am
by Guertler
Hello pjveltri,
.
To give a start value for the map you have to use the script function: "MapDlgSetMapPixel(int x, int y, int w, int h)" These function allows you to set the start possiton for X- and Y-coordinate, the width (Size X) and the height (Size Y) for the map.
.
If you use the MapDlgGetMapPixel(int map[]) function you will get the current mapping setting for the layer with the positions (X- and Y-coordinate), the width and the height. Please pay attention: the values will be saved in an interger field.
.
If you have any further questions, please do not hesitate to contact us again!
Thank you.