Results 1 to 11 of 11

Thread: [RESOLVED] Extract Picturebox contents to a hex string

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2006
    Posts
    89

    Resolved [RESOLVED] Extract Picturebox contents to a hex string

    I have a picturebox on which I draw various lines, shapes and text.
    Now I need to get all that picture data into a hex string.

    I know, I can use "SavePicture" to save the picturebox to a .bmp,
    then I can read the .bmp file byte by byte, and convert each to hex.

    BUT......
    I do NOT want to use a file/temp storage..... I want to merely extract the
    data inside my app, without using a temp .bmp file.

    I can do this with code I found http://www.vbforums.com/showthread.p...ight=image+hex, IF the picturebox contains an image...
    but if it only contains graphics that code does not work.

    I know it must be do-able, but I am stymied.

    TIA

    Update:
    I suppose I could use a Bitmap instead of a Picturebox, and use the graphic methods on that.
    In reality the user does not see the results of what I am doing.

    So anyone with any help in extracting the contents of a Bitmap to a string ?
    Last edited by Antithesus; Apr 30th, 2008 at 06:10 PM.

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