Hi agraham,
Thank you very much for posting the BitmapStreamSaver! I'll just need to add a fallback to BMP for incompatible devices. For thos devices that are compatible, this will be a big performance boost.
It's almost

for me.
I have successfully used the following code from the Desktop IDE v6.05, but I cannot compile. The compiler shows error CS1026: ) Expected on the following line:
bitmapstreamsaver.SaveImageToStream(mystream.New2( client2.GetStream,0), mybitmap.Value,"J")
I suspect it is because I am calling mystream.new2 (I tried New1 as well) in the SaveImageToStream call. I tried creating the stream and just handing it to the SaveImageToStream call, as below:
(This code compiles, but does not actually function. When I run the compiled executable, it complains that Stream2 was not assigned any value)
mystream.New2(client2.GetStream,0)
bitmapstreamsaver.SaveImageToStream(mystream, mybitmap.Value,"J")
Any ideas as to where my syntax has gone wrong? Here is a more complete example sequence:
dzImageclass.ScreenCapture
mybitmap.New3(dzImageclass.Image)
bitmapstreamsaver.SaveImageToStream(mystream.New2( client2.GetStream,0), mybitmap.Value,"J")
As a side note, the unoptimized compiler will compile this code, but the compiled app does not send image data on desktop and complains on the device about an optionally assembly that cannot be found.
Thanks very much for all the help so far. It is truly appreciated.