SmartCode Solutions Web Forum




View portion of server desktop?

Author Message
 Posted Monday, September 25, 2006
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Tuesday, December 19, 2006
Posts: 2, Visits: 15
Hi -

Is there a way to be able to view only a portion of the server's desktop? Support at SmartCode had mentioned in an email to me recently to retrieve a handle of ViewerX screen bitmap via ScreenBitmap property, then to draw a portion of this bitmap on the form where the control object is...? I need just a bit more clarification on this, or any guidance to another way of being able to view a portion of the server's desktop. Is there a way to, perhaps, specifiy a rectangle on the server's desktop via ViewerX, and just view this? I'm thinking along the lines of even setting the control object not to enable screen stretching, and disabling the scroll bars, limiting the user to explore the rest of the server desktop through ViewerX. Is there a way to do this?

Many thanks in advance Smile

- Janine
Post #1147
Add to Twitter Add to Facebook
 Posted Tuesday, October 03, 2006
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Friday, May 18, 2012
Posts: 1,624, Visits: 3,043
There is no way in the VNC world for a VNC client to specify what part of remote screen it wants to observe. The only way for you from the client side would be is to obtain screen bitmap handle from ViewerX via ScreenBitmap property and after that you can draw only part of that bitmap.

A .Net C# code to get remote screen bitmap via Viewer’s API would look like this:

Bitmap bmp = Bitmap.FromHbitmap(new IntPtr(viewerX.ScreenBitmap));

http://www.s-code.com/App_Themes/Default/images/blue_line.gif
We are looking for investors and business partners. Please contact us for more details

Kindest Regards,
SmartCode Solutions Support

Post #1172
Add to Twitter Add to Facebook
 Posted Tuesday, October 10, 2006
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Tuesday, December 19, 2006
Posts: 2, Visits: 15
Thanks! I understand getting the bitmap via ViewerX. However, I'm a bit uncertain as to how to draw only a portion of that bitmap back via ViewerX. How does ViewerX draw the entire desktop bitmap in the first place, and re-draw it at a particular refresh rate to show "real time" changes on the remote desktop? Is it possible to perhaps access that, then change those values to reproduce only a portion of that entire bitmap of the desktop?

Thanks again,
Janine
Post #1182
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse