CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2004
    Posts
    184

    Smile 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.

  2. #2
    Join Date
    Mar 2005
    Location
    On the Dark Side of Moon
    Posts
    86

    Re: Help Please! IPicture

    Open file in Binary mode and send it by Winsock or you can Use GetChunk Method.

    -x8086

    Problem Is An Opportunity To Do Your Best.

    All Code Guru Member's
    Poll : -Please Vote For Code Guru Forum Programming competition


  3. #3
    Join Date
    Aug 2004
    Posts
    184

    Smile 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

  4. #4
    Join Date
    Dec 2001
    Posts
    6,332

    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
  •  





Click Here to Expand Forum to Full Width

Featured