mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00

While `imagesetinterpolation()` is available as of PHP 5.5.0, there is no according getter function, so users would have to track the current interpolation method manually. To remedy this, we introduce `imagegetinterpolation()` as thin wrapper for `gdImageGetInterpolationMethod()` (which has been introduced with libgd 2.1.1), and use `im->interpolation_id` as fallback for older libgd. Since our bundled libgd does not yet have this function, we add it. We also simplify the recently introduced bug79068.phpt, where it is sufficient to check that the interpolation method has not been changed.
239 lines
8.8 KiB
PHP
239 lines
8.8 KiB
PHP
<?php
|
|
|
|
function gd_info(): array {}
|
|
|
|
function imageloadfont(string $filename): int|false {}
|
|
|
|
function imagesetstyle($im, array $styles): bool {}
|
|
|
|
function imagecreatetruecolor(int $x_size, int $y_size): GdImage|false {}
|
|
|
|
function imageistruecolor(GdImage $im): bool {}
|
|
|
|
function imagetruecolortopalette(GdImage $im, bool $ditherFlag, int $colorWanted): bool {}
|
|
|
|
function imagepalettetotruecolor(GdImage $im): bool {}
|
|
|
|
function imagecolormatch($im1, $im2): bool {}
|
|
|
|
function imagesetthickness(GdImage $im, int $thickness): bool {}
|
|
|
|
function imagefilledellipse(GdImage $im, int $cx, int $cy, int $w, int $h, int $color): bool {}
|
|
|
|
function imagefilledarc(GdImage $im, int $cx, int $cy, int $w, int $h, int $s, int $e, int $col, int $style): bool {}
|
|
|
|
function imagealphablending(GdImage $im, bool $blend): bool {}
|
|
|
|
function imagesavealpha(GdImage $im, bool $save): bool {}
|
|
|
|
function imagelayereffect(GdImage $im, int $effect): bool {}
|
|
|
|
function imagecolorallocatealpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
|
|
|
|
function imagecolorresolvealpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
|
|
|
|
function imagecolorclosestalpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
|
|
|
|
function imagecolorexactalpha(GdImage $im, int $red, int $green, int $blue, int $alpha): int|false {}
|
|
|
|
function imagecopyresampled(GdImage $dst_im, GdImage $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_w, int $dst_h, int $src_w, int $src_h): bool {}
|
|
|
|
#ifdef PHP_WIN32
|
|
|
|
function imagegrabwindow(int $handle, int $client_area = 0): GdImage|false {}
|
|
|
|
function imagegrabscreen(): GdImage|false {}
|
|
|
|
#endif
|
|
|
|
function imagerotate(GdImage $im, float $angle, int $bgdcolor, int $ignoretransparent = 0): GdImage|false {}
|
|
|
|
function imagesettile(GdImage $im, $tile): bool {}
|
|
|
|
function imagesetbrush(GdImage $im, $brush): bool {}
|
|
|
|
function imagecreate(int $x_size, int $y_size): GdImage|false {}
|
|
|
|
function imagetypes(): int {}
|
|
|
|
function imagecreatefromstring(string $image): GdImage|false {}
|
|
|
|
function imagecreatefromgif(string $filename): GdImage|false {}
|
|
|
|
#ifdef HAVE_GD_JPG
|
|
function imagecreatefromjpeg(string $filename): GdImage|false {}
|
|
#endif
|
|
|
|
#ifdef HAVE_GD_PNG
|
|
function imagecreatefrompng(string $filename): GdImage|false {}
|
|
#endif
|
|
|
|
#ifdef HAVE_GD_WEBP
|
|
function imagecreatefromwebp(string $filename): GdImage|false {}
|
|
#endif
|
|
|
|
function imagecreatefromxbm(string $filename): GdImage|false {}
|
|
|
|
#ifdef HAVE_GD_XPM
|
|
function imagecreatefromxpm(string $filename): GdImage|false {}
|
|
#endif
|
|
|
|
function imagecreatefromwbmp(string $filename): GdImage|false {}
|
|
|
|
function imagecreatefromgd(string $filename): GdImage|false {}
|
|
|
|
function imagecreatefromgd2(string $filename): GdImage|false {}
|
|
|
|
function imagecreatefromgd2part(string $filename, int $srcX, int $srcY, int $width, int $height): GdImage|false {}
|
|
|
|
#ifdef HAVE_GD_BMP
|
|
function imagecreatefrombmp(string $filename): GdImage|false {}
|
|
#endif
|
|
|
|
#ifdef HAVE_GD_TGA
|
|
function imagecreatefromtga(string $filename): GdImage|false {}
|
|
#endif
|
|
|
|
function imagexbm(GdImage $im, ?string $filename, int $foreground = UNKNOWN): bool {}
|
|
|
|
function imagegif(GdImage $im, $to = NULL): bool {}
|
|
|
|
#ifdef HAVE_GD_PNG
|
|
function imagepng(GdImage $im, $to = NULL, int $quality = UNKNOWN, int $filters = UNKNOWN): bool {}
|
|
#endif
|
|
|
|
#ifdef HAVE_GD_WEBP
|
|
function imagewebp(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {}
|
|
#endif
|
|
|
|
#ifdef HAVE_GD_JPG
|
|
function imagejpeg(GdImage $im, $to = NULL, int $quality = UNKNOWN): bool {}
|
|
#endif
|
|
|
|
function imagewbmp(GdImage $im, $to = NULL, int $foreground = UNKNOWN): bool {}
|
|
|
|
function imagegd(GdImage $im, $to = UNKNOWN): bool {}
|
|
|
|
function imagegd2(GdImage $im, $to = UNKNOWN, int $chunk_size = UNKNOWN, int $type = UNKNOWN): bool {}
|
|
|
|
#ifdef HAVE_GD_BMP
|
|
function imagebmp(GdImage $im, $to = NULL, int $compressed = 1): bool {}
|
|
#endif
|
|
|
|
function imagedestroy(GdImage $im): bool {}
|
|
|
|
function imagecolorallocate(GdImage $im, int $red, int $green, int $blue): int|false {}
|
|
|
|
function imagepalettecopy(GdImage $dst, GdImage $src): void {}
|
|
|
|
function imagecolorat(GdImage $im, int $x, int $y): int|false {}
|
|
|
|
function imagecolorclosest(GdImage $im, int $red, int $green, int $blue): int|false {}
|
|
|
|
function imagecolorclosesthwb(GdImage $im, int $red, int $green, int $blue): int|false {}
|
|
|
|
function imagecolordeallocate(GdImage $im, int $index): bool {}
|
|
|
|
function imagecolorresolve(GdImage $im, int $red, int $green, int $blue): int|false {}
|
|
|
|
function imagecolorexact(GdImage $im, int $red, int $green, int $blue): int|false {}
|
|
|
|
function imagecolorset(GdImage $im, int $color, int $red, int $green, int $blue, int $alpha = 0): ?bool {}
|
|
|
|
function imagecolorsforindex(GdImage $im, int $index): array|false {}
|
|
|
|
function imagegammacorrect(GdImage $im, float $inputgamma, float $outputgamma): bool {}
|
|
|
|
function imagesetpixel(GdImage $im, int $x, int $y, int $col): bool {}
|
|
|
|
function imageline(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}
|
|
|
|
function imagedashedline(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}
|
|
|
|
function imagerectangle(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}
|
|
|
|
function imagefilledrectangle(GdImage $im, int $x1, int $y1, int $x2, int $y2, int $col): bool {}
|
|
|
|
function imagearc(GdImage $im, int $cx, int $cy, int $w, int $h, int $s, int $e, int $col): bool {}
|
|
|
|
function imageellipse(GdImage $im, int $cx, int $cy, int $w, int $h, int $color): bool {}
|
|
|
|
function imagefilltoborder(GdImage $im, int $x, int $y, int $border, int $col): bool {}
|
|
|
|
function imagefill(GdImage $im, int $x, int $y, int $col): bool {}
|
|
|
|
function imagecolorstotal(GdImage $im): int {}
|
|
|
|
function imagecolortransparent(GdImage $im, int $col = UNKNOWN): ?int {}
|
|
|
|
function imageinterlace(GdImage $im, int $interlace = UNKNOWN): ?int {}
|
|
|
|
function imagepolygon(GdImage $im, array $points, int $num_points_or_col, int $col = UNKNOWN): bool {}
|
|
|
|
function imageopenpolygon(GdImage $im, array $points, int $num_points_or_col, int $col = UNKNOWN): bool {}
|
|
|
|
function imagefilledpolygon(GdImage $im, array $points, int $num_points_or_col, int $col = UNKNOWN): bool {}
|
|
|
|
function imagefontwidth(int $font): int {}
|
|
|
|
function imagefontheight(int $font): int {}
|
|
|
|
function imagechar(GdImage $im, int $font, int $x, int $y, string $c, int $col): bool {}
|
|
|
|
function imagecharup(GdImage $im, int $font, int $x, int $y, string $c, int $col): bool {}
|
|
|
|
function imagestring(GdImage $im, int $font, int $x, int $y, string $str, int $col): bool {}
|
|
|
|
function imagestringup(GdImage $im, int $font, int $x, int $y, string $str, int $col): bool {}
|
|
|
|
function imagecopy(GdImage $dst_im, GdImage $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h): bool {}
|
|
|
|
function imagecopymerge(GdImage $dst_im, GdImage $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h, int $pct): bool {}
|
|
|
|
function imagecopymergegray(GdImage $dst_im, GdImage $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_w, int $src_h, int $pct): bool {}
|
|
|
|
function imagecopyresized(GdImage $dst_im, GdImage $src_im, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_w, int $dst_h, int $src_w, int $src_h): bool {}
|
|
|
|
function imagesx(GdImage $im): int {}
|
|
|
|
function imagesy(GdImage $im): int {}
|
|
|
|
function imagesetclip(GdImage $im, int $x1, int $x2, int $y1, int $y2): bool {}
|
|
|
|
function imagegetclip(GdImage $im): array {}
|
|
|
|
#ifdef HAVE_GD_FREETYPE
|
|
function imageftbbox(float $size, float $angle, string $font_file, string $text, array $extrainfo = UNKNOWN): array|false {}
|
|
|
|
function imagefttext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text, array $extrainfo = UNKNOWN): array|false {}
|
|
|
|
function imagettfbbox(float $size, float $angle, string $font_file, string $text): array|false {}
|
|
|
|
function imagettftext(GdImage $im, float $size, float $angle, int $x, int $y, int $col, string $font_file, string $text) {}
|
|
#endif
|
|
|
|
function imagefilter(GdImage $im, int $filtertype, $arg1 = UNKNOWN, $arg2 = UNKNOWN, $arg3 = UNKNOWN, $arg4 = UNKNOWN): bool {}
|
|
|
|
function imageconvolution(GdImage $im, array $matrix3x3, float $div, float $offset): bool {}
|
|
|
|
function imageflip(GdImage $im, int $mode): bool {}
|
|
|
|
function imageantialias(GdImage $im, bool $on): bool {}
|
|
|
|
function imagecrop(GdImage $im, array $rect): GdImage|false {}
|
|
|
|
function imagecropauto(GdImage $im, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1): GdImage|false {}
|
|
|
|
function imagescale(GdImage $im, int $new_width, int $new_height = UNKNOWN, int $mode = IMG_BILINEAR_FIXED): GdImage|false {}
|
|
|
|
function imageaffine(GdImage $im, array $affine, array $clip = UNKNOWN): GdImage|false {}
|
|
|
|
function imageaffinematrixget(int $type, $options = UNKNOWN): array|false {}
|
|
|
|
function imageaffinematrixconcat(array $m1, array $m2): array|false {}
|
|
|
|
function imagegetinterpolation(GdImage $im): int {}
|
|
|
|
function imagesetinterpolation(GdImage $im, int $method = IMG_BILENEAR_FIXED): bool {}
|
|
|
|
function imageresolution(GdImage $im, int $res_x = UNKNOWN, int $res_y = UNKNOWN): array|bool {}
|