Lines Matching refs:draw_info
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()
168 (void) CloneString(&draw_info->geometry,geometry); in ReadLABELImage()
169 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
172 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
173 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage()
187 draw_info=DestroyDrawInfo(draw_info); in ReadLABELImage()
191 high=draw_info->pointsize; in ReadLABELImage()
194 draw_info->pointsize=(low+high)/2.0; in ReadLABELImage()
197 if (draw_info->gravity == UndefinedGravity) in ReadLABELImage()
198 (void) CloneString(&draw_info->geometry,geometry); in ReadLABELImage()
199 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
202 width=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
203 height=(size_t) floor(metrics.height+draw_info->stroke_width+0.5); in ReadLABELImage()
207 low=draw_info->pointsize+0.5; in ReadLABELImage()
209 high=draw_info->pointsize-0.5; in ReadLABELImage()
214 low=draw_info->pointsize+0.5; in ReadLABELImage()
216 high=draw_info->pointsize-0.5; in ReadLABELImage()
220 draw_info->pointsize=(low+high)/2.0-0.5; in ReadLABELImage()
221 status=GetMultilineTypeMetrics(image,draw_info,&metrics,exception); in ReadLABELImage()
227 draw_info=DestroyDrawInfo(draw_info); in ReadLABELImage()
232 image->columns=(size_t) floor(metrics.width+draw_info->stroke_width+0.5); in ReadLABELImage()
234 image->columns=(size_t) floor(draw_info->pointsize+draw_info->stroke_width+ in ReadLABELImage()
238 draw_info->stroke_width+0.5); in ReadLABELImage()
240 image->rows=(size_t) floor(draw_info->pointsize+draw_info->stroke_width+ in ReadLABELImage()
245 draw_info=DestroyDrawInfo(draw_info); in ReadLABELImage()
250 draw_info=DestroyDrawInfo(draw_info); in ReadLABELImage()
258 draw_info->direction == RightToLeftDirection ? (double) image->columns- in ReadLABELImage()
259 metrics.bounds.x2 : 0.0,draw_info->gravity == UndefinedGravity ? in ReadLABELImage()
261 (void) CloneString(&draw_info->geometry,geometry); in ReadLABELImage()
262 status=AnnotateImage(image,draw_info,exception); in ReadLABELImage()
269 draw_info->pointsize); in ReadLABELImage()
272 draw_info=DestroyDrawInfo(draw_info); in ReadLABELImage()