Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-11-2007, 08:20 PM
Junior Member
 
Join Date: May 2007
Posts: 31
Default How to save images after they have been placed in an imagelist

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
'EMBED IMAGES
'USes same name as the table
ImgListSize=XVPIMGLi.Count
if ImgListSize>0 then
IMGBat=DefTableName.Text&".xmg"
FileOpen(d1,IMGBat,cRandom)
Ximg.New1(d1,true)

'EMBED FILES FROM LIST
for i = 0 to ImgListSize-1 Step +1
DEFTABIMG.Image=XVPIMGLi.Item(i)
Ximg.EmbedFile(DEFTABIMG.Image)
next
FileClose(d1)
'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
it.

Also I do not have a copy of the ImageLibrary .dll on my laptop- how can I get that.
Reply With Quote
  #2 (permalink)  
Old 07-12-2007, 05:55 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,132
Default

You can download the ImageLib from here: www.basic4ppc.com/Downloads.html
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.
Reply With Quote
  #3 (permalink)  
Old 07-13-2007, 09:59 PM
Junior Member
 
Join Date: May 2007
Posts: 31
Smile Thanks

Thanks,Erel.
It works perfectly.
Use the Arraylist
I have should have known that.


Thanks again for all the great support you provide.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ImageList items as Reference? DaveW Questions & Help Needed 3 11-07-2008 08:35 AM
GetFile to save to other DIR tcgoh Questions & Help Needed 9 08-09-2008 06:17 AM
Problem with AddEvent and ImageList Haschi0 Questions & Help Needed 7 03-01-2008 12:06 PM
Can we compare imagelist items? Cableguy Questions & Help Needed 1 06-02-2007 06:03 PM
I need examples for imagelist imagebutton sloopa Questions & Help Needed 2 05-19-2007 05:00 PM


All times are GMT. The time now is 11:28 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0