|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 12/19/2006 10:32:34 AM
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 
- Janine
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: 2 days ago @ 10:30:35 PM
Posts: 836,
Visits: 1,364
|
|
| 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));
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Forum Newbie
      
Group: Forum Members
Last Login: 12/19/2006 10:32:34 AM
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
|
|
|
|