我在Excel VBA中使用Google Earth API。屏幕截圖以黑白色而不是顏色顯示。請建議我在哪裏做錯了?如何使用Google Earth API拍攝顏色截圖?
Dim ge As earthlib.ApplicationGE
Set ge = New ApplicationGE
Dim kmlString As Variant
kmlString = "C:\temp\test.kmz"
ge.OpenKmlFile (kmlString, 1)
Dim tPlace As earthlib.FeatureGE
Set tPlace = ge.GetTemporaryPlaces
Dim fldrPath As String, jpgName as String
fldrPath = "C:\temp\"
jpgName = fldrPath & "outJpg1.JPG"
ge.SaveScreenShot (jpgName, 100)
恐怕是遠遠不夠的信息,這裏的人來幫助你。您可能會考慮發佈您用來調用API的代碼。 – JimmyPena