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 2 of 2

I need to use my own JPG image as a symbol

This is a discussion on I need to use my own JPG image as a symbol within the MapPoint Desktop Discussion forums, part of the Map Forums category; Greetings, Perhaps I've asked a similar question before. Sorry if I have. I need to use my own image file ...

  1. #1
    BobFromBoston is offline Senior Member Green Belt
    Join Date
    Jul 2005
    Posts
    128

    I need to use my own JPG image as a symbol

    Greetings,

    Perhaps I've asked a similar question before. Sorry if I have.

    I need to use my own image file as a symbol on my MapPoint map. So far, I know how to use a MapPointSymbol, which is a short, and which corresponds to an image in the Symbols list. But I need to replace that with my own jpg or bmp image.

    Is this possible with MapPoint ActiveX??

    Thanks.

  2. #2
    Eric Frost's Avatar
    Eric Frost is offline Administrator Black Belt
    Join Date
    Jul 1992
    Posts
    5,094
    Blog Entries
    4
    Yes.. just load in your own custom symbol.

    Through the interface on the drawing tool you would import custom symbol.

    Programmatically you use the Add method --

    Add method (Symbols)
    Adds a .bmp, .ico, or .cur file to the Symbols collection. Returns the newly created Symbol object.

    Note that you have to convert your jpg to a bmp (ico or cur).

    Here is the example from the help file --

    Sub ImportCustomSymbol()

    Dim objApp As New MapPoint.Application
    Dim objMap As MapPoint.Map
    Dim objPin As MapPoint.Pushpin
    Dim objSymbol As MapPoint.Symbol

    'Set up the application
    Set objMap = objApp.ActiveMap
    objApp.Visible = True
    objApp.UserControl = True

    'Add a Pushpin to the map
    Set objPin = objMap.AddPushpin(objMap.FindResults("Seattle, WA")(1))

    'Get a new symbol and change the symbol of the Pushpin on the map
    Set objSymbol = objMap.Symbols.Add(objApp.Path + "\Samples\CAirport.bmp")
    objPin.Symbol = objSymbol.ID

    End Sub
    ~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
    ~~
    ~ Upgrade to Get Access to the MapForums Downloads ~

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Save map as image
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 12-28-2012, 09:16 AM
  2. Using a mappoint image
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 03-16-2005, 10:04 AM
  3. MP web services image quality, can we improve image quality?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-08-2005, 10:54 AM
  4. Different image size
    By webjagger in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-24-2004, 08:14 AM
  5. Retriving an image
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-27-2003, 08:42 PM

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