Paint.NET doesn't support it. In Photoshop it depends on what version you're using, but typically the highest quality levels have very little compression and subsampling set to 1:1. I use GIMP, which has a slider for the quality level and a drop down box for the subsampling in the advanced options when you try to save something as a jpeg.