| | | 1 | | // <auto-generated> |
| | | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | | 4 | | // license information. |
| | | 5 | | // |
| | | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | | 8 | | // regenerated. |
| | | 9 | | // </auto-generated> |
| | | 10 | | |
| | | 11 | | namespace Microsoft.Azure.CognitiveServices.Vision.ComputerVision.Models |
| | | 12 | | { |
| | | 13 | | using Newtonsoft.Json; |
| | | 14 | | using System.Linq; |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// A bounding box for an area inside an image. |
| | | 18 | | /// </summary> |
| | | 19 | | public partial class BoundingRect |
| | | 20 | | { |
| | | 21 | | /// <summary> |
| | | 22 | | /// Initializes a new instance of the BoundingRect class. |
| | | 23 | | /// </summary> |
| | 18 | 24 | | public BoundingRect() |
| | | 25 | | { |
| | | 26 | | CustomInit(); |
| | 18 | 27 | | } |
| | | 28 | | |
| | | 29 | | /// <summary> |
| | | 30 | | /// Initializes a new instance of the BoundingRect class. |
| | | 31 | | /// </summary> |
| | | 32 | | /// <param name="x">X-coordinate of the top left point of the area, in |
| | | 33 | | /// pixels.</param> |
| | | 34 | | /// <param name="y">Y-coordinate of the top left point of the area, in |
| | | 35 | | /// pixels.</param> |
| | | 36 | | /// <param name="w">Width measured from the top-left point of the area, |
| | | 37 | | /// in pixels.</param> |
| | | 38 | | /// <param name="h">Height measured from the top-left point of the |
| | | 39 | | /// area, in pixels.</param> |
| | 0 | 40 | | public BoundingRect(int x = default(int), int y = default(int), int w = default(int), int h = default(int)) |
| | | 41 | | { |
| | 0 | 42 | | X = x; |
| | 0 | 43 | | Y = y; |
| | 0 | 44 | | W = w; |
| | 0 | 45 | | H = h; |
| | | 46 | | CustomInit(); |
| | 0 | 47 | | } |
| | | 48 | | |
| | | 49 | | /// <summary> |
| | | 50 | | /// An initialization method that performs custom operations like setting defaults |
| | | 51 | | /// </summary> |
| | | 52 | | partial void CustomInit(); |
| | | 53 | | |
| | | 54 | | /// <summary> |
| | | 55 | | /// Gets or sets x-coordinate of the top left point of the area, in |
| | | 56 | | /// pixels. |
| | | 57 | | /// </summary> |
| | | 58 | | [JsonProperty(PropertyName = "x")] |
| | 30 | 59 | | public int X { get; set; } |
| | | 60 | | |
| | | 61 | | /// <summary> |
| | | 62 | | /// Gets or sets y-coordinate of the top left point of the area, in |
| | | 63 | | /// pixels. |
| | | 64 | | /// </summary> |
| | | 65 | | [JsonProperty(PropertyName = "y")] |
| | 30 | 66 | | public int Y { get; set; } |
| | | 67 | | |
| | | 68 | | /// <summary> |
| | | 69 | | /// Gets or sets width measured from the top-left point of the area, in |
| | | 70 | | /// pixels. |
| | | 71 | | /// </summary> |
| | | 72 | | [JsonProperty(PropertyName = "w")] |
| | 30 | 73 | | public int W { get; set; } |
| | | 74 | | |
| | | 75 | | /// <summary> |
| | | 76 | | /// Gets or sets height measured from the top-left point of the area, |
| | | 77 | | /// in pixels. |
| | | 78 | | /// </summary> |
| | | 79 | | [JsonProperty(PropertyName = "h")] |
| | 30 | 80 | | public int H { get; set; } |
| | | 81 | | |
| | | 82 | | } |
| | | 83 | | } |