Whenever I display a sprite that I read from a file, instead of only displaying the small part of the image file I care about (my drawing), the contents of the entire file, including the whitespace, are displayed.
In essence, when I load an image, how can I choose to only read part of the image file as opposed to the entire thing? How do I specify the range of pixels are of importance?