Hitbox

The answer is both.

Sprite overlaps are based on the pixels in the image (transparency is ignored). In other words, the yellow area of your example

Tilemap overlaps are based on the outer rectangle of all filled pixels in an image. For your example, that would be the entire outer rectangle of the sprite. For an image like this one:

…it’s the red rectangle (the rectangle around all filled pixels).

3 Likes