| | | 1 | | using ReFlex.Core.Calibration.Components; |
| | | 2 | | |
| | | 3 | | namespace ReFlex.Server.Data.Config |
| | | 4 | | { |
| | | 5 | | public class FrameSizeDefinition |
| | | 6 | | { |
| | 24 | 7 | | public int Width { get; set; } |
| | | 8 | | |
| | 24 | 9 | | public int Height { get; set; } |
| | | 10 | | |
| | 24 | 11 | | public int Left { get; set; } |
| | | 12 | | |
| | 24 | 13 | | public int Top { get; set; } |
| | | 14 | | |
| | 40 | 15 | | public FrameSizeDefinition() |
| | 40 | 16 | | { |
| | | 17 | | |
| | 40 | 18 | | } |
| | | 19 | | |
| | 0 | 20 | | public FrameSizeDefinition(int width, int height, int left, int top) |
| | 0 | 21 | | { |
| | 0 | 22 | | Width = width; |
| | 0 | 23 | | Height = height; |
| | 0 | 24 | | Left = left; |
| | 0 | 25 | | Top = top; |
| | 0 | 26 | | } |
| | | 27 | | |
| | | 28 | | public FrameSizeDefinition(Calibrator calibrator) |
| | 0 | 29 | | : this (calibrator.Width,calibrator.Height, calibrator.StartX, calibrator.StartY) { |
| | 0 | 30 | | } |
| | | 31 | | |
| | | 32 | | public string GetFrameSizeDefinitionString() |
| | 0 | 33 | | { |
| | 0 | 34 | | var result = |
| | 0 | 35 | | $"{nameof(FrameSizeDefinition)} [{nameof(Top)} | {nameof(Left)} | {nameof(Width)} | {nameof(Height)}]: { |
| | 0 | 36 | | result += $"{Environment.NewLine}"; |
| | | 37 | | |
| | 0 | 38 | | return result; |
| | 0 | 39 | | } |
| | | 40 | | } |
| | | 41 | | } |