I am creating an Image dynamically in several places to speed up redrawing, i.e.:
myImage = Image(Image::ARGB, bounds.getWidth() * 4, bounds.getHeight() * 4, true);
…using 4x the real size so as to allow the GUI to be scaled up without any visible pixelation.
I’m curious as to how much memory it is using, but I can’t seem to find an easy way to display the amount of memory being used. If I just do a sizeof() on the Image object, it’s 16, which is tiny. I tried a sizeof() on Image::getPixelData() but I must not be doing this correctly either because the number still is tiny and makes no sense. I realize I could probably manually compute this based on height and width, but as I use this in several places, it would be nice to have an easy way to display it.