This is a migrated thread and some comments may be shown as answers.

How to resize the imagesource in MapPinPoint

1 Answer 154 Views
Map
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 25 Feb 2015, 11:18 AM
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
                };

Thanks 

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 26 Feb 2015, 09:51 AM
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%.

Regards,
Pavel R. Pavlov
Telerik
 

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.

 
Tags
Map
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or