ImageCrop.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. namespace Ryujinx.Graphics.GAL
  2. {
  3. public readonly struct ImageCrop
  4. {
  5. public int Left { get; }
  6. public int Right { get; }
  7. public int Top { get; }
  8. public int Bottom { get; }
  9. public bool FlipX { get; }
  10. public bool FlipY { get; }
  11. public bool IsStretched { get; }
  12. public float AspectRatioX { get; }
  13. public float AspectRatioY { get; }
  14. public ImageCrop(
  15. int left,
  16. int right,
  17. int top,
  18. int bottom,
  19. bool flipX,
  20. bool flipY,
  21. bool isStretched,
  22. float aspectRatioX,
  23. float aspectRatioY)
  24. {
  25. Left = left;
  26. Right = right;
  27. Top = top;
  28. Bottom = bottom;
  29. FlipX = flipX;
  30. FlipY = flipY;
  31. IsStretched = isStretched;
  32. AspectRatioX = aspectRatioX;
  33. AspectRatioY = aspectRatioY;
  34. }
  35. }
  36. }