PC Review


Reply
Thread Tools Rate Thread

Advice on Images and CF2 Please???

 
 
iKiLL
Guest
Posts: n/a
 
      2nd Feb 2007


Hi All,



I am new to .Net and Compact Framework. So I have a really basic question
for you all.



I am building an application in C# for Windows Mobile 5.0 in VS2005 CF2.0



I would like this application to have some customizable features with out
having to recompile.



In particular this like images and Logos to be changeable.



Bearing in mind I am writing for the PDA platform



My Question:

1. Is this realistic to load images into the application. Rather
than compile them in.

2. What is the best/fastest way to load images into an application
from a folder.



You see what I was thinking was having a folder in the application directory
to hold the images, that have specific predefined names and sizes in a
certain format. Then on load the application can pick them up. This way the
application can be Branded for an company that uses it.



Any suggestions are welcome.



Thanks,

ink


 
Reply With Quote
 
 
 
 
Norman Rericha
Guest
Posts: n/a
 
      2nd Feb 2007
If you are trying to avoid a recompile, it makes sence to use a fixed
directory path and fixed names. To allow for skins or customization I
found that using the Directory name to identify the "skins" allowed for
easy maintence.

Embedding the images into a DLL or the application is possible, but the
unpack time is fairly high. Also you won't be able to change the
images without a recompile.

Fastest way to load the images is on demand. Instead of trying to load
them all at once in the beginning, load them when they are needed for
display.

I was able to accomplish fairly robust image management by creating a
DLL that stored all the images after they were loaded the first time
and then allowing object to use them as needed. If a needed image
wasn't loaded yet then it would load, however if the image was used
before it would be returned.

I have spent lots of time on this problem, and have seen and created
many different solutions. Best advice is to just experiment with what
you have and see which works best for you.

--
Norman Rericha
Sr. Software Architect
Embedded Systems
4Techwork.com


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advice on Images and CF2 Please??? iKiLL Microsoft Dot NET Compact Framework 4 7th Feb 2007 10:10 AM
Advice on Images and CF2 Please??? iKiLL Microsoft C# .NET 1 2nd Feb 2007 09:03 PM
Need advice: Storing images in a Product DB for a new website (with FrontPage) Pierre B Microsoft Access 2 30th Aug 2006 08:44 PM
Advice Needed Store Images in Database or Drive? john_20_28_2000@yahoo.com Microsoft ASP .NET 1 5th Feb 2005 05:54 AM
Advice sought on spam/virus's please! I have no knowledge on this subject and need advice please. CryOnwards Anti-Virus 2 15th Apr 2004 11:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:33 AM.