Home > PHP > Function > GD > imagecreatefromgd2part()

imagecreatefromgd2part()

imagecreatefromgd2part - Create a new image from a given part of GD2 file or URL

Syntax

resource imagecreatefromgd2part (string $filename, int $srcX, int $srcY, int $width, int $height)

Arguments

  • filename - Path to the GD2 image.
  • srcX - x-coordinate of source point.
  • srcY - y-coordinate of source point.
  • width - Source width.
  • height - Source height.

Description

Create a new image from a given part of GD2 file or URL.

Version

PHP 4.0.7, 5

Return value

Returns an image resource identifier on success, FALSE on errors.