Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxMakeFromImage.h File Reference

More...

#include "HxImageRep.h"

Go to the source code of this file.

Functions

HxImageRep L_HXIMAGEREP HxMakeFromImage (const HxImageSignature &signature, HxImageRep src)
 Make a new image with given signature. More...


Detailed Description


Function Documentation

HxImageRep L_HXIMAGEREP HxMakeFromImage const HxImageSignature   signature,
HxImageRep    src
 

Make a new image with given signature.

Sizes and data are taken from given image.

00014 {
00015     HxString fname("HxMakeFromImage");
00016 
00017     if (src.isNull())
00018     {
00019         HxGlobalError::instance()->reportError(fname, src.name(), "null image", HxGlobalError::HX_GE_INVALID);
00020         return HxImageRep();
00021     }
00022 
00023     return HxImageFactory::instance().fromImage(signature, src);
00024 }


Generated on Mon Jan 27 15:48:54 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001