php-src/ext/gd/gd.stub.php

275 lines
10 KiB
PHP
Raw Normal View History

2019-08-11 08:14:51 +00:00
<?php
/** @generate-class-entries */
2021-07-20 03:35:44 +00:00
/**
* @strict-properties
* @not-serializable
*/
2020-10-21 23:21:25 +00:00
final class GdImage {}
2021-07-20 03:35:44 +00:00
/**
* @strict-properties
* @not-serializable
*/
2020-10-21 23:21:25 +00:00
final class GdFont {}
2019-08-11 08:14:51 +00:00
function gd_info(): array {}
2020-10-21 23:21:25 +00:00
function imageloadfont(string $filename): GdFont|false {}
2019-08-11 08:14:51 +00:00
function imagesetstyle(GdImage $image, array $style): bool {}
2019-08-11 08:14:51 +00:00
function imagecreatetruecolor(int $width, int $height): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imageistruecolor(GdImage $image): bool {}
2019-08-11 08:14:51 +00:00
function imagetruecolortopalette(GdImage $image, bool $dither, int $num_colors): bool {}
2019-08-11 08:14:51 +00:00
function imagepalettetotruecolor(GdImage $image): bool {}
2019-08-11 08:14:51 +00:00
function imagecolormatch(GdImage $image1, GdImage $image2): bool {}
2019-08-11 08:14:51 +00:00
function imagesetthickness(GdImage $image, int $thickness): bool {}
2019-08-11 08:14:51 +00:00
function imagefilledellipse(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagefilledarc(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color, int $style): bool {}
2019-08-11 08:14:51 +00:00
function imagealphablending(GdImage $image, bool $enable): bool {}
2019-08-11 08:14:51 +00:00
function imagesavealpha(GdImage $image, bool $enable): bool {}
2019-08-11 08:14:51 +00:00
function imagelayereffect(GdImage $image, int $effect): bool {}
2019-08-11 08:14:51 +00:00
function imagecolorallocatealpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {}
2019-08-11 08:14:51 +00:00
function imagecolorresolvealpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
2019-08-11 08:14:51 +00:00
function imagecolorclosestalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int {}
2019-08-11 08:14:51 +00:00
function imagecolorexactalpha(GdImage $image, int $red, int $green, int $blue, int $alpha): int|false {}
2019-08-11 08:14:51 +00:00
function imagecopyresampled(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {}
2019-08-11 08:14:51 +00:00
#ifdef PHP_WIN32
function imagegrabwindow(int $handle, bool $client_area = false): GdImage|false {}
2019-08-11 08:14:51 +00:00
2019-11-16 17:40:06 +00:00
function imagegrabscreen(): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
// TODO: $ignore_transparent is ignored???
function imagerotate(GdImage $image, float $angle, int $background_color, bool $ignore_transparent = false): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imagesettile(GdImage $image, GdImage $tile): bool {}
2019-08-11 08:14:51 +00:00
function imagesetbrush(GdImage $image, GdImage $brush): bool {}
2019-08-11 08:14:51 +00:00
function imagecreate(int $width, int $height): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imagetypes(): int {}
function imagecreatefromstring(string $data): GdImage|false {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_AVIF
function imagecreatefromavif(string $filename): GdImage|false {}
#endif
2019-11-16 17:40:06 +00:00
function imagecreatefromgif(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_JPG
2019-11-16 17:40:06 +00:00
function imagecreatefromjpeg(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
#ifdef HAVE_GD_PNG
2019-11-16 17:40:06 +00:00
function imagecreatefrompng(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
#ifdef HAVE_GD_WEBP
2019-11-16 17:40:06 +00:00
function imagecreatefromwebp(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
2019-11-16 17:40:06 +00:00
function imagecreatefromxbm(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_XPM
2019-11-16 17:40:06 +00:00
function imagecreatefromxpm(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
2019-11-16 17:40:06 +00:00
function imagecreatefromwbmp(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
2019-11-16 17:40:06 +00:00
function imagecreatefromgd(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
2019-11-16 17:40:06 +00:00
function imagecreatefromgd2(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imagecreatefromgd2part(string $filename, int $x, int $y, int $width, int $height): GdImage|false {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_BMP
2019-11-16 17:40:06 +00:00
function imagecreatefrombmp(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_TGA
2019-11-16 17:40:06 +00:00
function imagecreatefromtga(string $filename): GdImage|false {}
2019-08-11 08:14:51 +00:00
#endif
function imagexbm(GdImage $image, ?string $filename, ?int $foreground_color = null): bool {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_AVIF
/** @param resource|string|null $file */
function imageavif(GdImage $image, $file = null, int $quality = -1, int $speed = -1): bool {}
#endif
/** @param resource|string|null $file */
function imagegif(GdImage $image, $file = null): bool {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_PNG
/** @param resource|string|null $file */
function imagepng(GdImage $image, $file = null, int $quality = -1, int $filters = -1): bool {}
2019-08-11 08:14:51 +00:00
#endif
#ifdef HAVE_GD_WEBP
/** @param resource|string|null $file */
function imagewebp(GdImage $image, $file = null, int $quality = -1): bool {}
2019-08-11 08:14:51 +00:00
#endif
#ifdef HAVE_GD_JPG
/** @param resource|string|null $file */
function imagejpeg(GdImage $image, $file = null, int $quality = -1): bool {}
2019-08-11 08:14:51 +00:00
#endif
/** @param resource|string|null $file */
function imagewbmp(GdImage $image, $file = null, ?int $foreground_color = null): bool {}
2019-08-11 08:14:51 +00:00
function imagegd(GdImage $image, ?string $file = null): bool {}
2019-08-11 08:14:51 +00:00
function imagegd2(GdImage $image, ?string $file = null, int $chunk_size = UNKNOWN, int $mode = UNKNOWN): bool {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_BMP
/** @param resource|string|null $file */
function imagebmp(GdImage $image, $file = null, bool $compressed = true): bool {}
2019-08-11 08:14:51 +00:00
#endif
function imagedestroy(GdImage $image): bool {}
2019-08-11 08:14:51 +00:00
function imagecolorallocate(GdImage $image, int $red, int $green, int $blue): int|false {}
2019-08-11 08:14:51 +00:00
2019-09-27 17:47:24 +00:00
function imagepalettecopy(GdImage $dst, GdImage $src): void {}
2019-08-11 08:14:51 +00:00
function imagecolorat(GdImage $image, int $x, int $y): int|false {}
2019-08-11 08:14:51 +00:00
function imagecolorclosest(GdImage $image, int $red, int $green, int $blue): int {}
2019-08-11 08:14:51 +00:00
function imagecolorclosesthwb(GdImage $image, int $red, int $green, int $blue): int {}
2019-08-11 08:14:51 +00:00
function imagecolordeallocate(GdImage $image, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagecolorresolve(GdImage $image, int $red, int $green, int $blue): int {}
2019-08-11 08:14:51 +00:00
function imagecolorexact(GdImage $image, int $red, int $green, int $blue): int {}
2019-08-11 08:14:51 +00:00
function imagecolorset(GdImage $image, int $color, int $red, int $green, int $blue, int $alpha = 0): ?bool {}
2019-08-11 08:14:51 +00:00
function imagecolorsforindex(GdImage $image, int $color): array|false {}
2019-08-11 08:14:51 +00:00
function imagegammacorrect(GdImage $image, float $input_gamma, float $output_gamma): bool {}
2019-08-11 08:14:51 +00:00
function imagesetpixel(GdImage $image, int $x, int $y, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imageline(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagedashedline(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagerectangle(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagefilledrectangle(GdImage $image, int $x1, int $y1, int $x2, int $y2, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagearc(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $start_angle, int $end_angle, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imageellipse(GdImage $image, int $center_x, int $center_y, int $width, int $height, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagefilltoborder(GdImage $image, int $x, int $y, int $border_color, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagefill(GdImage $image, int $x, int $y, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagecolorstotal(GdImage $image): int {}
2019-08-11 08:14:51 +00:00
function imagecolortransparent(GdImage $image, ?int $color = null): int {}
2019-08-11 08:14:51 +00:00
function imageinterlace(GdImage $image, ?bool $enable = null): bool {}
2019-08-11 08:14:51 +00:00
function imagepolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
2019-08-11 08:14:51 +00:00
function imageopenpolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
2019-08-11 08:14:51 +00:00
function imagefilledpolygon(GdImage $image, array $points, int $num_points_or_color, ?int $color = null): bool {}
2019-08-11 08:14:51 +00:00
2020-10-21 23:21:25 +00:00
function imagefontwidth(GdFont|int $font): int {}
2019-08-11 08:14:51 +00:00
2020-10-21 23:21:25 +00:00
function imagefontheight(GdFont|int $font): int {}
2019-08-11 08:14:51 +00:00
2020-10-21 23:21:25 +00:00
function imagechar(GdImage $image, GdFont|int $font, int $x, int $y, string $char, int $color): bool {}
2019-08-11 08:14:51 +00:00
2020-10-21 23:21:25 +00:00
function imagecharup(GdImage $image, GdFont|int $font, int $x, int $y, string $char, int $color): bool {}
2019-08-11 08:14:51 +00:00
2020-10-21 23:21:25 +00:00
function imagestring(GdImage $image, GdFont|int $font, int $x, int $y, string $string, int $color): bool {}
2019-08-11 08:14:51 +00:00
2020-10-21 23:21:25 +00:00
function imagestringup(GdImage $image, GdFont|int $font, int $x, int $y, string $string, int $color): bool {}
2019-08-11 08:14:51 +00:00
function imagecopy(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height): bool {}
2019-08-11 08:14:51 +00:00
function imagecopymerge(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {}
2019-08-11 08:14:51 +00:00
function imagecopymergegray(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $src_width, int $src_height, int $pct): bool {}
2019-08-11 08:14:51 +00:00
function imagecopyresized(GdImage $dst_image, GdImage $src_image, int $dst_x, int $dst_y, int $src_x, int $src_y, int $dst_width, int $dst_height, int $src_width, int $src_height): bool {}
2019-08-11 08:14:51 +00:00
function imagesx(GdImage $image): int {}
2019-08-11 08:14:51 +00:00
function imagesy(GdImage $image): int {}
2019-08-11 08:14:51 +00:00
function imagesetclip(GdImage $image, int $x1, int $y1, int $x2, int $y2): bool {}
2019-08-11 08:14:51 +00:00
function imagegetclip(GdImage $image): array {}
2019-08-11 08:14:51 +00:00
#ifdef HAVE_GD_FREETYPE
function imageftbbox(float $size, float $angle, string $font_filename, string $string, array $options = []): array|false {}
2019-08-11 08:14:51 +00:00
function imagefttext(GdImage $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array|false {}
2019-08-11 08:14:51 +00:00
/** @alias imageftbbox */
function imagettfbbox(float $size, float $angle, string $font_filename, string $string, array $options = []): array|false {}
2019-08-11 08:14:51 +00:00
/** @alias imagefttext */
function imagettftext(GdImage $image, float $size, float $angle, int $x, int $y, int $color, string $font_filename, string $text, array $options = []): array|false {}
2019-08-11 08:14:51 +00:00
#endif
/** @param array|int|float|bool $args */
function imagefilter(GdImage $image, int $filter, ...$args): bool {}
2019-08-11 08:14:51 +00:00
function imageconvolution(GdImage $image, array $matrix, float $divisor, float $offset): bool {}
2019-08-11 08:14:51 +00:00
function imageflip(GdImage $image, int $mode): bool {}
2019-08-11 08:14:51 +00:00
function imageantialias(GdImage $image, bool $enable): bool {}
2019-08-11 08:14:51 +00:00
function imagecrop(GdImage $image, array $rectangle): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imagecropauto(GdImage $image, int $mode = IMG_CROP_DEFAULT, float $threshold = 0.5, int $color = -1): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imagescale(GdImage $image, int $width, int $height = -1, int $mode = IMG_BILINEAR_FIXED): GdImage|false {}
2019-08-11 08:14:51 +00:00
function imageaffine(GdImage $image, array $affine, ?array $clip = null): GdImage|false {}
2019-08-11 08:14:51 +00:00
/** @param array|float $options */
function imageaffinematrixget(int $type, $options): array|false {}
2019-08-11 08:14:51 +00:00
function imageaffinematrixconcat(array $matrix1, array $matrix2): array|false {}
2019-08-11 08:14:51 +00:00
function imagegetinterpolation(GdImage $image): int {}
function imagesetinterpolation(GdImage $image, int $method = IMG_BILINEAR_FIXED): bool {}
function imageresolution(GdImage $image, ?int $resolution_x = null, ?int $resolution_y = null): array|bool {}
2019-08-11 08:14:51 +00:00