WmfBrush.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 Brush object.
  10. /// </summary>
  11. public class WmfBrush : WmfObject, Gdi.IGdiBrush
  12. {
  13. #region Local Variables
  14. private int _style;
  15. private int _color;
  16. private int _hatch;
  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 Color.
  31. /// </summary>
  32. public int Color
  33. {
  34. get
  35. {
  36. return _color;
  37. }
  38. }
  39. /// <summary>
  40. /// Object Hatch.
  41. /// </summary>
  42. public int Hatch
  43. {
  44. get
  45. {
  46. return _hatch;
  47. }
  48. }
  49. /// <summary>
  50. /// Default Constructor
  51. /// </summary>
  52. /// <param name="id"></param>
  53. /// <param name="style"></param>
  54. /// <param name="color"></param>
  55. /// <param name="hatch"></param>
  56. public WmfBrush(int id, int style, int color, int hatch)
  57. :base (id)
  58. {
  59. _style = style;
  60. _color = color;
  61. _hatch = hatch;
  62. }
  63. #endregion
  64. }
  65. }