这篇教程C++ ConcatenateMagickString函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中ConcatenateMagickString函数的典型用法代码示例。如果您正苦于以下问题:C++ ConcatenateMagickString函数的具体用法?C++ ConcatenateMagickString怎么用?C++ ConcatenateMagickString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了ConcatenateMagickString函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: CLILogEvent/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %+ C L I L o g E v e n t %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLILogEvent() is a wrapper around LogMagickEvent(), adding to it the% location of the option that is (about) to be executed.%*/WandExport MagickBooleanType CLILogEvent(MagickCLI *cli_wand, const LogEventType type,const char *module,const char *function, const size_t line,const char *format,...){ char new_format[MaxTextExtent]; MagickBooleanType status; va_list operands; /* HACK - prepend the CLI location to format string. The better way would be add more arguments to to the 'va' oparands list, but that does not appear to be possible! So we do some pre-formating of the location info here. */ (void) FormatLocaleString(new_format,MaxTextExtent,cli_wand->location, cli_wand->filename, cli_wand->line, cli_wand->column); (void) ConcatenateMagickString(new_format," ",MaxTextExtent); (void) ConcatenateMagickString(new_format,format,MaxTextExtent); va_start(operands,format); status=LogMagickEventList(type,module,function,line,new_format,operands); va_end(operands); return(status == MagickFalse ? 0 : 1);}
开发者ID:Distrotech,项目名称:ImageMagick,代码行数:45,
示例2: MagickGetException/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% M a g i c k G e t E x c e p t i o n %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% MagickGetException() returns the severity, reason, and description of any% error that occurs when using other methods in this API.%% The format of the MagickGetException method is:%% char *MagickGetException(const MagickWand *wand,ExceptionType *severity)%% A description of each parameter follows:%% o wand: the magick wand.%% o severity: the severity of the error is returned here.%*/WandExport char *MagickGetException(const MagickWand *wand, ExceptionType *severity){ char *description; assert(wand != (const MagickWand *) NULL); assert(wand->signature == WandSignature); if (wand->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name); assert(severity != (ExceptionType *) NULL); *severity=wand->exception->severity; description=(char *) AcquireQuantumMemory(2UL*MaxTextExtent, sizeof(*description)); if (description == (char *) NULL) { (void) ThrowMagickException(wand->exception,GetMagickModule(),WandError, "MemoryAllocationFailed","`%s'",wand->name); return((char *) NULL); } *description='/0'; if (wand->exception->reason != (char *) NULL) (void) CopyMagickString(description,GetLocaleExceptionMessage( wand->exception->severity,wand->exception->reason),MaxTextExtent); if (wand->exception->description != (char *) NULL) { (void) ConcatenateMagickString(description," (",MaxTextExtent); (void) ConcatenateMagickString(description,GetLocaleExceptionMessage( wand->exception->severity,wand->exception->description),MaxTextExtent); (void) ConcatenateMagickString(description,")",MaxTextExtent); } return(description);}
开发者ID:saitoha,项目名称:ImageMagick-V7-SIXEL,代码行数:58,
示例3: GetImageViewException/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% G e t I m a g e V i e w E x c e p t i o n %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% GetImageViewException() returns the severity, reason, and description of any% error that occurs when utilizing a image view.%% The format of the GetImageViewException method is:%% char *GetImageViewException(const PixelImage *image_view,% ExceptionType *severity)%% A description of each parameter follows:%% o image_view: the pixel image_view.%% o severity: the severity of the error is returned here.%*/MagickExport char *GetImageViewException(const ImageView *image_view, ExceptionType *severity){ char *description; assert(image_view != (const ImageView *) NULL); assert(image_view->signature == MagickSignature); assert(severity != (ExceptionType *) NULL); *severity=image_view->exception->severity; description=(char *) AcquireQuantumMemory(2UL*MaxTextExtent, sizeof(*description)); if (description == (char *) NULL) ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed"); *description='/0'; if (image_view->exception->reason != (char *) NULL) (void) CopyMagickString(description,GetLocaleExceptionMessage( image_view->exception->severity,image_view->exception->reason), MaxTextExtent); if (image_view->exception->description != (char *) NULL) { (void) ConcatenateMagickString(description," (",MaxTextExtent); (void) ConcatenateMagickString(description,GetLocaleExceptionMessage( image_view->exception->severity,image_view->exception->description), MaxTextExtent); (void) ConcatenateMagickString(description,")",MaxTextExtent); } return(description);}
开发者ID:jlubea,项目名称:propelize,代码行数:55,
示例4: PixelGetIteratorException/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% P i x e l G e t I t e r a t o r E x c e p t i o n %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% PixelGetIteratorException() returns the severity, reason, and description of% any error that occurs when using other methods in this API.%% The format of the PixelGetIteratorException method is:%% char *PixelGetIteratorException(const PixelIterator *iterator,% ExceptionType *severity)%% A description of each parameter follows:%% o iterator: the pixel iterator.%% o severity: the severity of the error is returned here.%*/WandExport char *PixelGetIteratorException(const PixelIterator *iterator, ExceptionType *severity){ char *description; assert(iterator != (const PixelIterator *) NULL); assert(iterator->signature == MagickWandSignature); if (iterator->debug != MagickFalse) (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",iterator->name); assert(severity != (ExceptionType *) NULL); *severity=iterator->exception->severity; description=(char *) AcquireQuantumMemory(2UL*MagickPathExtent, sizeof(*description)); if (description == (char *) NULL) ThrowWandFatalException(ResourceLimitFatalError,"MemoryAllocationFailed", iterator->name); *description='/0'; if (iterator->exception->reason != (char *) NULL) (void) CopyMagickString(description,GetLocaleExceptionMessage( iterator->exception->severity,iterator->exception->reason),MagickPathExtent); if (iterator->exception->description != (char *) NULL) { (void) ConcatenateMagickString(description," (",MagickPathExtent); (void) ConcatenateMagickString(description,GetLocaleExceptionMessage( iterator->exception->severity,iterator->exception->description), MagickPathExtent); (void) ConcatenateMagickString(description,")",MagickPathExtent); } return(description);}
开发者ID:278443820,项目名称:ImageMagick,代码行数:57,
示例5: CLIThrowException/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %+ C L I T h r o w E x c e p t i o n %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% CLIThrowException() is a wrapper around ThrowMagickException(), adding to% it the location of the option that caused the exception to occur.*/WandExport MagickBooleanType CLIThrowException(MagickCLI *cli_wand, const char *module,const char *function,const size_t line, const ExceptionType severity,const char *tag,const char *format,...){ char new_format[MaxTextExtent]; size_t len; MagickBooleanType status; va_list operands; /* HACK - append location to format string. The better way would be add more arguments to to the 'va' oparands list, but that does not appear to be possible! So we do some pre-formating of the location info here. */ (void) CopyMagickString(new_format,format,MaxTextExtent); (void) ConcatenateMagickString(new_format," ",MaxTextExtent); len=strlen(new_format); (void) FormatLocaleString(new_format+len,MaxTextExtent-len,cli_wand->location, cli_wand->filename, cli_wand->line, cli_wand->column); va_start(operands,format); status=ThrowMagickExceptionList(cli_wand->wand.exception, module,function,line, severity,tag,new_format,operands); va_end(operands); return(status == MagickFalse ? 0 : 1);}
开发者ID:Distrotech,项目名称:ImageMagick,代码行数:49,
示例6: ThrowMagickExceptionListMagickExport MagickBooleanType ThrowMagickExceptionList( ExceptionInfo *exception,const char *module,const char *function, const size_t line,const ExceptionType severity,const char *tag, const char *format,va_list operands){ char message[MaxTextExtent], path[MaxTextExtent], reason[MaxTextExtent]; const char *locale, *type; int n; MagickBooleanType status; size_t length; assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickSignature); locale=GetLocaleExceptionMessage(severity,tag); (void) CopyMagickString(reason,locale,MaxTextExtent); (void) ConcatenateMagickString(reason," ",MaxTextExtent); length=strlen(reason);#if defined(MAGICKCORE_HAVE_VSNPRINTF) n=vsnprintf(reason+length,MaxTextExtent-length,format,operands);#else n=vsprintf(reason+length,format,operands);#endif if (n < 0) reason[MaxTextExtent-1]='/0'; status=LogMagickEvent(ExceptionEvent,module,function,line,"%s",reason); GetPathComponent(module,TailPath,path); type="undefined"; if ((severity >= WarningException) && (severity < ErrorException)) type="warning"; if ((severity >= ErrorException) && (severity < FatalErrorException)) type="error"; if (severity >= FatalErrorException) type="fatal"; (void) FormatLocaleString(message,MaxTextExtent,"%s @ %s/%s/%s/%.20g",reason, type,path,function,(double) line); (void) ThrowException(exception,severity,message,(char *) NULL); return(status);}
开发者ID:Distrotech,项目名称:ImageMagick,代码行数:50,
示例7: LoadTypeCache/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %+ L o a d T y p e C a c h e %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LoadTypeCache() loads the type configurations which provides a mapping% between type attributes and a type name.%% The format of the LoadTypeCache method is:%% MagickBooleanType LoadTypeCache(SplayTreeInfo *type_cache,% const char *xml,const char *filename,const size_t depth,% ExceptionInfo *exception)%% A description of each parameter follows:%% o xml: The type list in XML format.%% o filename: The type list filename.%% o depth: depth of <include /> statements.%% o exception: return any errors or warnings in this structure.%*/static inline MagickBooleanType SetTypeNodePath(const char *filename, char *font_path,const char *token,char **target){ char *path; path=ConstantString(token);#if defined(MAGICKCORE_WINDOWS_SUPPORT) if (strchr(path,'@') != (char *) NULL) SubstituteString(&path,"@[email C++ Condition_Lock函数代码示例 C++ ConcatTransforms函数代码示例
|