DrawAnnotation question

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
erotavlas_turbo

DrawAnnotation question

Post by erotavlas_turbo »

Hi all,

I'm writing a C code that use the following method:

DrawAnnotation(d_wand,x,y,(const unsigned char *) member_list->callername), where member_list is data structure with char* callername field.

When i run the program I get the following error:

Code: Select all

asterisk: wand/drawing-wand.c:770: DrawAnnotation: Assertion `text != (const unsigned char *) ((void *)0)' failed.
If i write the same data to a text file, the program will work well
fprintf(file,"CallerName %s, member_list->callername);

Can you help me?

Thank you in advance
erotavlas_turbo

Re: DrawAnnotation question

Post by erotavlas_turbo »

Hi,

anyone can help me?

Thank
erotavlas_turbo

Re: DrawAnnotation question

Post by erotavlas_turbo »

I have solved with the following trick

Code: Select all

char buffer[50];
			
       			
			sprintf( buffer, "%d", member_list->id );	
        		DrawAnnotation(d_wand,x+175,y,(const unsigned char *) buffer );
:D
Post Reply