Lines Matching refs:src
20 void gdImageSkewX (gdImagePtr dst, gdImagePtr src, int uRow, int iOffset, double dWeight, int clrBa… in gdImageSkewX() argument
29 if (src->trueColor) { in gdImageSkewX()
34 clrBackR = gdImageRed(src, clrBack); in gdImageSkewX()
35 clrBackG = gdImageGreen(src, clrBack); in gdImageSkewX()
36 clrBackB = gdImageBlue(src, clrBack); in gdImageSkewX()
37 clrBackA = gdImageAlpha(src, clrBack); in gdImageSkewX()
50 for (i = 0; i < src->sx; i++) { in gdImageSkewX()
51 pxlSrc = f (src,i,uRow); in gdImageSkewX()
53 r = (int)(gdImageRed(src,pxlSrc) * dWeight); in gdImageSkewX()
54 g = (int)(gdImageGreen(src,pxlSrc) * dWeight); in gdImageSkewX()
55 b = (int)(gdImageBlue(src,pxlSrc) * dWeight); in gdImageSkewX()
56 a = (int)(gdImageAlpha(src,pxlSrc) * dWeight); in gdImageSkewX()
58 pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); in gdImageSkewX()
61 pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); in gdImageSkewX()
64 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewX()
65 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewX()
66 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewX()
67 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewX()
117 void gdImageSkewY (gdImagePtr dst, gdImagePtr src, int uCol, int iOffset, double dWeight, int clrBa… in gdImageSkewY() argument
124 if (src->trueColor) { in gdImageSkewY()
133 r = (int)((double)gdImageRed(src,clrBack) * dWeight); in gdImageSkewY()
134 g = (int)((double)gdImageGreen(src,clrBack) * dWeight); in gdImageSkewY()
135 b = (int)((double)gdImageBlue(src,clrBack) * dWeight); in gdImageSkewY()
136 a = (int)((double)gdImageAlpha(src,clrBack) * dWeight); in gdImageSkewY()
140 for (i = 0; i < src->sy; i++) { in gdImageSkewY()
141 pxlSrc = f (src, uCol, i); in gdImageSkewY()
144 r = (int)((double)gdImageRed(src,pxlSrc) * dWeight); in gdImageSkewY()
145 g = (int)((double)gdImageGreen(src,pxlSrc) * dWeight); in gdImageSkewY()
146 b = (int)((double)gdImageBlue(src,pxlSrc) * dWeight); in gdImageSkewY()
147 a = (int)((double)gdImageAlpha(src,pxlSrc) * dWeight); in gdImageSkewY()
149 pxlLeft = gdImageColorAllocateAlpha(src, r, g, b, a); in gdImageSkewY()
152 pxlLeft = gdImageColorClosestAlpha(src, r, g, b, a); in gdImageSkewY()
155 r = gdImageRed(src,pxlSrc) - (gdImageRed(src,pxlLeft) - gdImageRed(src,pxlOldLeft)); in gdImageSkewY()
156 g = gdImageGreen(src,pxlSrc) - (gdImageGreen(src,pxlLeft) - gdImageGreen(src,pxlOldLeft)); in gdImageSkewY()
157 b = gdImageBlue(src,pxlSrc) - (gdImageBlue(src,pxlLeft) - gdImageBlue(src,pxlOldLeft)); in gdImageSkewY()
158 a = gdImageAlpha(src,pxlSrc) - (gdImageAlpha(src,pxlLeft) - gdImageAlpha(src,pxlOldLeft)); in gdImageSkewY()
205 gdImagePtr gdImageRotate90 (gdImagePtr src, int ignoretransparent) in gdImageRotate90() argument
213 if (src->trueColor) { in gdImageRotate90()
218 dst = gdImageCreateTrueColor(src->sy, src->sx); in gdImageRotate90()
224 dst->transparent = src->transparent; in gdImageRotate90()
226 gdImagePaletteCopy (dst, src); in gdImageRotate90()
228 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate90()
229 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate90()
230 c = f (src, uX, uY); in gdImageRotate90()
231 if (!src->trueColor) { in gdImageRotate90()
232 r = gdImageRed(src,c); in gdImageRotate90()
233 g = gdImageGreen(src,c); in gdImageRotate90()
234 b = gdImageBlue(src,c); in gdImageRotate90()
235 a = gdImageAlpha(src,c); in gdImageRotate90()
252 gdImagePtr gdImageRotate180 (gdImagePtr src, int ignoretransparent) in gdImageRotate180() argument
260 if (src->trueColor) { in gdImageRotate180()
265 dst = gdImageCreateTrueColor(src->sx, src->sy); in gdImageRotate180()
271 dst->transparent = src->transparent; in gdImageRotate180()
273 gdImagePaletteCopy (dst, src); in gdImageRotate180()
275 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate180()
276 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate180()
277 c = f (src, uX, uY); in gdImageRotate180()
278 if (!src->trueColor) { in gdImageRotate180()
279 r = gdImageRed(src,c); in gdImageRotate180()
280 g = gdImageGreen(src,c); in gdImageRotate180()
281 b = gdImageBlue(src,c); in gdImageRotate180()
282 a = gdImageAlpha(src,c); in gdImageRotate180()
300 gdImagePtr gdImageRotate270 (gdImagePtr src, int ignoretransparent) in gdImageRotate270() argument
308 if (src->trueColor) { in gdImageRotate270()
313 dst = gdImageCreateTrueColor (src->sy, src->sx); in gdImageRotate270()
319 dst->transparent = src->transparent; in gdImageRotate270()
321 gdImagePaletteCopy (dst, src); in gdImageRotate270()
323 for (uY = 0; uY<src->sy; uY++) { in gdImageRotate270()
324 for (uX = 0; uX<src->sx; uX++) { in gdImageRotate270()
325 c = f (src, uX, uY); in gdImageRotate270()
326 if (!src->trueColor) { in gdImageRotate270()
327 r = gdImageRed(src,c); in gdImageRotate270()
328 g = gdImageGreen(src,c); in gdImageRotate270()
329 b = gdImageBlue(src,c); in gdImageRotate270()
330 a = gdImageAlpha(src,c); in gdImageRotate270()
347 gdImagePtr gdImageRotate45 (gdImagePtr src, double dAngle, int clrBack, int ignoretransparent) in gdImageRotate45() argument
362 newx = (int)(src->sx + src->sy * fabs(dTan)); in gdImageRotate45()
363 newy = src->sy; in gdImageRotate45()
366 if (src->trueColor) { in gdImageRotate45()
384 gdImageCopy (dst1, src,0,0,0,0,src->sx,src->sy); in gdImageRotate45()
388 gdImagePaletteCopy (dst1, src); in gdImageRotate45()
391 if (gdImageTrueColor(src)) { in gdImageRotate45()
392 dst1->transparent = src->transparent; in gdImageRotate45()
395 …arent = gdTrueColorAlpha(gdImageRed(src, src->transparent), gdImageBlue(src, src->transparent), gd… in gdImageRotate45()
411 gdImageSkewX(dst1, src, u, iShear, (dShear - iShear), clrBack, ignoretransparent); in gdImageRotate45()
418 if(!src->trueColor) { in gdImageRotate45()
419 clrBackR = gdImageRed(src, clrBack); in gdImageRotate45()
420 clrBackG = gdImageGreen(src, clrBack); in gdImageRotate45()
421 clrBackB = gdImageBlue(src, clrBack); in gdImageRotate45()
422 clrBackA = gdImageAlpha(src, clrBack); in gdImageRotate45()
429 dOffset = (src->sx-1) * dSinE; in gdImageRotate45()
431 dOffset = -dSinE * (src->sx - newx); in gdImageRotate45()
434 newy = (int) ((double) src->sx * fabs( dSinE ) + (double) src->sy * cos (dRadAngle))+1; in gdImageRotate45()
436 if (src->trueColor) { in gdImageRotate45()
465 newx = (int) ((double)src->sy * fabs (dSinE) + (double)src->sx * cos (dRadAngle)) + 1; in gdImageRotate45()
468 if (src->trueColor) { in gdImageRotate45()
490 dOffset = (double)(src->sx - 1) * dSinE * -dTan; in gdImageRotate45()
492 dOffset = dTan * ((double)(src->sx - 1) * -dSinE + (double)(1 - newy)); in gdImageRotate45()
505 gdImagePtr gdImageRotate (gdImagePtr src, double dAngle, int clrBack, int ignoretransparent) in gdImageRotate() argument
510 if (src == NULL) { in gdImageRotate()
514 if (!gdImageTrueColor(src) && (clrBack < 0 || clrBack>=gdImageColorsTotal(src))) { in gdImageRotate()
527 return gdImageRotate90(src, ignoretransparent); in gdImageRotate()
530 return gdImageRotate180(src, ignoretransparent); in gdImageRotate()
533 return gdImageRotate270 (src, ignoretransparent); in gdImageRotate()
537 pMidImg = gdImageRotate90 (src, ignoretransparent); in gdImageRotate()
540 pMidImg = gdImageRotate180 (src, ignoretransparent); in gdImageRotate()
543 pMidImg = gdImageRotate270 (src, ignoretransparent); in gdImageRotate()
546 return gdImageRotate45 (src, dAngle, clrBack, ignoretransparent); in gdImageRotate()