The question has come up as to the ResampleCommand.
Our documentation for the ResampleMethod enum warns when a given method will not support "upsampling" (making an image larger) or "downsampling" (making an image smaller), but does not make any mention of whether any given ResampleMethod supports any given PixelFormat
Unfortunately, the IsPixelFormatSupported method
bool ResampleCommand.IsPixelFormatSupported(PixelFormat format)
always returns true .. regardless of the settings of the DestSize and Method.
There is no official documentation for this, we (support) wrote a small test harness to answer this question. The test app will be included in this case for those who are curious as to our methods...
The ResampleCommand will work under ALL ResampleMedhod settings for the following PixelFormat values:
- Pixel4bppIndexed (note: output will be Pixel8bppIndexed)
The ResampleCommand will work with SOME ResampleMethod settings for the following 3 PixelFormat values