aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.RemoteDesktop/Frames
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-06-01 02:06:40 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-06-01 02:06:40 +0300
commitaff00af76242117e3991b0ee526df905a63debce (patch)
tree96bc51983c314a6c08cc7f804c599a28f23efd8a /Software/Visual_Studio/Tango.RemoteDesktop/Frames
parent862ee0839083ca350125d48841ce7427d5a578d9 (diff)
downloadTango-aff00af76242117e3991b0ee526df905a63debce.tar.gz
Tango-aff00af76242117e3991b0ee526df905a63debce.zip
Remote Cursor.
Cursor Visibility. Mouse Scroll. PPC notification bar workaround.
Diffstat (limited to 'Software/Visual_Studio/Tango.RemoteDesktop/Frames')
-rw-r--r--Software/Visual_Studio/Tango.RemoteDesktop/Frames/RasterFrame.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.RemoteDesktop/Frames/RasterFrame.cs b/Software/Visual_Studio/Tango.RemoteDesktop/Frames/RasterFrame.cs
index bcb372bd3..a9cbea6f2 100644
--- a/Software/Visual_Studio/Tango.RemoteDesktop/Frames/RasterFrame.cs
+++ b/Software/Visual_Studio/Tango.RemoteDesktop/Frames/RasterFrame.cs
@@ -110,6 +110,18 @@ namespace Tango.RemoteDesktop.Frames
}
/// <summary>
+ /// Draws the specified image on to this frame.
+ /// </summary>
+ /// <param name="bitmap">The bitmap.</param>
+ public virtual void DrawImage(Bitmap bitmap, Point position)
+ {
+ using (Graphics g = Graphics.FromImage(_bitmap))
+ {
+ g.DrawImage(bitmap, new Rectangle(position, bitmap.Size));
+ }
+ }
+
+ /// <summary>
/// Optimizes the bounds of this frame by removing unnecessary margins.
/// </summary>
/// <returns></returns>