I need to check if picture is sRGB or Adobe RGB in my WEBapplication. Is there a way to know exactly what RGB does the picture have?
UPDATE: Tried to Use Color.Context, but it's always null
code
Bitmap img = (Bitmap)image;
var imgPixel = img.GetPixel(0,0);
System.Windows.Media.Color colorOfPixel= System.Windows.Media.Color.FromArgb(imgPixel.A,imgPixel.R, imgPixel.G, imgPixel.B);
var context = colorOfPixel.ColorContext; //ColorContext is null
In System.Windows.Media also found PixelFormat and PixelFormats that can show what exact RGB type an image is. But still I can't find a way to get System.Windows.Media.PixelFormat of an img. How should I do this?