#include "HxImageRep.h"
Go to the source code of this file.
Functions | |
HxImageRep L_HXIMAGEREP | HxMakeFromNamedGenerator (const HxImageSignature &signature, HxString generatorName, HxTagList &tags) |
Make a new image with given signature. More... |
|
Make a new image with given signature. Pixel data and size are determined by image generator.
00015 { 00016 HxString fname("HxMakeFromNamedGenerator"); 00017 00018 if ((signature.pixelDimensionality() < 1) || (signature.pixelDimensionality() > 3)) 00019 { 00020 HxGlobalError::instance()->reportError(fname, "Illegal pixel dimensionality", HxGlobalError::HX_GE_INVALID); 00021 return HxImageRep(); 00022 } 00023 if ((signature.imageDimensionality() < 2) || (signature.imageDimensionality() > 3)) 00024 { 00025 HxGlobalError::instance()->reportError(fname, "Illegal number of dimensions", HxGlobalError::HX_GE_INVALID); 00026 return HxImageRep(); 00027 } 00028 // check generator 00029 00030 return HxImageFactory::instance().fromNamedGenerator(signature, 00031 generatorName, tags); 00032 } |