1.1 --- a/Display.cs Mon Jul 07 21:32:02 2014 +0200
1.2 +++ b/Display.cs Mon Jul 07 22:29:26 2014 +0200
1.3 @@ -71,6 +71,23 @@
1.4 MiniDisplaySetBrightness(iDevice, aBrightness);
1.5 }
1.6
1.7 + public int WidthInPixels()
1.8 + {
1.9 + return MiniDisplayWidthInPixels(iDevice);
1.10 + }
1.11 +
1.12 + public int HeightInPixels()
1.13 + {
1.14 + return MiniDisplayHeightInPixels(iDevice);
1.15 + }
1.16 +
1.17 + public void SetPixel(int aX, int aY, int aValue)
1.18 + {
1.19 + MiniDisplaySetPixel(iDevice,aX,aY,aValue);
1.20 + }
1.21 +
1.22 +
1.23 +
1.24 //Our display device handle
1.25 IntPtr iDevice;
1.26
1.27 @@ -98,6 +115,15 @@
1.28 [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.29 public static extern int MiniDisplayMaxBrightness(IntPtr aDevice);
1.30
1.31 + [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.32 + public static extern int MiniDisplayWidthInPixels(IntPtr aDevice);
1.33 +
1.34 + [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.35 + public static extern int MiniDisplayHeightInPixels(IntPtr aDevice);
1.36 +
1.37 + [DllImport("MiniDisplay.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.Cdecl)]
1.38 + public static extern int MiniDisplaySetPixel(IntPtr aDevice, int aX, int aY, int aValue);
1.39 +
1.40
1.41 }
1.42 }