Zwei Bilder oder ein Bild?

Hi,
ich möchte ein Bild an einer Stelle in Originalgröße und an anderer Stelle wesentlich kleiner anzeigen.
Was ist sinnvoller:

  1. Zwei Bilder in den entsprechenden Größen verwenden
    oder
  2. Das große Bild verwenden und jeweils im appinventor die gewünschte Größe angeben?

This might be better :

Wegen schnellerem Laden?
Dafür aber größere app.

No, because of (possible) "Out of memory errors":
http://ai2.appinventor.mit.edu/reference/other/usingImages.html

Rule: Resize images to make them not too large and not too small, but rather, “just the right size”.

" Out of memory errors "
Das leuchtet mir nicht ein.
Wenn ich nur ein "großes" Bild habe, ist die app kleiner als wenn ich dieses und dazu eine kleinere Kopie habe. Wenn wie in vielen Host-Systemen nur das aktuell benötigte in den Hauptspeicher geladen wird, so ist der Speicherverbrauch in beiden Varianten gleich, wenn das große Bild angezeigt wird. Wird immer die gesamte app geladen, so ist entgegen Deiner Aussage der Speicherbedarf größer, wenn zwei Bilder verwendet werden.

Did you read the information in the link that Anke gave you? Then maybe "es leuchtet ein".

1 Like

I tried, aber zu schwierig zu verstehen.

Indeed, the text does not describe in an easiest way.
My German is not good enough to try and explain this in German, but essentially it is this:

It is not only the size of the imgages, that count, but also the processing and memory needed to transform a large image into a small one. If you have many large images that need to be transformed in many small images, that will take a lot of processing power and extra memory, more that just the size of the two images. And it will slow down your app. So, for best performance, make sure that the size of your images are about right for your phone, both the large and the small ones.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.