Sönmez Reis
Decapat
- Katılım
- 13 Mayıs 2020
- Mesajlar
- 566
- Çözümler
- 3
Kod:
// Open a Stream and decode a JPEG image
Stream imageStreamSource = new FileStream("JPG 16", FileMode.Open, FileAccess.Read, FileShare.Read);
JpegBitmapDecoder decoder = new JpegBitmapDecoder(imageStreamSource, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
BitmapSource bitmapSource = decoder.Frames[0];
// Draw the Image
Image myImage = new Image();
myImage.Source = bitmapSource;
myImage.Stretch = Stretch.None;
myImage.Margin = new Thickness(20);
Bu fotoğrafın kodunu çözmek istiyorum, fakat bu hatayı alıyorum çözümlere baktım uyguladım olmadı, ne yapabilirim?