Home | History | Annotate | Download | only in MagickCore

Lines Matching full:affine

270   clone_info->affine=draw_info->affine;
962 % dictated by the affine transform.
967 % const AffineMatrix *affine,ExceptionInfo *exception)
975 % o affine: the affine transform.
981 static SegmentInfo AffineEdge(const Image *image,const AffineMatrix *affine,
1001 z=affine->ry*y+affine->tx;
1002 if (affine->sx >= DrawEpsilon)
1004 intercept=(-z/affine->sx);
1008 intercept=(-z+(double) image->columns)/affine->sx;
1014 if (affine->sx < -DrawEpsilon)
1016 intercept=(-z+(double) image->columns)/affine->sx;
1020 intercept=(-z/affine->sx);
1034 z=affine->sy*y+affine->ty;
1035 if (affine->rx >= DrawEpsilon)
1037 intercept=(-z/affine->rx);
1041 intercept=(-z+(double) image->rows)/affine->rx;
1047 if (affine->rx < -DrawEpsilon)
1049 intercept=(-z+(double) image->rows)/affine->rx;
1053 intercept=(-z/affine->rx);
1067 static AffineMatrix InverseAffineMatrix(const AffineMatrix *affine)
1075 determinant=PerceptibleReciprocal(affine->sx*affine->sy-affine->rx*
1076 affine->ry);
1077 inverse_affine.sx=determinant*affine->sy;
1078 inverse_affine.rx=determinant*(-affine->rx);
1079 inverse_affine.ry=determinant*(-affine->ry);
1080 inverse_affine.sy=determinant*affine->sx;
1081 inverse_affine.tx=(-affine->tx)*inverse_affine.sx-affine->ty*
1083 inverse_affine.ty=(-affine->tx)*inverse_affine.rx-affine->ty*
1089 const Image *source,const AffineMatrix *affine,ExceptionInfo *exception)
1129 assert(affine != (AffineMatrix *) NULL);
1144 extent[i].x=point.x*affine->sx+point.y*affine->ry+affine->tx;
1145 extent[i].y=point.x*affine->rx+point.y*affine->sy+affine->ty;
1161 Affine transform image.
1170 inverse_affine=InverseAffineMatrix(affine);
1311 mid=(resolution.x/72.0)*ExpandAffine(&clone_info->affine)*
1537 scale=ExpandAffine(&draw_info->affine);
1693 affine,
1837 current=graphic_context[n]->affine;
1838 GetAffineMatrix(&affine);
1846 if (LocaleCompare("affine",keyword) == 0)
1849 affine.sx=StringToDouble(token,&next_token);
1855 affine.rx=StringToDouble(token,&next_token);
1861 affine.ry=StringToDouble(token,&next_token);
1867 affine.sy=StringToDouble(token,&next_token);
1873 affine.tx=StringToDouble(token,&next_token);
1879 affine.ty=StringToDouble(token,&next_token);
1960 affine.sx=draw_info->bounds.x2;
1961 affine.sy=draw_info->bounds.y2;
1962 affine.tx=draw_info->bounds.x1;
1963 affine.ty=draw_info->bounds.y1;
2402 bounds.x1=graphic_context[n]->affine.sx*segment.x1+
2403 graphic_context[n]->affine.ry*segment.y1+
2404 graphic_context[n]->affine.tx;
2405 bounds.y1=graphic_context[n]->affine.rx*segment.x1+
2406 graphic_context[n]->affine.sy*segment.y1+
2407 graphic_context[n]->affine.ty;
2408 bounds.x2=graphic_context[n]->affine.sx*segment.x2+
2409 graphic_context[n]->affine.ry*segment.y2+
2410 graphic_context[n]->affine.tx;
2411 bounds.y2=graphic_context[n]->affine.rx*segment.x2+
2412 graphic_context[n]->affine.sy*segment.y2+
2413 graphic_context[n]->affine.ty;
2527 affine.sx=cos(DegreesToRadians(fmod((double) angle,360.0)));
2528 affine.rx=sin(DegreesToRadians(fmod((double) angle,360.0)));
2529 affine.ry=(-sin(DegreesToRadians(fmod((double) angle,360.0))));
2530 affine.sy=cos(DegreesToRadians(fmod((double) angle,360.0)));
2547 affine.sx=StringToDouble(token,&next_token);
2553 affine.sy=StringToDouble(token,&next_token);
2564 affine.ry=sin(DegreesToRadians(angle));
2573 affine.rx=(-tan(DegreesToRadians(angle)/2.0));
2808 affine.tx=StringToDouble(token,&next_token);
2814 affine.ty=StringToDouble(token,&next_token);
2866 if ((fabs(affine.sx-1.0) >= DrawEpsilon) ||
2867 (fabs(affine.rx) >= DrawEpsilon) || (fabs(affine.ry) >= DrawEpsilon) ||
2868 (fabs(affine.sy-1.0) >= DrawEpsilon) ||
2869 (fabs(affine.tx) >= DrawEpsilon) || (fabs(affine.ty) >= DrawEpsilon))
2871 graphic_context[n]->affine.sx=current.sx*affine.sx+current.ry*affine.rx;
2872 graphic_context[n]->affine.rx=current.rx*affine.sx+current.sy*affine.rx;
2873 graphic_context[n]->affine.ry=current.sx*affine.ry+current.ry*affine.sy;
2874 graphic_context[n]->affine.sy=current.rx*affine.ry+current.sy*affine.sy;
2875 graphic_context[n]->affine.tx=current.sx*affine.tx+current.ry*affine.ty+
2877 graphic_context[n]->affine.ty=current.rx*affine.tx+current.sy*affine.ty+
3235 primitive_info[i].point.x=graphic_context[n]->affine.sx*point.x+
3236 graphic_context[n]->affine.ry*point.y+graphic_context[n]->affine.tx;
3237 primitive_info[i].point.y=graphic_context[n]->affine.rx*point.x+
3238 graphic_context[n]->affine.sy*point.y+graphic_context[n]->affine.ty;
4022 mid=ExpandAffine(&draw_info->affine)*draw_info->stroke_width/2.0;
4346 " affine: %g,%g,%g,%g,%g,%g",draw_info->affine.sx,
4347 draw_info->affine.rx,draw_info->affine.ry,draw_info->affine.sy,
4348 draw_info->affine.tx,draw_info->affine.ty);
4593 affine;
4655 affine=draw_info->affine;
4656 affine.tx=(double) geometry.x;
4657 affine.ty=(double) geometry.y;
4660 (void) DrawAffineImage(image,composite_image,&affine,exception);
4718 scale=ExpandAffine(&draw_info->affine);
4736 mid=ExpandAffine(&draw_info->affine)*draw_info->stroke_width/2.0;
4918 % o affine_matrix: the affine matrix.
4976 GetAffineMatrix(&draw_info->affine);
6086 mid=ExpandAffine(&draw_info->affine)*draw_info->stroke_width/2.0;