Irrespective of hardware or software in computers or smartphones, there is something called a “frame buffer” that stores all of the pixels currently displayed on the screen as numbers. A screenshot is essentially a dump of all of those numbers into a file, with more numbers tacked on the front to cause a computer to interpret them as a particular type of image.
solved how does screenshot works? is it due to the hardware that supports or the software which pile ups the pixel?