CaptureDataEventArgs.cs 870 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. namespace Vinno.vCloud.FIS.Windows
  3. {
  4. public class CaptureDataEventArgs : EventArgs
  5. {
  6. /// <summary>
  7. /// Gets the window's handle which changed.
  8. /// </summary>
  9. public IntPtr WindowHandle { get; }
  10. /// <summary>
  11. /// Gets the image's width.
  12. /// </summary>
  13. public int Width { get; }
  14. /// <summary>
  15. /// Gets the image's height.
  16. /// </summary>
  17. public int Height { get; }
  18. /// <summary>
  19. /// Gets the image's data, should be SRGB format.
  20. /// </summary>
  21. public IntPtr Data { get; }
  22. public CaptureDataEventArgs(IntPtr windowHandle, int width, int height, IntPtr data)
  23. {
  24. WindowHandle = windowHandle;
  25. Width = width;
  26. Height = height;
  27. Data = data;
  28. }
  29. }
  30. }