Hi Klaus,
Thanks for the response. I took a look at that thread but did not find a solution to my problem. I may have overlooked it.
Perhaps my questions is better explained with code. My goal is to take a screenshot, convert the BMP screenshot data to JPEG, then send the JPEG data across a TCP socket connection. I would like to avoid saving the image to a file in order to do the JPEG conversion. This is how my code looks for sending BMP data:
'BMPU is part of my custom protocol
header() = bit.StringToBytes("BMPU ",0,5)
'CRLF used to terminate commands and transfers
terminator() = bit.StringToBytes("</terminator>" & Chr(13) & Chr(10),0,15)
'Capture Screen Image
dzImageclass.ScreenCapture
'Send protocol command
stream.Writebytes (header())
'Send Image Data
stream.WriteBytes (imageclass.ImageToByteAray(imageclass.Image))
'Send Terminator
stream.WriteBytes(terminator())
What I would like to be able to do is something like this:
'Send Image Data
stream.WriteBytes (dzImageclass.ImageToJPEGByteAray(dzImageclass.Ima ge))
I appreciate any help you can offer.
Thanks again for your time,
__________________
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
|