#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... |
|
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 } |