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.


Images are only adresses


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-28-2007, 01:05 PM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default Images are only adresses

Hi all,

imagelist.item(3) = imagelist.item(4)
imagelist.item(4) = imagelist.item(3)
So, I think I only substitude the adres to design on, because the memory in list holds the same picture all the time, and do not copy memory from one place to another.
Is this right?
If so, wat is the most easy way to copy image-memory to another image-memory?

Put Claude Belgium
Reply With Quote
  #2 (permalink)  
Old 05-28-2007, 01:08 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,137
Default

I would say You had to save as file using binary dll and then reload it, but then you're stick with the bitmap format...
What exactly are you trying to do?
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #3 (permalink)  
Old 05-28-2007, 01:47 PM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default

Cableguy,

The files I loaded in the list stay on place in the list.
If I use drawer.New2(imagelist.item(1),B4PObject(5))
to draw on the image it is OK.
bmp1.image=imagelist.item(1) 'bmp1 let see imagelist.item(1)
drawer.New2(bmp1,B4PObject(5)) 'wil draw on bmp1,
but in fact on imagelist.item(1)
bmp2.image=imagelist.item(1) 'bmp2 let see imagelist.item(1)
drawer.New2(bmp2,B4PObject(5)) 'wil draw on bmp2,
but in fact on imagelist.item(1)
If I look to bmp2, I see 2 designs, all on imagelist.item(1)
Reply With Quote
  #4 (permalink)  
Old 05-28-2007, 02:03 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 1,137
Default

If I understand you correctly, You get your imagelist item filled with bothe the original and the drawn image (?), i think this shouldn't be possible....

If you want to make your image "persistant" you have to save it, not quite sure on how to do it...
__________________
Paulo Gomes
Porto, Portugal

PC: Dual-Core 1,8Ghz, 2GB RAM, 80GB HD
PPC: Qtek9000, 1GB SD
Reply With Quote
  #5 (permalink)  
Old 05-28-2007, 03:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

When you get an image from an ImageList you get a reference to the image.
This is useful to decrease the memory load and improve the performance.
However, when you get an image from an ImageButton, Form or Image control a new copy will be returned.
Reply With Quote
  #6 (permalink)  
Old 05-29-2007, 09:48 AM
Knows the basics
 
Join Date: May 2007
Posts: 85
Default

Hi,
I found out many things about graphics now, so I can work now with references and also copy images in memory, replace them, save them, transparency with them, etc... I am out of the problems FOR NOW... :-)

HAVE TO TELL AGAIN, HOW AMAZING THIS B4PPC IS: ones you understand a bit, it go fast... never screw up te editor or my programs, never going into the weeds with anything till now.. GREAT STUFF.

Put Claude Belgium
Reply With Quote
  #7 (permalink)  
Old 05-29-2007, 02:54 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 2,849
Default

Thanks Put
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
retrieve images and index lux1963 Questions & Help Needed 3 05-18-2008 01:42 PM
Homothetic images : is this possible ? origami Questions & Help Needed 3 04-28-2008 08:38 PM
Embed images in the exe alfcen Basic4ppc Wishlist 2 03-22-2008 11:46 AM
Images and memory wolfgang Questions & Help Needed 5 02-23-2008 05:08 PM
Card images Stellaferox Code Samples & Tips 11 02-02-2008 03:44 PM


All times are GMT. The time now is 07:17 PM.


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