How to save images after they have been placed in an imagelist

Discussion in 'Questions (Windows Mobile)' started by XerVision, Jul 11, 2007.

  1. XerVision

    XerVision Member Licensed User

    I have an imagelist of 3 images that I need to embed into a file.
    Is there a way to embed the list
    Or do I need to output them first and then embed?
    I have tried different methods.
    My codes looks a little like this:

    Sub BuildDefImg
    'Takes in the ImgList and Builds
    'USes same name as the table
    if ImgListSize>0 then

    for i = 0 to ImgListSize-1 Step +1
    'Place the size in the table

    MsgBox(FileNum & " Embedded")
    end if
    End Sub

    The Process I would like to implement:
    User Selects Image File
    File Added to ImageList
    (n Repeats as many times as needed)

    User saves- which
    Takes Imagelist and Embeds them into one file.

    Note: Names are not important since the user just retrieve images into an
    imagelist for use.

    I hope that the above makes sense to someon. I have tried so many methods as
    1.Embedding the Imagelist Items
    2.Loading each image into an Control.Image and then embeding

    Also I do not have a copy of the ImageLibrary .dll on my laptop- how can I get that.
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can download the ImageLib from here:
    I recommend you to add an ArrayList and each time the user adds an image to the ImageList add the file name to the ArrayList.
    Now when you want to save an image from the ImageList you will be able to use the file name with EmbedFile.
  3. XerVision

    XerVision Member Licensed User


    It works perfectly.
    Use the Arraylist:sign0161:
    I have should have known that.

    Thanks again for all the great support you provide.
  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