Thread: dzImage Library
View Single Post
  #53 (permalink)  
Old 03-09-2008, 12:42 AM
brathbone's Avatar
brathbone brathbone is offline
Junior Member
 
Join Date: Feb 2008
Location: Rutherfordton, North Carolina
Posts: 19
Send a message via MSN to brathbone
Default

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.
__________________
Brian Rathbone

Laptop: AMD Turion 64 Mobile 2ghz, 2GB RAM, Dual GeForce Go 7900 GTX 768MB SLI, Dual 200GB HDD at RAID0. XP Pro sp2

Device: Treo 750, WM6, 300mhz,128MB RAM, 2GB miniSD, 240x240 display
Reply With Quote