about Resourses

T

Tony Johansson

When I have resources for example image files I can choose to have this
image to be linked or embedded.
With linked images the image file must be delivered together with the
application if I choose the embedded the actual image is stored withen the
assembly.

Which criteria should be used when selecting which of these two alternatives
should be used.?

//Tony
 
K

kndg

When I have resources for example image files I can choose to have this
image to be linked or embedded.
With linked images the image file must be delivered together with the
application if I choose the embedded the actual image is stored withen the
assembly.

Which criteria should be used when selecting which of these two alternatives
should be used.?

//Tony

It depends on how the image is used. If the image is mainly used for UI,
- with linked images, you do not need to recompile your application. You
can modify the image any time you wish and it does not effect your
application (other than the look). It also has the benefit if you would
like to update your application at later time where you just need to
update the application while leaving the image file untouched.
- with embedded images, if you need to modify the image, you have to
recompile the application (which can slow down the development if the
images changed a lot). It has the benefit where it prevent the user from
mess up with your application look and feel.
 
T

Tony Johansson

kndg said:
It depends on how the image is used. If the image is mainly used for UI,
- with linked images, you do not need to recompile your application. You
can modify the image any time you wish and it does not effect your
application (other than the look). It also has the benefit if you would
like to update your application at later time where you just need to
update the application while leaving the image file untouched.
- with embedded images, if you need to modify the image, you have to
recompile the application (which can slow down the development if the
images changed a lot). It has the benefit where it prevent the user from
mess up with your application look and feel.

What about the perfermance in general between these two ?

//Tony
 
K

kndg

What about the perfermance in general between these two ?

//Tony

You can always measure the performance yourself.
As for this scenario, I would care less about performance. The intended
usage is very much important.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top