PictureInfo.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace PrintSolution
  6. {
  7. public class PictureInfo
  8. {
  9. private string picPath = string.Empty;
  10. public string PicPath
  11. {
  12. get { return picPath; }
  13. set { picPath = value.Contains(":") ? value : AppDomain.CurrentDomain.BaseDirectory + value; }
  14. }
  15. private double picTop = 0;
  16. public double PicTop
  17. {
  18. get { return picTop; }
  19. set { picTop = value; }
  20. }
  21. private double picLeft = 0;
  22. public double PicLeft
  23. {
  24. get { return picLeft; }
  25. set { picLeft = value; }
  26. }
  27. private double picWidth = double.MinValue;
  28. public double PicWidth
  29. {
  30. get { return picWidth; }
  31. set { picWidth = value; }
  32. }
  33. private double picHeight = double.MinValue;
  34. public double PicHeight
  35. {
  36. get { return picHeight; }
  37. set { picHeight = value; }
  38. }
  39. }
  40. }