WmfPen.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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 - Represents WMF Pen object.
  10. /// </summary>
  11. class WmfPen: WmfObject,Gdi.IGdiPen
  12. {
  13. #region Local Variables
  14. private int _style;
  15. private int _width;
  16. private int _color;
  17. #endregion
  18. #region Properties
  19. /// <summary>
  20. /// Object style.
  21. /// </summary>
  22. public int Style
  23. {
  24. get
  25. {
  26. return _style;
  27. }
  28. }
  29. /// <summary>
  30. /// Object width.
  31. /// </summary>
  32. public int Width
  33. {
  34. get
  35. {
  36. return _width;
  37. }
  38. }
  39. /// <summary>
  40. /// Object color.
  41. /// </summary>
  42. public int Color
  43. {
  44. get
  45. {
  46. return _color;
  47. }
  48. }
  49. #endregion
  50. #region Constructors
  51. /// <summary>
  52. /// Default constructor.
  53. /// </summary>
  54. /// <param name="id"></param>
  55. /// <param name="style"></param>
  56. /// <param name="width"></param>
  57. /// <param name="color"></param>
  58. public WmfPen(int id, int style, int width, int color)
  59. : base(id)
  60. {
  61. }
  62. #endregion
  63. }
  64. }