diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-03-03 18:56:58 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2020-03-03 18:56:58 +0200 |
| commit | c38f1c80f1fbdfdb758c5a0b93d045a9a5b526ad (patch) | |
| tree | 20cc57b06f4260b6f86fdaca04129e1a8ace53cd /Software/Visual_Studio/Tango.RemoteDesktop/Clipping | |
| parent | 1b0bdf6f8148e9cc4e7e07e41e9e2d75039c1349 (diff) | |
| download | Tango-c38f1c80f1fbdfdb758c5a0b93d045a9a5b526ad.tar.gz Tango-c38f1c80f1fbdfdb758c5a0b93d045a9a5b526ad.zip | |
Machine Studio v4.1.2
PPC v1.1.5
Added BYPASS_ROCKERS to SQLExaminer config.
Started integrating FSE Remote/Console To PPC.
Added support for generic continuous request.
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/Clipping')
| -rw-r--r-- | Software/Visual_Studio/Tango.RemoteDesktop/Clipping/BitmapCliper.cs | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/Clipping/BitmapCliper.cs b/Software/Visual_Studio/Tango.RemoteDesktop/Clipping/BitmapCliper.cs index 4f93eeb66..8866f6d9a 100644 --- a/Software/Visual_Studio/Tango.RemoteDesktop/Clipping/BitmapCliper.cs +++ b/Software/Visual_Studio/Tango.RemoteDesktop/Clipping/BitmapCliper.cs @@ -30,8 +30,8 @@ namespace Tango.RemoteDesktop.Clipping //determine top for (int i = 0; i < rgbValues.Length; i++) { - int color = rgbValues[i] & 0x00ffffff; - if (color != 0x00ffffff) + int color = rgbValues[i] & 0xffffff; + if (color != 0x0) { int r = i / bd.Width; int c = i % bd.Width; @@ -53,8 +53,8 @@ namespace Tango.RemoteDesktop.Clipping //determine bottom for (int i = rgbValues.Length - 1; i >= 0; i--) { - int color = rgbValues[i] & 0x00ffffff; - if (color != 0x00ffffff) + int color = rgbValues[i] & 0xffffff; + if (color != 0x0) { int r = i / bd.Width; int c = i % bd.Width; @@ -79,8 +79,8 @@ namespace Tango.RemoteDesktop.Clipping //determine left for (int c = 0; c < left; c++) { - int color = rgbValues[r * bd.Width + c] & 0x00ffffff; - if (color != 0x00ffffff) + int color = rgbValues[r * bd.Width + c] & 0xffffff; + if (color != 0x0) { if (left > c) { @@ -93,8 +93,8 @@ namespace Tango.RemoteDesktop.Clipping //determine right for (int c = bd.Width - 1; c > right; c--) { - int color = rgbValues[r * bd.Width + c] & 0x00ffffff; - if (color != 0x00ffffff) + int color = rgbValues[r * bd.Width + c] & 0xffffff; + if (color != 0x0) { if (right < c) { @@ -128,9 +128,7 @@ namespace Tango.RemoteDesktop.Clipping //create new image Bitmap newImage = new Bitmap(width, height, PixelFormat.Format32bppArgb); - BitmapData nbd - = newImage.LockBits(new Rectangle(0, 0, width, height), - ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb); + BitmapData nbd = newImage.LockBits(new Rectangle(0, 0, width, height), ImageLockMode.WriteOnly, PixelFormat.Format32bppArgb); Marshal.Copy(imgData, 0, nbd.Scan0, imgData.Length); newImage.UnlockBits(nbd); |
