pcServicePhoto.cs 659 B

123456789101112131415161718192021222324252627
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.IO;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows.Media.Imaging;
  9. namespace school
  10. {
  11. public partial class ServicePhoto
  12. {
  13. public BitmapImage Img
  14. {
  15. get
  16. {
  17. BitmapImage BI = new BitmapImage();
  18. BI.BeginInit();
  19. BI.StreamSource = new MemoryStream(PhotoPath);
  20. BI.EndInit();
  21. System.Windows.Controls.Image img = new System.Windows.Controls.Image();
  22. return BI;
  23. }
  24. }
  25. }
  26. }