Community of VE/MapPoint Users and Developers
This is a discussion on Shapes and rendering speed! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I trying to use MapPoint 2004’s activeX control to plot lat/lon based data which includes color information. I have around ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Shapes and rendering speed! Bryan NOTE: I’m using shapes because it appears to be the only way to keep control of the color. Rendering For Loop for (int i=0; i<num_recs; i++) { MapPoint.Location loc = oMap.GetLocation(lat_data[i], long_data[i], 0); MapPoint.Shape shape = oMap.Shapes.AddShape(MapPoint.GeoAutoShapeType.geo ShapeOval, loc, 6, 6); shape.Line.Visible = false; shape.Fill.Visible = true; Color color = Color.FromArgb(color_data[i]); // Convert from arbg to rgb byte a = 0x00, r=color.R, b=color.B, g=color.G; int rgb_color = ((((a)&0xff)<<24)|(((b)&0xff)<<16)|(((g)&0xff)<< shape.Fill.ForeColor = rgb_color; } |
| |||
|
Before cycle, do GetLocation(0,0,1).Goto (or another location that not have shapes) then zoom to that location so you have only water in the current view (it's better that you make the map unvisible). do your cycle return to your original location make the map visible |
![]() |
| Tags |
| rendering, shapes, speed |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Rendering graphics on top of the MapPoint Control | Anonymous | Development | 2 | 09-12-2007 08:39 AM |
| Optimize Custom Symbol Map Rendering Performance | gkirbo | MapPoint 2006/2009 Discussion | 21 | 05-09-2006 06:21 PM |
| Dataset rendering | Gianmaria | MapPoint 2006/2009 Discussion | 3 | 06-09-2005 02:22 PM |
| Map Rendering | priyands | MapPoint 2006/2009 Discussion | 2 | 01-15-2004 12:05 PM |
| How to speed up MapPoint | Dean | MapPoint 2006/2009 Discussion | 0 | 08-30-2002 10:16 AM |
Flights from Aberdeen
Get great value flights from Aberdeen online at Holiday Hypermarket. Find out all the key Aberdeen Airport information in just a few clicks at Holiday Hypermarket.
Turkey Weather
Check out Turkey Weather - Travel Counsellors details information on Turkey including, weather, flights and accommodation.
Thailand Holidays
Thailand Holidays can suit your budget when you book with dealchecker.co.uk. If you are strapped for cash, visit online to find the deal for you.
Jamaica Holidays
Jamaica holidays give you the chance to enjoy the vibrant cultural heritage and wonderful laid back atmosphere of the Caribbean. Book here!
Turkey
Before booking a holiday to Turkey check out the ULookUBook travel guide. Find out about the rich culture in Turkey before you go there to help you to make the most of your holiday.
Cheap package holidays
Use Travel.co.uk to find the best cheap package holidays available. Have fun and save money at the same time
Cheap Lanzarote Holidays
The Canary Islands beckons you to come! View information on cheap Lanzarote holidays at On The Beach!