To calculate the number of bytes required to store an image, we need to consider the following:
- The image size is 512 × 512 pixels.
- Each pixel in the image uses 8 bits (1 byte).
Thus, the total number of bytes required to store the image is:
\[
\text{Total bytes} = \text{Width} \times \text{Height} \times \text{Bytes per pixel} = 512 \times 512 \times 1 = 262144 \, \text{bytes}
\]
Final Answer:
\[
\boxed{262144}
\]