PHP » GoLang |
login |
register |
about
|
GoLang imagecopyresized
request it (332)
GoLang replacement for PHP's imagecopyresized
[edit | history]
imagecopyresized(PHP 4, PHP 5, PHP 7) imagecopyresized — Copy and resize part of an image Description
bool imagecopyresized
( resource
$dst_image
, resource $src_image
, int $dst_x
, int $dst_y
, int $src_x
, int $src_y
, int $dst_w
, int $dst_h
, int $src_w
, int $src_h
)
imagecopyresized() copies a rectangular
portion of one image to another image.
In other words, imagecopyresized() will take a
rectangular area from
If the source and destination coordinates and width and heights
differ, appropriate stretching or shrinking of the image fragment
will be performed. The coordinates refer to the upper left
corner. This function can be used to copy regions within the
same image (if Parameters
Return Values
Returns Examples
Example #1 Resizing an image This example will display the image at half size.
<?php The above example will output something similar to: The image will be output at half size, though better quality could be obtained using imagecopyresampled(). Notes
See Alsoimagecopyresampled() - Copy and resize part of an image with resampling |
more
Recently updated
more
Most requested
more
Last requests
|