UriSrouce에서 BitmaImage를 만들고 WPF 응용 프로그램에서 인쇄해야합니다. 다음 코드를 사용하여 나는 이미지를 인쇄 할 수 있어요 :BitmapImage를 사용하여 원격 서버에서 UriSource를 설정하는 방법은 무엇입니까?
Image imgVoucher = new Image();
BitmapImage bImgVoucher = new BitmapImage();
bImgVoucher.BeginInit();
bImgVoucher.UriSource = new Uri(@"C:\logo-1.png", UriKind.Absolute); // Print ok
bImgVoucher.EndInit();
imgVoucher.Source = bImgVoucher;
같은 코드와 같은 이미지 만 UriSource와 웹 서버를 가리키는과 이미지가 인쇄되지 않고 오류가 발생하지 않습니다. 어떤 생각인지 내가 뭘 잘못 했니?
Image imgVoucher = new Image();
BitmapImage bImgVoucher = new BitmapImage();
bImgVoucher.BeginInit();
bImgVoucher.UriSource = new Uri("http://123123.com/logo.png", UriKind.Absolute); // Does not print
bImgVoucher.EndInit();
imgVoucher.Source = bImgVoucher;
브라우저에서 사진을로드 할 수 있습니다. – GibboK