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()
TryDim 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.