/external/ImageMagick/coders/ |
D | label.c | 98 *draw_info; in ReadLABELImage() local 132 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadLABELImage() 133 width=(size_t) floor(draw_info->pointsize*strlen(label)+0.5); in ReadLABELImage() 137 draw_info=DestroyDrawInfo(draw_info); in ReadLABELImage() 140 draw_info->text=ConstantString(label); in ReadLABELImage() 142 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage() 145 image->columns=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage() 146 image->rows=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage() 163 for (n=0; n < 32; n++, draw_info->pointsize*=2.0) in ReadLABELImage() 167 if (draw_info->gravity == UndefinedGravity) in ReadLABELImage() [all …]
|
D | caption.c | 107 *draw_info; in ReadCAPTIONImage() local 157 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadCAPTIONImage() 158 width=(size_t) floor(draw_info->pointsize*strlen(caption)+0.5); in ReadCAPTIONImage() 162 draw_info=DestroyDrawInfo(draw_info); in ReadCAPTIONImage() 165 (void) CloneString(&draw_info->text,caption); in ReadCAPTIONImage() 168 draw_info->gravity=(GravityType) ParseCommandOption(MagickGravityOptions, in ReadCAPTIONImage() 176 i=FormatMagickCaption(image,draw_info,split,&metrics,&text, in ReadCAPTIONImage() 178 (void) CloneString(&draw_info->text,text); in ReadCAPTIONImage() 182 if (draw_info->gravity == UndefinedGravity) in ReadCAPTIONImage() 183 (void) CloneString(&draw_info->geometry,geometry); in ReadCAPTIONImage() [all …]
|
D | mvg.c | 130 *draw_info; in ReadMVGImage() local 187 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadMVGImage() 188 if (draw_info->density != (char *) NULL) in ReadMVGImage() 189 draw_info->density=DestroyString(draw_info->density); in ReadMVGImage() 190 draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/ in ReadMVGImage() 192 draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/ in ReadMVGImage() 194 image->columns=(size_t) (draw_info->affine.sx*image->columns); in ReadMVGImage() 195 image->rows=(size_t) (draw_info->affine.sy*image->rows); in ReadMVGImage() 199 draw_info=DestroyDrawInfo(draw_info); in ReadMVGImage() 204 draw_info=DestroyDrawInfo(draw_info); in ReadMVGImage() [all …]
|
D | ttf.c | 184 *draw_info; in ReadTTFImage() local 255 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadTTFImage() 256 draw_info->font=AcquireString(""); in ReadTTFImage() 257 (void) ImageToFile(image,draw_info->font,exception); in ReadTTFImage() 258 ConcatenateString(&draw_info->primitive,"push graphic-context\n"); in ReadTTFImage() 261 ConcatenateString(&draw_info->primitive,buffer); in ReadTTFImage() 262 ConcatenateString(&draw_info->primitive," font-size 18\n"); in ReadTTFImage() 265 ConcatenateString(&draw_info->primitive,buffer); in ReadTTFImage() 267 ConcatenateString(&draw_info->primitive,text); in ReadTTFImage() 270 ConcatenateString(&draw_info->primitive,buffer); in ReadTTFImage() [all …]
|
D | pango.c | 126 *draw_info; in ReadPANGOImage() local 226 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadPANGOImage() 227 pango_context_set_base_dir(context,draw_info->direction == in ReadPANGOImage() 229 switch (draw_info->gravity) in ReadPANGOImage() 312 switch (draw_info->align) in ReadPANGOImage() 319 if (draw_info->gravity == CenterGravity) in ReadPANGOImage() 329 (draw_info->direction == RightToLeftDirection)) in ReadPANGOImage() 342 if (draw_info->font == (char *) NULL) in ReadPANGOImage() 345 description=pango_font_description_from_string(draw_info->font); in ReadPANGOImage() 347 draw_info->pointsize+0.5)); in ReadPANGOImage() [all …]
|
D | msl.c | 135 **draw_info; member 561 msl_info->draw_info=(DrawInfo **) ResizeQuantumMemory(msl_info->draw_info, in MSLPushImage() 562 (n+1),sizeof(*msl_info->draw_info)); in MSLPushImage() 568 (msl_info->draw_info == (DrawInfo **) NULL) || in MSLPushImage() 573 msl_info->draw_info[n]=CloneDrawInfo(msl_info->image_info[n-1], in MSLPushImage() 574 msl_info->draw_info[n-1]); in MSLPushImage() 597 msl_info->draw_info[msl_info->n]=DestroyDrawInfo( in MSLPopImage() 598 msl_info->draw_info[msl_info->n]); in MSLPopImage() 629 *draw_info; in MSLStartElement() local 775 draw_info=CloneDrawInfo(msl_info->image_info[n], in MSLStartElement() [all …]
|
D | txt.c | 169 *draw_info; in ReadTEXTImage() local 265 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in ReadTEXTImage() 266 (void) CloneString(&draw_info->text,image_info->filename); in ReadTEXTImage() 269 (void) CloneString(&draw_info->geometry,geometry); in ReadTEXTImage() 270 status=GetTypeMetrics(image,draw_info,&metrics,exception); in ReadTEXTImage() 273 draw_info=DestroyDrawInfo(draw_info); in ReadTEXTImage() 279 (void) CloneString(&draw_info->geometry,geometry); in ReadTEXTImage() 281 if (*draw_info->text != '\0') in ReadTEXTImage() 282 *draw_info->text='\0'; in ReadTEXTImage() 289 (void) ConcatenateString(&draw_info->text,text); in ReadTEXTImage() [all …]
|
D | wmf.c | 354 *draw_info; member 802 ddata->draw_wand = AcquireDrawingWand(ddata->draw_info,ddata->image); in ipa_device_open() 818 if (ddata->draw_info != (DrawInfo *) NULL) in ipa_device_close() 820 DestroyDrawInfo(ddata->draw_info); in ipa_device_close() 821 ddata->draw_info=(DrawInfo *)NULL; in ipa_device_close() 1534 *draw_info; in ipa_draw_text() local 1536 draw_info=ddata->draw_info; in ipa_draw_text() 1537 draw_info->font=WMF_FONT_PSNAME(font); in ipa_draw_text() 1538 draw_info->pointsize = pointsize; in ipa_draw_text() 1539 draw_info->text=draw_text->str; in ipa_draw_text() [all …]
|
/external/ImageMagick/MagickCore/ |
D | annotate.c | 273 const DrawInfo *draw_info,ExceptionInfo *exception) in AnnotateImage() argument 312 assert(draw_info != (DrawInfo *) NULL); in AnnotateImage() 313 assert(draw_info->signature == MagickCoreSignature); in AnnotateImage() 314 if (draw_info->text == (char *) NULL) in AnnotateImage() 316 if (*draw_info->text == '\0') in AnnotateImage() 318 textlist=StringToList(draw_info->text); in AnnotateImage() 326 annotate=CloneDrawInfo((ImageInfo *) NULL,draw_info); in AnnotateImage() 327 annotate_info=CloneDrawInfo((ImageInfo *) NULL,draw_info); in AnnotateImage() 351 draw_info->interline_spacing+0.5); in AnnotateImage() 492 if (draw_info->undercolor.alpha != TransparentAlpha) in AnnotateImage() [all …]
|
D | draw-private.h | 29 static inline void GetFillColor(const DrawInfo *draw_info,const ssize_t x, in GetFillColor() argument 32 if (draw_info->fill_pattern == (Image *) NULL) in GetFillColor() 34 *fill=draw_info->fill; in GetFillColor() 41 pattern=draw_info->fill_pattern; in GetFillColor() 44 if (fabs(draw_info->fill_alpha-TransparentAlpha) >= MagickEpsilon) in GetFillColor() 45 fill->alpha*=QuantumScale*draw_info->fill_alpha; in GetFillColor() 49 static inline void GetStrokeColor(const DrawInfo *draw_info,const ssize_t x, in GetStrokeColor() argument 52 if (draw_info->stroke_pattern == (Image *) NULL) in GetStrokeColor() 54 *stroke=draw_info->stroke; in GetStrokeColor() 61 pattern=draw_info->stroke_pattern; in GetStrokeColor() [all …]
|
D | draw.c | 235 *draw_info; in AcquireDrawInfo() local 237 draw_info=(DrawInfo *) AcquireCriticalMemory(sizeof(*draw_info)); in AcquireDrawInfo() 238 GetDrawInfo((ImageInfo *) NULL,draw_info); in AcquireDrawInfo() 239 return(draw_info); in AcquireDrawInfo() 270 const DrawInfo *draw_info) in CloneDrawInfo() argument 280 if (draw_info == (DrawInfo *) NULL) in CloneDrawInfo() 283 if (draw_info->primitive != (char *) NULL) in CloneDrawInfo() 284 (void) CloneString(&clone_info->primitive,draw_info->primitive); in CloneDrawInfo() 285 if (draw_info->geometry != (char *) NULL) in CloneDrawInfo() 286 (void) CloneString(&clone_info->geometry,draw_info->geometry); in CloneDrawInfo() [all …]
|
D | montage.c | 335 *draw_info; in MontageImageList() local 527 draw_info=CloneDrawInfo(clone_info,(DrawInfo *) NULL); in MontageImageList() 529 (void) CloneString(&draw_info->font,montage_info->font); in MontageImageList() 531 draw_info->pointsize=montage_info->pointsize; in MontageImageList() 532 draw_info->gravity=CenterGravity; in MontageImageList() 533 draw_info->stroke=montage_info->stroke; in MontageImageList() 534 draw_info->fill=montage_info->fill; in MontageImageList() 535 draw_info->text=AcquireString(""); in MontageImageList() 536 (void) GetTypeMetrics(image_list[0],draw_info,&metrics,exception); in MontageImageList() 686 draw_clone_info=CloneDrawInfo(image_info,draw_info); in MontageImageList() [all …]
|
D | xwindow.c | 2281 const XPixelInfo *pixel,XDrawInfo *draw_info,Image *image, in XDrawImage() argument 2322 assert(draw_info != (XDrawInfo *) NULL); in XDrawImage() 2331 draw_pixmap=XCreatePixmap(display,root_window,draw_info->width, in XDrawImage() 2332 draw_info->height,depth); in XDrawImage() 2340 context_values.line_width=(int) draw_info->line_width; in XDrawImage() 2348 (void) XFillRectangle(display,draw_pixmap,draw_context,0,0,draw_info->width, in XDrawImage() 2349 draw_info->height); in XDrawImage() 2355 if (draw_info->stipple != (Pixmap) NULL) in XDrawImage() 2358 (void) XSetStipple(display,draw_context,draw_info->stipple); in XDrawImage() 2360 switch (draw_info->element) in XDrawImage() [all …]
|
D | paint.c | 113 const DrawInfo *draw_info,const PixelInfo *target,const ssize_t x_offset, in FloodfillPaintImage() argument 173 assert(draw_info != (DrawInfo *) NULL); in FloodfillPaintImage() 174 assert(draw_info->signature == MagickCoreSignature); in FloodfillPaintImage() 184 (draw_info->fill.alpha_trait != UndefinedPixelTrait)) in FloodfillPaintImage() 350 GetFillColor(draw_info,x,y,&fill_color,exception); in FloodfillPaintImage() 412 *draw_info; in GradientImage() local 429 draw_info=AcquireDrawInfo(); in GradientImage() 430 gradient=(&draw_info->gradient); in GradientImage() 613 status=DrawGradientImage(image,draw_info,exception); in GradientImage() 614 draw_info=DestroyDrawInfo(draw_info); in GradientImage()
|
D | display.c | 3804 *draw_info; in XColorEditImage() local 3824 draw_info=CloneDrawInfo(resource_info->image_info, in XColorEditImage() 3827 AllCompliance,&draw_info->fill,exception); in XColorEditImage() 3828 (void) FloodfillPaintImage(*image,draw_info,&target, in XColorEditImage() 3831 draw_info=DestroyDrawInfo(draw_info); in XColorEditImage() 5485 draw_info; in XDrawEditImage() local 5521 draw_info.stencil=OpaqueStencil; in XDrawEditImage() 5614 draw_info.stencil=TransparentStencil; in XDrawEditImage() 5639 draw_info.stencil=OpaqueStencil; in XDrawEditImage() 6251 draw_info.x=(int) rectangle_info.x; in XDrawEditImage() [all …]
|
D | feature.c | 1769 *draw_info; in RenderHoughLines() local 1789 draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL); in RenderHoughLines() 1790 draw_info->affine.sx=image->resolution.x == 0.0 ? 1.0 : image->resolution.x/ in RenderHoughLines() 1792 draw_info->affine.sy=image->resolution.y == 0.0 ? 1.0 : image->resolution.y/ in RenderHoughLines() 1794 image->columns=(size_t) (draw_info->affine.sx*image->columns); in RenderHoughLines() 1795 image->rows=(size_t) (draw_info->affine.sy*image->rows); in RenderHoughLines() 1808 draw_info->primitive=FileToString(image->filename,~0UL,exception); in RenderHoughLines() 1811 draw_info->primitive=(char *) AcquireMagickMemory((size_t) in RenderHoughLines() 1813 if (draw_info->primitive != (char *) NULL) in RenderHoughLines() 1815 (void) memcpy(draw_info->primitive,GetBlobStreamData(image), in RenderHoughLines() [all …]
|
D | fx.c | 4028 MagickExport Image *PolaroidImage(const Image *image,const DrawInfo *draw_info, in PolaroidImage() argument 4090 annotate_info=CloneDrawInfo((const ImageInfo *) NULL,draw_info); in PolaroidImage() 5544 *draw_info; in VignetteImage() local 5577 draw_info=CloneDrawInfo((const ImageInfo *) NULL,(const DrawInfo *) NULL); in VignetteImage() 5578 (void) QueryColorCompliance("#ffffff",AllCompliance,&draw_info->fill, in VignetteImage() 5580 (void) QueryColorCompliance("#ffffff",AllCompliance,&draw_info->stroke, in VignetteImage() 5585 draw_info->primitive=AcquireString(ellipse); in VignetteImage() 5586 (void) DrawImage(oval_image,draw_info,exception); in VignetteImage() 5587 draw_info=DestroyDrawInfo(draw_info); in VignetteImage()
|
/external/ImageMagick/MagickWand/ |
D | magick-wand.c | 521 *draw_info; in MagickQueryFontMetrics() local 543 draw_info=PeekDrawingWand(drawing_wand); in MagickQueryFontMetrics() 544 if (draw_info == (DrawInfo *) NULL) in MagickQueryFontMetrics() 549 (void) CloneString(&draw_info->text,text); in MagickQueryFontMetrics() 551 status=GetTypeMetrics(wand->images,draw_info,&metrics,wand->exception); in MagickQueryFontMetrics() 552 draw_info=DestroyDrawInfo(draw_info); in MagickQueryFontMetrics() 628 *draw_info; in MagickQueryMultilineFontMetrics() local 650 draw_info=PeekDrawingWand(drawing_wand); in MagickQueryMultilineFontMetrics() 651 if (draw_info == (DrawInfo *) NULL) in MagickQueryMultilineFontMetrics() 656 (void) CloneString(&draw_info->text,text); in MagickQueryMultilineFontMetrics() [all …]
|
D | wandcli.c | 113 cli_wand->draw_info=CloneDrawInfo(cli_wand->wand.image_info,(DrawInfo *) NULL); in AcquireMagickCLI() 167 if (cli_wand->draw_info != (DrawInfo *) NULL ) in DestroyMagickCLI() 168 cli_wand->draw_info=DestroyDrawInfo(cli_wand->draw_info); in DestroyMagickCLI()
|
D | mogrify.c | 689 *draw_info; in MogrifyImage() local 731 draw_info=CloneDrawInfo(mogrify_info,(DrawInfo *) NULL); in MogrifyImage() 809 GetAffineMatrix(&draw_info->affine); in MogrifyImage() 812 (void) ParseAffineGeometry(argv[i+1],&draw_info->affine,exception); in MogrifyImage() 844 (void) CloneString(&draw_info->text,text); in MogrifyImage() 848 (void) CloneString(&draw_info->geometry,geometry_str); in MogrifyImage() 849 draw_info->affine.sx=cos(DegreesToRadians( in MogrifyImage() 851 draw_info->affine.rx=sin(DegreesToRadians( in MogrifyImage() 853 draw_info->affine.ry=(-sin(DegreesToRadians( in MogrifyImage() 855 draw_info->affine.sy=cos(DegreesToRadians( in MogrifyImage() [all …]
|
D | magick-image.c | 536 *draw_info; in MagickAffineTransformImage() local 547 draw_info=PeekDrawingWand(drawing_wand); in MagickAffineTransformImage() 548 if (draw_info == (DrawInfo *) NULL) in MagickAffineTransformImage() 550 affine_image=AffineTransformImage(wand->images,&draw_info->affine, in MagickAffineTransformImage() 552 draw_info=DestroyDrawInfo(draw_info); in MagickAffineTransformImage() 601 *draw_info; in MagickAnnotateImage() local 612 draw_info=PeekDrawingWand(drawing_wand); in MagickAnnotateImage() 613 if (draw_info == (DrawInfo *) NULL) in MagickAnnotateImage() 615 (void) CloneString(&draw_info->text,text); in MagickAnnotateImage() 617 draw_info->affine.sx=cos((double) DegreesToRadians(fmod(angle,360.0))); in MagickAnnotateImage() [all …]
|
D | wandcli-private.h | 110 *draw_info; /* for CLI API usage, not used by MagickWand API */ member
|
D | drawing-wand.c | 372 WandExport DrawingWand *AcquireDrawingWand(const DrawInfo *draw_info, in AcquireDrawingWand() argument 379 if (draw_info != (const DrawInfo *) NULL) in AcquireDrawingWand() 382 CurrentContext=CloneDrawInfo((ImageInfo *) NULL,draw_info); in AcquireDrawingWand() 2485 *draw_info; in DrawGetTypeMetrics() local 2494 draw_info=PeekDrawingWand(wand); in DrawGetTypeMetrics() 2495 if (draw_info == (DrawInfo *) NULL) in DrawGetTypeMetrics() 2497 (void) CloneString(&draw_info->text,text); in DrawGetTypeMetrics() 2499 status=GetTypeMetrics(wand->image,draw_info,metrics,wand->exception); in DrawGetTypeMetrics() 2501 status=GetMultilineTypeMetrics(wand->image,draw_info,metrics, in DrawGetTypeMetrics() 2503 draw_info=DestroyDrawInfo(draw_info); in DrawGetTypeMetrics() [all …]
|
/external/ImageMagick/PerlMagick/ |
D | Magick.xs | 8397 *draw_info; in Mogrify() local 8399 draw_info=CloneDrawInfo(info ? info->image_info : (ImageInfo *) NULL, in Mogrify() 8409 (void) CloneString(&draw_info->text,text); in Mogrify() 8413 (void) CloneString(&draw_info->font, in Mogrify() 8416 draw_info->pointsize=argument_list[2].real_reference; in Mogrify() 8418 (void) CloneString(&draw_info->density, in Mogrify() 8422 AllCompliance,&draw_info->undercolor,exception); in Mogrify() 8426 AllCompliance,&draw_info->stroke,exception); in Mogrify() 8428 draw_info->stroke_pattern=CloneImage( in Mogrify() 8434 AllCompliance,&draw_info->fill,exception); in Mogrify() [all …]
|
/external/ImageMagick/PerlMagick/quantum/ |
D | quantum.xs.in | 8398 *draw_info; local 8400 draw_info=CloneDrawInfo(info ? info->image_info : (ImageInfo *) NULL, 8410 (void) CloneString(&draw_info->text,text); 8414 (void) CloneString(&draw_info->font, 8417 draw_info->pointsize=argument_list[2].real_reference; 8419 (void) CloneString(&draw_info->density, 8423 AllCompliance,&draw_info->undercolor,exception); 8427 AllCompliance,&draw_info->stroke,exception); 8429 draw_info->stroke_pattern=CloneImage( 8435 AllCompliance,&draw_info->fill,exception); [all …]
|