Type of image to be added as the background of windows form gives better performance?
which type of image to be 开发者_Go百科added as the background of windows form gives better performance and reduce the loading time? JPEG or png?
This seems pretty easy to test using the Stopwatch
class. Your best bet is to test, my gut feeling says PNG, as jpeg would need to be decompressed. EDIT: So does PNG, so testing is definitely the way to go (i was confusing PNG with BMP).
If you just care about loading time you better use jpeg as generally they are smaller in size.
Check this link. It gives more relevant information required for selecting an image type.
精彩评论