Results 1 to 4 of 4

Thread: PictureBox control and .NEF images

  1. #1
    fabio.bozzo is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    May 2010
    Posts
    3
    Reputation
    0

    Lightbulb PictureBox control and .NEF images

    I've got some RAW images from several Nikon D90 cameras.
    They come in NEF format (extension), I can open them with Photoshop.
    If I try to load one in a PictureBox control with .Load() method I receive an ArgumentException. However, Image.fromFile() gives 'out of memory'.
    How can I display those images?
    Oh, I'm using Vb.NET 2010 express.
    Thanks a lot

  2. #2
    MattP is offline VB.NET Forum All-Mighty
    .NET Framework
    .NET 4.0
    Join Date
    Feb 2008
    Location
    WY, USA
    Posts
    1,206
    Reputation
    572
    .NEF is a raw format that Photoshop has the ability to read. You may be able to open the file after you install the .NEF codec from: Nikon Imaging | Global Site | NEF Codec Download.

    If that doesn't work you may need to convert the files to a positive format such as JPEG. It looks like the program Capture NX (assuming it came with the camera) can batch convert according to this support article: Capture NX - How to convert multiple RAW NEF images to JPEG. No mention of whether you can do this from the command line or COM that I saw in a cursory search.

  3. #3
    fabio.bozzo is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    May 2010
    Posts
    3
    Reputation
    0

    Thumbs up [resolved]

    Excellent!
    This resolved my problem perfectly.

    Just one thing: I needed that for working in Windows 7, XP worked fine without codec!

  4. #4
    weeluke is offline VB.NET Forum Newbie
    .NET Framework
    .NET 4.0
    Join Date
    Apr 2012
    Posts
    1
    Reputation
    0
    hey guys im new to the forum, and i really only joined because i saw this post in a google search
    i was trying to do this only in vb6. (i have no knowledge of .net, altho i was thinking about learning it)
    does anyone know if it is indeed possible to load a .nef file into a picturebox?
    i keep getting an invalid image error
    thanks in advance
    weeluke

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking