|
-
May 7th, 2006, 08:23 PM
#1
Help Please! IPicture
Does anyone know if theres a way of converting an IPicture Image to something like a string, so it can be sent through Winsock to another app
and then converted back into IPicture.
cause it will save me having to save it to a file and sending the whole file.
-
May 8th, 2006, 12:11 AM
#2
Re: Help Please! IPicture
Open file in Binary mode and send it by Winsock or you can Use GetChunk Method.
-x8086
-
May 8th, 2006, 01:41 AM
#3
Re: Help Please! IPicture
Thats just opening the file and sending chunks
I want to convert the data from a picturebox to a string or something else so i can send it directly to another program
-
May 8th, 2006, 02:03 AM
#4
Re: Help Please! IPicture
You can get the image data without saving to a file. It depends on exactly what you are doing, but there are a few ways which come to mind.
One way is to use API, such as GetDIBits or GetBitmapBits. Another way is to use a PropertyBag. There are probably enough threads on these to put a function together, and of course there's always Google.
Please remember to rate the posts and threads that you find useful.
How can something be both new and improved at the same time?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|