SARAW is an ImgSource extension library
which allows you to read the various "Raw" image files that are generated by digital cameras.
It is available as both a DLL and a set of C++ static libraries (for VC6, Visual Studio 2003, VS2005 and VS2008). Native x64 libraries are available, also.
- Read raw images from over
100 different cameras.
- Read images to 24 or 48 bit RGB, or 8-bit grayscale
- Read directly to DIB (for 24-bit only)
- Correct color balance, gamma, brightness, as well as quick preview and high-quality options.
Because SARAW is tightly integrated into ImgSource's source and destination manager system, reading and
"Raw" images is as easy as reading any of the formats that ImgSource supports natively.
Here's a sample:
// get ImgSource extension hook
HISEXTHK hHk = IS3GetExtHook(0);
// set the hook in SARAW
// clean up
// open RAW file via ImgSource
HISSRC hSrc = IS3OpenFileSource("DSC_0286.NEF");
// read the image to RGB-24
UINT32 w, h;
UINT32 uReadFlags = 0;
HGLOBAL hImg = SARAW_ReadRAW(hSrc, &w, &h, 24, 1,1,1,1,1, 0,0,uReadFlags);
// check for error
if (hImg == NULL)
// test the error code.
UINT error = IS3GetLastError();
// close the file
// clean up
The download package includes
- _SARAW.DLL - the image library
- _SARAW.H - the main header file
- _SARAW.LIB - the library file, used for static linking of the DLL
- The SARAW source code (Visual C++ / Visual Studio) is not included but a 6-month source code subscription can be purchased seperately.
The static library is available separately.
Win32 and x64 Libraries
- DLL for 32-bit Windows
- DLL for 64-bit Windows
The DLL you download is a full, working version. However, to use it properly, you will need an access key,
which you will use when you initialize the DLL. The access key is what you get when you register. Without the
key, all images will have a big red "X" drawn on them.
Once registered, you are free to use SARAW however you wish, with the following restrictions :
- You may not use SARAW in a product which directly competes with SARAW
- You may not explicitly distribute SARAW access keys to persons who are not registered SARAW users.
Specifically, this applies to companies who wish to distribute the source of their applications to users. SARAW access
keys must not be included in this source.
- Each team that uses SARAW within a company or organization should acquire their own SARAW license.
- There are no royalties associated with SARAW.
- If there is opportunity for you to credit Smaller Animals Software with writing SARAW, you should feel free to mention us.
Registration cost: $25.00 U.S.
Contact & Bug Reports
Use at your own risk. There are no guarantees as to the suitablility of this software for any particular use. We cannot anticipate all uses to which people might try to put this. Any bugs, if reported , will be fixed as soon as possible. Smaller Animals Software can not be held responsible for any bugs or the consequences of any bugs which were not reported.
We know Visual C++. We don't know Visual BASIC or Borland's C++. But, we will try to help you as much as we can. You should always search the discussion board to see if your question has been answered there.
Please do not send question about SARAW to anyone who's code is included as part of SARAW; they have provided their code with no obligations to support what we do with it.
If you use this package with a platform other than VC++, and would like to tell us how you did it, please do. If you have any hints or tips or code snippets that could help others, please feel free to share this on the ImgSource discussion board
Note : Borland C++ Builder uses a different object file format than MicroSoft. You will have to use IMPLIB to create a static .LIB, if you want to statically link to the SARAW package. See your complier's manual for help with this.
If you have ideas about functionality that you'd like but don't see here, let us know. Many of the features included are the result of people asking if we could figure out how to do it.
Much credit to Dave Coffin, for the super-human feat of reversing all of these formats, and for making the fruits of his labors free for all to use.
Copyright © 2013, Smaller Animals Software, Inc.