mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-24 09:54:58 +00:00
27 lines
690 B
C#
27 lines
690 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Crestron.SimplSharp;
|
|
using Crestron.SimplSharpPro;
|
|
using Crestron.SimplSharpPro.DeviceSupport;
|
|
using Crestron.SimplSharpPro.DM;
|
|
using Crestron.SimplSharpPro.DM.Cards;
|
|
|
|
using PepperDash.Essentials.Core;
|
|
|
|
namespace PepperDash.Essentials.DM
|
|
{
|
|
public static class VideoAttributesBasicExtensions
|
|
{
|
|
public static string GetVideoResolutionString(this VideoAttributesBasic va)
|
|
{
|
|
ushort h = va.HorizontalResolutionFeedback.UShortValue;
|
|
ushort v = va.VerticalResolutionFeedback.UShortValue;
|
|
if (h == 0 || v == 0)
|
|
return "n/a";
|
|
else
|
|
return string.Format("{0}x{1}", h, v);
|
|
}
|
|
}
|
|
} |