Community of VE/MapPoint Users and Developers
This is a discussion on How to change default map size? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello, I'm... using MapPoint; // obviously In a c# usercontrol constructor, I've got: try { Streets = new ApplicationClass(); BackMap ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| How to change default map size? I'm... using MapPoint; // obviously In a c# usercontrol constructor, I've got: try { Streets = new ApplicationClass(); BackMap = Streets.ActiveMap; } catch (Exception e) { status.Text = "MapPoint not available."; status.Invalidate(); } Then where I want to put a map on the background image of the usercontrol there's this: object save = Clipboard.GetDataObject(); BackMap.GoToLatLong(lati, longi, alti); BackMap.CopyMap(); Image image = Clipboard.GetImage(); Clipboard.SetDataObject(save); this.BackgroundImageLayout = ImageLayout.Stretch; this.BackgroundImage = image; You can see I'm stretching it to fit my usercontrol. The usercontrol is square and I'd rather not modify the nice, clean bitmap output from MapPoint 2004 Object Library. On debugging, I found that image.Width == 776 and image.Height == 700. I've seen a few posts wrt size but the answers all missed the mark. Is there a way to change the returned image size generated by MapPoint? (BTW, I did try to use getpicturefromobject and got the generic exception in GDI+. I used the fromHBitmap method to no avail.) Regards, Guy |
| |||
|
Hi, If I have right understeand what you want is then you can set height and width of the map to height and width of your usercontrol and then copy it.
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| change, default, map, size |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change default color of route (VB6) | andreas | MapPoint 2006/2009 Discussion | 1 | 05-09-2005 05:49 PM |
| Change default road colours | Anonymous | MapPoint 2006/2009 Discussion | 1 | 06-21-2004 04:17 PM |
| How to change the default country setting | neo | MapPoint 2006/2009 Discussion | 6 | 08-13-2003 01:29 PM |
| Change default country | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-30-2002 03:27 PM |
| How do i change the default Line draw width (toolb.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-26-2001 12:39 PM |