Not easy to help without more details.
A few checkpoints which I would investigate:
- what kind of raw format (sony raw image, canon, ...)
- Are you using wpf? It uses more framework build-in drawing options like the BitmapDecoder
- WIC code pack installed?
http://www.obviousidea.com/windows-software/wic/[
^]
Example code I would try with:
BitmapDecoder bitmapDecoder = BitmapDecoder.Create(new Uri(sourceFilePath),
BitmapCreateOptions.DelayCreation, BitmapCacheOption.None);
BitmapEncoder bitmapEncoder = new BmpBitmapEncoder();
bitmapEncoder.Frames.Add(bitmapDecoder .Frames[0]);
Stream memoryStream = new MemoryStream();
bmpEnc.Save(memoryStream );
Image srcImage = Bitmap.FromStream(memoryStream);
May it'll help you. Regards