我正在开发一个程序,可以将图像从URL下载到位图图像并显示它。接下来,我尝试使用jpegbitmapencoder将位图图像保存到硬盘。文件已成功创建,但实际jpeg图像为空或1个黑色像素。publicGuidSavePhoto(stringistrImagePath){ImagePath=istrImagePath;BitmapImageobjImage=newBitmapImage(newUri(istrImagePath,UriKind.RelativeOrAbsolute));PictureDisplayed.Source=objImage;savedCreationObjec