WmfRectRegion.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace WMFConverter.Wmf
  7. {
  8. /// <summary>
  9. /// Windows Metafile - Representes WMF RecRegion object.
  10. /// </summary>
  11. public class WmfRectRegion: WmfObject, Gdi.IGdiRegion
  12. {
  13. #region Local Variables
  14. private int _left;
  15. private int _top;
  16. private int _right;
  17. private int _bottom;
  18. #endregion
  19. #region Properties
  20. /// <summary>
  21. /// Get left value.
  22. /// </summary>
  23. public int Left
  24. {
  25. get
  26. {
  27. return _left;
  28. }
  29. }
  30. /// <summary>
  31. /// Get top value.
  32. /// </summary>
  33. public int Top
  34. {
  35. get
  36. {
  37. return _top;
  38. }
  39. }
  40. /// <summary>
  41. /// Get right value.
  42. /// </summary>
  43. public int Right
  44. {
  45. get
  46. {
  47. return _right;
  48. }
  49. }
  50. /// <summary>
  51. /// Get Bottom value.
  52. /// </summary>
  53. public int Bottom
  54. {
  55. get
  56. {
  57. return _bottom;
  58. }
  59. }
  60. #endregion
  61. #region Constructors
  62. /// <summary>
  63. /// Default constructor.
  64. /// </summary>
  65. /// <param name="id"></param>
  66. /// <param name="left"></param>
  67. /// <param name="top"></param>
  68. /// <param name="right"></param>
  69. /// <param name="bottom"></param>
  70. public WmfRectRegion(int id, int left, int top, int right, int bottom)
  71. :base(id)
  72. {
  73. _left = left;
  74. _top = top;
  75. _right = right;
  76. _bottom = bottom;
  77. }
  78. #endregion
  79. }
  80. }