about Resourses

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
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
 
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.
 
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
 
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.
 
Back
Top