1

I'm trying to use code from this answer(the 1st one, the highest rated one):

Android - combine multiple images into one ImageView

After reading extensively the code I found out that the code was using BitmapFactory extensively.

I'm trying to integrate the code into a performance-priority project, and bitmap left me with the impression of being rather taxing on processors, which isn't really something I'm pleased with. I don't want this new part of the code slow everything down noticeably.

My code is already capable of resizing pngs, so I'm guessing either one of the following is likely be the case of the original author's application of BitmapFactory:

  1. resizing pngs uses bitmap processing by default, just because I (author of this question, not of the code IN this question) did not explicitly call relevant functions doesn't mean it hasn't gotten actively involved;

  2. The code also features capability of cutting and reshaping images so that is exclusively the part that needs BitmapFactory, BitmapFactory isn't really necessary if nothing beyond resizing is required.

  3. The code's primary function is to combine multiple images inside a single imageView so to have that, BitmapFactory is instrumental in achieve just that (I've read the code but couldn't find enough evidence to support this assumption).

I need expert answer - a simple yes or no followed by clear elaboration. Thanks in advance. You are of course, welcome to point out my lapse of judgement when claiming that bitmap slows things down.

maaartinus
  • 44,714
  • 32
  • 161
  • 320
  • `I need expert opinions` is exactly why your question is off-topic. Opinion-based questions are off-topic here, as there is no way to determine if the answer is correct or not. – Vladyslav Matviienko Oct 18 '18 at 05:59
  • *left me with the impression*, so did you benchmark to see if that’s the case or not? And if you already have code doing what you want I don’t really understand this question. Or how one can answer yes or no to this. – Sami Kuhmonen Oct 18 '18 at 06:02
  • @VladyslavMatviienko Oh no it's more of a rhetorical way to put it, as I made it quite plain that I need a yes/no answer followed by elaboration. – AsianRyanReynolds Oct 18 '18 at 08:34
  • @AsianRyanReynolds I've edited the "offending" word out, otherwise your question could get closed for no sane reason. I'm rather sure, you're asking for a definite answer or at least a good guess rather than just an opinion. However, feel free to improve your question. – maaartinus Oct 18 '18 at 09:50

1 Answers1

0

To answer my own question:

In this particular scenario, unfortunately I need to use bitmap to "map" (no pun intended) my target image, and then resize it and put it into the same ImageView with other images that went through the identical steps. Because I am trying to combine several images inside a single view, this is inevitable.