Image pixel format

Re: Source pixel format is not supported by the filter !

Postby andrew.kirillov » Tue Mar 16, 2010 12:57 pm

You need to check 2 things:
1) Check documentation to see which pixel formats are supported by particular image processing routine (8 bpp greyscale or 24 bpp RGB or 32 bpp, etc). It was told many times to check docs for this. So if nobody cares about, then simply struggle with your issues on your own.
2) Check pixel format of your image (see PixelFormat property). If it does not match to what is required by routine, then convert it (greyscaling for converting from color to grey or Clone() with specifying required pixel format if you have other cases.)
原文地址:https://www.cnblogs.com/liuxinls/p/3089636.html