We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45ce324 commit 62a7772Copy full SHA for 62a7772
MiniLCDController/Form1.cs
@@ -93,7 +93,10 @@ public byte[] byteTurn(byte[] buf)
93
private void CaptureFrame()
94
{
95
96
- Bitmap bitmap = new Bitmap(160, 80, PixelFormat.Format16bppRgb565);
+ Graphics g = Graphics.FromHwnd(IntPtr.Zero);
97
+ float factor = g.DpiX / 96;
98
+
99
+ Bitmap bitmap = new Bitmap((int)(160* factor), (int)(80* factor), PixelFormat.Format16bppRgb565);
100
Size size = bitmap.Size;
101
102
DateTime beforDT = System.DateTime.Now;
0 commit comments