MV what is the difference between showPicture and loadBitmap

I want to make a variable v[1] changes after a turn in a battle, and picture shows depending on the value. So I made a plugin to achieve this.

I'm not very familiar with javascript and engine, so I use the showPicture in my script.

JavaScript:
UpdateIndicator = function () {
    $gameScreen.erasePicture(1);
    switch ($gameVariables.value(1)) {
    case 0:
        $gameScreen.showPicture(1, "SigA", 0, 0, 0,100, 100, 255, 0);
        break;
    case 1:
        $gameScreen.showPicture(1, "SigB", 0, 0, 0,100, 100, 255, 0);
        break;
    case 2:
        $gameScreen.showPicture(1, "SigC", 0, 0, 0,100, 100, 255, 0);
        break;
    case 3:
        $gameScreen.showPicture(1, "SigD", 0, 0, 0,100, 100, 255, 0);
        break;
    }
};

The code works now.

But then I referred to other plugins, I found that most authors do not use the "showPicture", instead they use "loadBitmap".

I wonder if the 2 methods are equally effective.

If not, which one is better and why?
loadBitmap is used to load picture inside window.

showPicture you use is directly from $gameScreen so loadBitmap is
not required as loadBitmap as no specific ID like showPicture or reference to it.

but I see you use IndicatorX,IndicatorY that does nothing, so why add it?
$gameScreen.showPicture is the RPG Maker's mechanism to show "Pictures". This is why you need to pass a picture ID from 1 to 50 to it which is maybe not what you want because your game already uses Pictures for some other context. Besides, this function is very simple to use, but you are bound to the rules of "Pictures", e.g., only work on the map and during battles.

loadBitmap loads a bitmap directly from disk (or by URL when it's a browser game), but does nothing more. It does not add the bitmap to the screen. You need to wrap it in a Sprite and then add this sprite either to the scene by this.addChild or to another sprite/spriteset that has already been added to the scene.

Code:
Scene_Map.prototype.myExampleFunction() {
  const bitmap = ImageManager.loadBitmap(directory, name);
  const sprite = new Sprite(bitmap);
  this.addChild(sprite);
}

As you can see, this method is more complex but also more powerful.
but I see you use IndicatorX,IndicatorY that does nothing, so why add it?
Sorry, that was my previous incorrect version and I forgot to modify it when pasting.

I edited the post.

Thank you all.

So in a word, the showPIcture can only work where this command can be called, e.g., in a map or in a battle.

While the bitmap can be load everywhere, e.g., in a text box or in a menu.

Am I right?

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-difference-between-showpicture-and-loadbitmap.174356/