public static PixelFormatDescription GetDescriptionFor( PixelFormat format ) { lock ( UnindexedPixelFormats ) { Initialize(); } return IndexedPixelFormats[ (int)format ]; }
public static bool IsAccessible(PixelFormat format) { if (format == PixelFormat.Unknown) { return(false); } var flags = PixelConverter.GetDescriptionFor(format).flags; return(!((flags & PixelFormatFlags.Compressed) > 0 || (flags & PixelFormatFlags.Depth) > 0)); }