Pixel selections can be created for focused editing of specific pixel regions. Selection boundaries are defined depending on whether individual pixels are included or excluded.
You can create a pixel selection using the Selection Brush or Marquee Selection tools or base it on a layer. Selections created using the Marquee tools align to individual pixels.
Once your selection has been created, you can invert it so all included pixels are excluded and vice versa.