Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is f.jpg in the working directory of your program? Usually you want to put the full path to the image there just to ensure you're accessing the right location. My guess is you're not looking in the right place for the image, because the code looks fine overall.