Searched refs:transparent (Results 1 - 10 of 10) sorted by relevance

/PHP_TRUNK/ext/gd/libgd/
H A Dgd_gd.c47 if (!gdGetInt(&im->transparent, in)) {
54 if (!gdGetWord(&im->transparent, in)) {
57 if (im->transparent == 257) {
58 im->transparent = (-1);
62 GD2_DBG(printf("Pallette had %d colours (T=%d)\n", im->colorsTotal, im->transparent));
220 gdPutInt(im->transparent, out);
H A Dgd_gif_out.c135 out, tim->sx, tim->sy, tim->interlace, 0, tim->transparent, BitsPerPixel,
354 * Write out extension for transparent colour index, if necessary.
H A Dgd_topal.c377 /* 2.0.12: Steven Brown: support a single totally transparent
379 if ((oim->transparent >= 0) && (*ptr == oim->transparent))
829 * won't use it on pixels that shouldn't have been transparent. We'll
831 if (oim->transparent >= 0)
833 /* Save the transparent color. */
834 nim->red[nim->colorsTotal] = gdTrueColorGetRed (oim->transparent);
835 nim->green[nim->colorsTotal] = gdTrueColorGetGreen (oim->transparent);
836 nim->blue[nim->colorsTotal] = gdTrueColorGetBlue (oim->transparent);
1329 /* If the pixel is transparent, w
[all...]
H A Dgd_png.c134 volatile int transparent = -1; local
237 * first fully transparent entry, if any, as the value of
247 transparent = i;
277 transparent = trans_gray_rgb->gray >> 8;
279 transparent = trans_gray_rgb->gray;
283 * is supposed to be transparent. IOW, both opaque pixels and
284 * transparent pixels will be mapped into the transparent entry.
301 * for a rare situation in which the transparent pixel may not
307 transparent
477 volatile int transparent = im->transparent; local
[all...]
H A Dgd_rotate.c85 if (ignoretransparent && pxlSrc == dst->transparent) {
86 pxlSrc = dst->transparent;
176 if (ignoretransparent && pxlSrc == dst->transparent) {
177 pxlSrc = dst->transparent;
224 dst->transparent = src->transparent;
238 if (ignoretransparent && c == dst->transparent) {
239 gdImageSetPixel(dst, uY, (dst->sy - uX - 1), dst->transparent);
271 dst->transparent = src->transparent;
[all...]
H A Dgd_crop.c62 dst->transparent = src->transparent;
H A Dgd_interpolation.c650 if (c == im->transparent) {
687 if (border == im->transparent) {
701 if (c == im->transparent) {
737 if (border == im->transparent) {
1159 if (c == im->transparent) {
1195 if (border == im->transparent) {
1217 const int transparent = im->transparent; local
1223 new_img->transparent = gdTrueColorAlpha(im->red[transparent], i
[all...]
H A Dgd.h192 int transparent; member in struct:gdImageStruct
210 100% transparent correctly, and do something
339 /* NOT the same as the transparent color index.
538 gdAlphaMax (127, **NOT 255**) is transparent, 0 is completely
576 considered 100% transparent. FOR TRUECOLOR IMAGES,
739 #define gdImageGetTransparent(im) ((im)->transparent)
819 * GD_CROP_TRANSPARENT - Crop using the transparent color
H A Dgd_gif_in.c66 int transparent;
H A Dgd.c152 im->transparent = (-1);
206 im->transparent = (-1);
546 if (c == im->transparent)
549 * been designated as the transparent color */
597 if (im->transparent != -1) {
598 im->alpha[im->transparent] = gdAlphaOpaque;
606 im->transparent = color;
785 return gdTrueColorAlpha(im->red[p], im->green[p], im->blue[p], (im->transparent == p) ? gdAlphaTransparent : im->alpha[p]);
2160 /* 2.0.10: needs a transparent-index check that is still valid if
2176 if (c != src->transparent) {
[all...]

Completed in 22 milliseconds