Get image from .NEF file

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
DomiMedical
Posts: 3
Joined: Mon Apr 24, 2023 12:24 pm

Get image from .NEF file

Post 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?
Alex
Site Admin
Posts: 2319
Joined: Thu Jul 10, 2008 2:21 pm

Re: Get image from .NEF file

Post 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
Post Reply