BinaryFile EmbedImage?

Discussion in 'Questions (Windows Mobile)' started by DaveW, Nov 9, 2008.

  1. DaveW

    DaveW Active Member Licensed User

    I see that the BinaryFile library has methods to RetrieveFile (to a file) and RetrieveImage (to an image) but only EmbedFile (from a file). There seems to be no direct method to embed a created image. Am I missing something?

    I suppose I could save the image I have created as a file, embed the file and then delete the file but that seems a very crude method! Is there a way to scan the image pixels and send them to the binary file in a way that RetrieveImage would accept?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can try to use agraham's ImageLibEx.SaveImageToStream and pass the opened file identifier to this method. However it is more complicated because you first need to write the size of the image with BinaryFile.WriteInt64.
     
  3. DaveW

    DaveW Active Member Licensed User

    Maybe this could be something for the wishlist? I am using the SaveFile - EmbedFile - DelFile method and it works - it's just not very elegant!
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice