Function Sprite.isPixelOpaque

Returns true, if the pixel at the given position is opaque and false in other case. Note: It also returns false, if the sprite's texture is null or if the given position is invalid.

bool isPixelOpaque (
  const(Vector2) pos
) nothrow @nogc const;