MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




How to change default map size?

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-31-2005
Junior Member
White Belt
 
Join Date: Jul 2005
Posts: 1
How to change default map size?

Hello,

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 08-13-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
change, default, map, size


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Change default color of route (VB6) andreas MapPoint 2006/2009 Discussion 1 05-09-2005 04:49 PM
Change default road colours Anonymous MapPoint 2006/2009 Discussion 1 06-21-2004 03:17 PM
How to change the default country setting neo MapPoint 2006/2009 Discussion 6 08-13-2003 12:29 PM
Change default country Anonymous MapPoint 2006/2009 Discussion 1 12-30-2002 02:27 PM
How do i change the default Line draw width (toolb.... Anonymous MapPoint 2006/2009 Discussion 1 12-26-2001 11:39 AM


All times are GMT -5. The time now is 12:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Thassos Holidays
Visit an unspoilt and beautiful Greek island with Thassos holidays available through UlookUbook.



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