I used MFC. that code is not perfect and have some problem. But its function is Ok. You just fix and use array of display buffer. That is about How to play RAW graphic file. rotate, mirr, plus, divide ... etc