php-src/ext/gd/gd.stub.php
2020-08-13 14:47:18 +02:00

254 lines
9.2 KiB
PHP

<?php
/** @generate-function-entries */
final class GdImage
{
}
function gd_info(): array {}
function imageloadfont(string $filename): int|false {}
function imagesetstyle(GdImage $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(GdImage $im1, GdImage $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, GdImage $tile): bool {}
function imagesetbrush(GdImage $im, GdImage $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 = null): bool {}
/** @param resource|string|null $to */
function imagegif(GdImage $im, $to = null): bool {}
#ifdef HAVE_GD_PNG
/** @param resource|string|null $to */
function imagepng(GdImage $im, $to = null, int $quality = -1, int $filters = -1): bool {}
#endif
#ifdef HAVE_GD_WEBP
/** @param resource|string|null $to */
function imagewebp(GdImage $im, $to = null, int $quality = -1): bool {}
#endif
#ifdef HAVE_GD_JPG
/** @param resource|string|null $to */
function imagejpeg(GdImage $im, $to = null, int $quality = -1): bool {}
#endif
/** @param resource|string|null $to */
function imagewbmp(GdImage $im, $to = null, ?int $foreground = null): bool {}
function imagegd(GdImage $im, string $to = UNKNOWN): bool {}
function imagegd2(GdImage $im, string $to = UNKNOWN, int $chunk_size = UNKNOWN, int $type = UNKNOWN): bool {}
#ifdef HAVE_GD_BMP
/** @param resource|string|null $to */
function imagebmp(GdImage $im, $to = null, bool $compressed = true): 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 = null): ?int {}
function imageinterlace(GdImage $im, ?int $interlace = null): ?int {}
function imagepolygon(GdImage $im, array $points, int $num_points_or_col, ?int $col = null): bool {}
function imageopenpolygon(GdImage $im, array $points, int $num_points_or_col, ?int $col = null): bool {}
function imagefilledpolygon(GdImage $im, array $points, int $num_points_or_col, ?int $col = null): 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): array|false {}
#endif
/** @param array|int|float|bool $filter_args */
function imagefilter(GdImage $im, int $filtertype, ...$filter_args): 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 = -1, int $mode = IMG_BILINEAR_FIXED): GdImage|false {}
function imageaffine(GdImage $im, array $affine, ?array $clip = null): GdImage|false {}
/** @param array|int|float $options */
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_BILINEAR_FIXED): bool {}
function imageresolution(GdImage $im, ?int $res_x = null, ?int $res_y = null): array|bool {}