View portion of server desktop?


Author
Message
Janine
Janine
Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)
Group: Forum Members
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
Yury Averkiev (s-code)
Yury Averkiev (s-code)
Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)Supreme Being (214K reputation)
Group: Administrators
Posts: 1.9K, Visits: 3.6K
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
Regards,

Yury Averkiev, SmartCode

Janine
Janine
Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)Supreme Being (214 reputation)
Group: Forum Members
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Explore
Messages
Mentions
Search