When you access/edit the following types of images we will get the error "a graphics object cannot be created from an image that has an indexed pixel format"
- PixelFormatUndefined
- PixelFormatDontCare
-
PixelFormat1bppIndexed
-
PixelFormat4bppIndexed
-
PixelFormat8bppIndexed
-
PixelFormat16bppGrayScale
-
PixelFormat16bppARGB1555

G BPosted Jun 18, 2011, 1:19 PM
If you override the image that has this problem, and explicitly save it as a 32 bit-depth colors (explicitly), the problem is gone too. Apparently this problem occurs if an image has a relatively low amount of used colors. In that case when storing the image as 'auto detect color-depth) it will persist in a lower amount which conflicts ... downside: size of images are somewhat bigger.