Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Old methods: translation

$
0
0
 hi,

Dim mapURL As String = "http://maps.googleapis.com/maps/api/staticmap?" & _
                    "center=" & lat & "," & lng & "&" & _
                    "size=500x400&markers=size:mid%7Ccolor:red%7C" & _
                    location & "&zoom=" & zoom & "&maptype=" & mapType & "&sensor=false"

Dim webClient As New WebClient()
Try

Dim imageBytes() As Byte = webClient.DownloadData(mapURL)

Using ms As New MemoryStream(imageBytes) Image.FromStream(ms).Save(saveDialog.FileName, Imaging.ImageFormat.Png) End Using

FromStream method doesn't exist in WPF 4.5 and happen the same with Imaging.ImageFormat.Png

thanks,


Primary platform is Windows 7 Ultimate 64 bit along with VS 2012/Sql2k8 for WPF/SilverLight projects.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>