Page 1 of 1

Get image from .NEF file

Posted: Wed Jul 12, 2023 10:46 am
by DomiMedical
Hello everyone.
I have some .NEF files and need to extract their image and save it as a .jpeg. I found that in the Imaging.RawCodec dll there is a class NefPage, and in fact it contains the GetImage method that I need. The only issue is I can't see a constructor or a static/Shared method I can use to produce an instance of that class, and the class itself is not static/Shared, which means that I do need to somehow create a NefPage object and call the methods on it.

So my question is this:
Given a .NEF file, how do I create an instance of the NefPage class?

Re: Get image from .NEF file

Posted: Wed Jul 12, 2023 11:31 am
by Alex
Hello,

If you want to get image of RAW (NEF) file, you can go by 2 ways.

WAY 1. Create instance of Vintasoft.Imaging.ImageCollection class and add file stream to the collection. After this you can get image as VintasoftImage object.

WAY 2. Create an instance of Vintasoft.Imaging.Codecs.ImageFiles.Raw.RawImageFile class and get RAW page using RawImageFile.Page property.

Best regards, Alexander