How to stop drawings scaling with screen resolution

Hi,
I am currently painting an image using some data to later be used as a texture. The problem is that the image keeps scaling with the change in screen resolution [I tested it by setting my screen to a lower resolution]. I wish to stop this from happening when I am creating the texture.

May I inquire how it can be done?

Thanks