How can I determine number pixel in resolution?