How to resize the imagesource in MapPinPoint

2 posts, 0 answers
  1. Sanjay
    Sanjay avatar
    21 posts
    Member since:
    Jun 2014

    Posted 25 Feb 2015 Link to this post

    Hi There

    How can I resize the imagesource in MapPinPoint.The actual image size is big enough to display on Map.How ImageScale works..

    MapPinPoint pinPoint = new MapPinPoint()
                        ImageSource = new BitmapImage(new Uri("/CORE;component/WPF/ic_car.png", UriKind.RelativeOrAbsolute))
                        ImageScale = 1.2

  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1236 posts

    Posted 26 Feb 2015 Link to this post

    Hi Sanjay,

    The ImageScale property is used to apply to the image of the MapPinPoint a ScaleTransform. Its default value is 1. This means that by default the image set to the pin point will not be scaled. If you set it to 1.2 it means your image will be enlarged by 20%.

    Pavel R. Pavlov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top