|
LibGd 2.4.0-dev
GD Graphics library
|
Functions | |
| void | gdImageCopy (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h) |
| Copy an area of an image to another image. | |
| void | gdImageCopyMerge (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct) |
| Copy an area of an image to another image ignoring alpha. | |
| void | gdImageCopyMergeGray (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int w, int h, int pct) |
| Copy an area of an image to another image ignoring alpha. | |
| void | gdImageCopyResized (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH) |
| Copy a resized area from an image to another image. | |
| void | gdImageCopyResampled (gdImagePtr dst, gdImagePtr src, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH) |
| Copy a resampled area from an image to another image. | |
| void | gdImageCopyRotated (gdImagePtr dst, gdImagePtr src, double dstX, double dstY, int srcX, int srcY, int srcWidth, int srcHeight, int angle) |
| Copy a rotated area from an image to another image. | |
| gdImagePtr | gdImageClone (gdImagePtr src) |
| Clones an image. | |
| void | gdImageInterlace (gdImagePtr im, int interlaceArg) |
| Sets whether an image is interlaced. | |
| gdImagePtr gdImageClone | ( | gdImagePtr | src | ) |
Clones an image.
Creates an exact duplicate of the given image.
| src | The source image. |
Group: Cloning and Copying
| void gdImageCopy | ( | gdImagePtr | dst, |
| gdImagePtr | src, | ||
| int | dstX, | ||
| int | dstY, | ||
| int | srcX, | ||
| int | srcY, | ||
| int | w, | ||
| int | h | ||
| ) |
Copy an area of an image to another image.
| dst | - The destination image. |
| src | - The source image. |
| dstX | - The x-coordinate of the upper left corner to copy to. |
| dstY | - The y-coordinate of the upper left corner to copy to. |
| srcX | - The x-coordinate of the upper left corner to copy from. |
| srcY | - The y-coordinate of the upper left corner to copy from. |
| w | - The width of the area to copy. |
| h | - The height of the area to copy. |
| void gdImageCopyMerge | ( | gdImagePtr | dst, |
| gdImagePtr | src, | ||
| int | dstX, | ||
| int | dstY, | ||
| int | srcX, | ||
| int | srcY, | ||
| int | w, | ||
| int | h, | ||
| int | pct | ||
| ) |
Copy an area of an image to another image ignoring alpha.
The source area will be copied to the destination are by merging the pixels.
| dst | The destination image. |
| src | The source image. |
| dstX | The x-coordinate of the upper left corner to copy to. |
| dstY | The y-coordinate of the upper left corner to copy to. |
| srcX | The x-coordinate of the upper left corner to copy from. |
| srcY | The y-coordinate of the upper left corner to copy from. |
| w | The width of the area to copy. |
| h | The height of the area to copy. |
| pct | The percentage in range 0..100. |
| void gdImageCopyMergeGray | ( | gdImagePtr | dst, |
| gdImagePtr | src, | ||
| int | dstX, | ||
| int | dstY, | ||
| int | srcX, | ||
| int | srcY, | ||
| int | w, | ||
| int | h, | ||
| int | pct | ||
| ) |
Copy an area of an image to another image ignoring alpha.
The source area will be copied to the grayscaled destination area by merging the pixels.
| dst | - The destination image. |
| src | - The source image. |
| dstX | - The x-coordinate of the upper left corner to copy to. |
| dstY | - The y-coordinate of the upper left corner to copy to. |
| srcX | - The x-coordinate of the upper left corner to copy from. |
| srcY | - The y-coordinate of the upper left corner to copy from. |
| w | - The width of the area to copy. |
| h | - The height of the area to copy. |
| pct | - The percentage of the source color intensity in range 0..100. |
| void gdImageCopyResampled | ( | gdImagePtr | dst, |
| gdImagePtr | src, | ||
| int | dstX, | ||
| int | dstY, | ||
| int | srcX, | ||
| int | srcY, | ||
| int | dstW, | ||
| int | dstH, | ||
| int | srcW, | ||
| int | srcH | ||
| ) |
Copy a resampled area from an image to another image.
If the source and destination area differ in size, the area will be resized using bilinear interpolation for truecolor images, and nearest-neighbor interpolation for palette images.
| dst | The destination image. |
| src | The source image. |
| dstX | The x-coordinate of the upper left corner to copy to. |
| dstY | The y-coordinate of the upper left corner to copy to. |
| srcX | The x-coordinate of the upper left corner to copy from. |
| srcY | The y-coordinate of the upper left corner to copy from. |
| dstW | The width of the area to copy to. |
| dstH | The height of the area to copy to. |
| srcW | The width of the area to copy from. |
| srcH | The height of the area to copy from. |
| void gdImageCopyResized | ( | gdImagePtr | dst, |
| gdImagePtr | src, | ||
| int | dstX, | ||
| int | dstY, | ||
| int | srcX, | ||
| int | srcY, | ||
| int | dstW, | ||
| int | dstH, | ||
| int | srcW, | ||
| int | srcH | ||
| ) |
Copy a resized area from an image to another image.
If the source and destination area differ in size, the area will be resized using nearest-neighbor interpolation.
| dst | The destination image. |
| src | The source image. |
| dstX | The x-coordinate of the upper left corner to copy to. |
| dstY | The y-coordinate of the upper left corner to copy to. |
| srcX | The x-coordinate of the upper left corner to copy from. |
| srcY | The y-coordinate of the upper left corner to copy from. |
| dstW | The width of the area to copy to. |
| dstH | The height of the area to copy to. |
| srcW | The width of the area to copy from. |
| srcH | The height of the area to copy from. |
| void gdImageCopyRotated | ( | gdImagePtr | dst, |
| gdImagePtr | src, | ||
| double | dstX, | ||
| double | dstY, | ||
| int | srcX, | ||
| int | srcY, | ||
| int | srcWidth, | ||
| int | srcHeight, | ||
| int | angle | ||
| ) |
Copy a rotated area from an image to another image.
The area is counter-clockwise rotated using nearest-neighbor interpolation.
| dst | The destination image. |
| src | The source image. |
| dstX | The x-coordinate of the center of the area to copy to. |
| dstY | The y-coordinate of the center of the area to copy to. |
| srcX | The x-coordinate of the upper left corner to copy from. |
| srcY | The y-coordinate of the upper left corner to copy from. |
| srcW | The width of the area to copy from. |
| srcH | The height of the area to copy from. |
| angle | The angle in degrees. |
| void gdImageInterlace | ( | gdImagePtr | im, |
| int | interlaceArg | ||
| ) |
Sets whether an image is interlaced.
This is relevant only when saving the image in a format that supports interlacing.
| im | The image. |
| interlaceArg | Whether the image is interlaced. |