Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

pan problem.

This is a discussion on pan problem. within the MapPoint Desktop Discussion forums, part of the Map Forums category; I export a bmp of map by using the clipboard.. My clipboard exporting is calibrated by using a centerLocation. First ...

  1. #1
    PeppeM is offline Junior Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    13

    pan problem.

    I export a bmp of map by using the clipboard..


    My clipboard exporting is calibrated by using a centerLocation.
    First i do centerLocation.goTo();
    Then I export image from a clipboard.

    I wish to use this mechanism to export adiacent map section(N,E,W,S), by panning exactly (with same altitude, width and height) in a adiacent zone.

    Finally by create a new bigimage i compose the final image.
    (map web page exporting is good(3500pixelX3500pixel) but not for my work!)

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    I dont understeand the problem, but what is adiacent ? (Sorry English is not my native language).

  3. #3
    PeppeM is offline Junior Member Yellow Belt
    Join Date
    Apr 2006
    Posts
    13
    Excuse me for my bad english.

    adjacent == close

    An example for explain better my problem (I hope ).

    Imagine a big virtual desktop on your pc (1000x1000pixel).
    You have only a real resolution of 500x500 pixel.

    You have with c# language the possibilty of capture a screenshot of your real desktop 500x500.
    But you want a screenshot of the entire big virtual desktop 2000x2000. so you must capture 4 screenshot 500x500 adjacent and then paste it and obtain a big desktop screenshot.

    I capture the first square [0,0 500,500]
    I have a method in c# that also permits to pan the destkop so I can move the screen left to 500pixel. I capture the second [500,0,1000,500]
    and so on with third and fourth

    My problem is analogous, with mappoint 2004 activeX.

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    I think I understeand now.

    First goto the location with zoom level of complete view. then create 4 Location objects with XYToLocation for you top/left, top/right, bottom/left, bottom/right views. You can calculate them according to the Width and Height properites. Then zoom to the level where you have just 1/4 of the screen (dont know the zoom factor to calculate but with some investigation should be possible). Then Goto the 4 locations with the right zoom level.

    Is that making sence ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96