Last change
on this file since 28896 was 28896, checked in by davidb, 10 years ago |
Core Web Server that connects to the Kinect device
|
File size:
1.7 KB
|
Line | |
---|
1 | // -----------------------------------------------------------------------
|
---|
2 | // <copyright file="ImageHeaderStreamMessage.cs" company="Microsoft">
|
---|
3 | // Copyright (c) Microsoft Corporation. All rights reserved.
|
---|
4 | // </copyright>
|
---|
5 | // -----------------------------------------------------------------------
|
---|
6 |
|
---|
7 | namespace Microsoft.Samples.Kinect.Webserver.Sensor.Serialization
|
---|
8 | {
|
---|
9 | using System.Diagnostics.CodeAnalysis;
|
---|
10 |
|
---|
11 | /// <summary>
|
---|
12 | /// Serializable representation of a stream message that represents an image message header to send to client.
|
---|
13 | /// </summary>
|
---|
14 | [SuppressMessage("StyleCop.CSharp.NamingRules", "SA1300:ElementMustBeginWithUpperCaseLetter", Justification = "Lower case names allowed for JSON serialization.")]
|
---|
15 | public class ImageHeaderStreamMessage : StreamMessage
|
---|
16 | {
|
---|
17 | /// <summary>
|
---|
18 | /// Image width
|
---|
19 | /// </summary>
|
---|
20 | [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "width", Justification = "Lower case names allowed for JSON serialization.")]
|
---|
21 | public int width { get; set; }
|
---|
22 |
|
---|
23 | /// <summary>
|
---|
24 | /// Image height.
|
---|
25 | /// </summary>
|
---|
26 | [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "height", Justification = "Lower case names allowed for JSON serialization.")]
|
---|
27 | public int height { get; set; }
|
---|
28 |
|
---|
29 | /// <summary>
|
---|
30 | /// Number of bytes in image buffer.
|
---|
31 | /// </summary>
|
---|
32 | [SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "buffer", Justification = "Lower case names allowed for JSON serialization.")]
|
---|
33 | public int bufferLength { get; set; }
|
---|
34 | }
|
---|
35 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.