|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/13/2010 12:42:45 AM
Posts: 11,
Visits: 17
|
|
| I tried to create thumbnails with ViewerX and look at the found http://s-code.com/forum/Topic1830-6-1.aspx which works. I have to scale the bitmap myself however. In the activex methods I found the method GetScreenBitmapScaled, but this always returns a black bitmap. In the activex methods I found the method GetScreenBitmapScaled, but this always returns a black bitmap. Is it a bug? Also when I set scaleEnable, scaleDen and scaleNum, I get scaled image in the active viewer window. I support this has the server scaled image, right? However when I ask for the ScreenBitmap, I still get the full resolution bitmap. Why? The goal is to reduce the network traffic by transferring only server scaled bitmaps from the VNC servers to the client.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163,
Visits: 1,909
|
|
image, right? However when I ask for the ScreenBitmap, I still get the full resolution bitmap. Why? ScreenBitmap returns bitmap without scalling by design. The goal is to reduce the network traffic by transferring only server scaled bitmaps from the VNC servers to the client I wish it was possible...Unfortunatelly VNC server doesn't support server-side scalling and there is nothing we can do about it.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/13/2010 12:42:45 AM
Posts: 11,
Visits: 17
|
|
1) So what is the method GetScreenBitmapScaled for? I just returns a block 1 bit bitmap? Isn't this a bug?
2) ULTAVNC does support server side scaling. Are the scaleEnable, scaleDen and scaleNum the properties which set server side scaling? In an ULTRAVNC client, they are quite similar (apart from scale numerator beeing always 1). What are the scale* properties for? Is it also client scaling? But this could also be done with strech mode.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163,
Visits: 1,909
|
|
1) So what is the method GetScreenBitmapScaled for? I just returns a block 1 bit bitmap? Isn't this a bug? I'll be able to answer to this question when I return back to Singapore from Microsoft PDC conference in LA later this week.ULTAVNC does support server side scaling . UltraVNC DOESN'T support server side scaling. None of xxxxVNCs support this feature.Are the scaleEnable, scaleDen and scaleNum the properties which set server side scaling? In an ULTRAVNC client, they are quite similar (apart from scale numerator beeing always Yep they have the same meaning as in UltraVNC. But they using these properties you will get a scaled window. So if you would want to resize the viewer window you would have to come up with appropriate ScaleNum/Den value. That's why it's better to use EnableScalling property and setup the stretching mode: Free or Aspect scaling.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/13/2010 12:42:45 AM
Posts: 11,
Visits: 17
|
|
| UltraVNC does support Server-Side-Scaling: 1) Please check the main page: http://www.uvnc.com Citation: "Key features: File transfer, Video driver, Optional Encryption Plugins, MS Logon, Text chat, Viewer Toolbar, Java Viewer with File Transfer , as well as Auto scaling and Server Side Scaling, Multiple-Monitors-support,Repeater/Proxy-support, Auto reconnection, good performances and tons of other functionalities." 2) Please see Screenshot of advanced viewer options dialogbox at http://www.uvnc.com/install/viewerconfig.html In the lower part of the screen you see "Server screen scale by 1/xxx". Here the nominator is always 1 and you can select a denominator. So I supposed this is exactly your scaleDen property.
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163,
Visits: 1,909
|
|
hmm...that's interesting. I'll have to check on this also. If UVNC really supports it, support for the server side scaling feature will be added to the ViewerX and VNC Manager within one or two weeks.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/13/2010 12:42:45 AM
Posts: 11,
Visits: 17
|
|
To the other question: What should getBitmapScaled return. Should it return the bitmap handle to the scaled bitmap? How many colors should be there (because I get only 1 bit). Do I have to set the number of colors somewhere?
And: How is the owner of the handle? How has to free it? Is it the caller how has to free this bitmap? I saw that I get another bitmap handle each time I call the functions, os I suppose I have to free it too. In contrast getScreenBitmap seems to always return the same handle, and I must not free it. Right?
This information and also some functions are not documented in the help file. Perhaps you could add the information.
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/13/2010 12:42:45 AM
Posts: 11,
Visits: 17
|
|
| Any news on the 2 points?
|
|
|
|
|
Supreme Being
      
Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163,
Visits: 1,909
|
|
I've looked at this it does return 1 bit bitmap indeed. I suspect this is the reason why this method is not listed in the CHM file, because it's not exactly working as it supposed to.
This gonna be fixed within 7-10 days.
When the method is fully implemented and ready for public consumption the caller will have to free the HBITMAP handle returned.
 Kindest Regards, SmartCode Solutions Support
|
|
|
|
|
Junior Member
      
Group: Forum Members
Last Login: 2/13/2010 12:42:45 AM
Posts: 11,
Visits: 17
|
|
|
|
|