|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>/parent/libgd/docs/naturaldocs/tmp/gd.c</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript>
|
|
Packit Service |
df60bb |
if (browserType) {document.write("");if (browserVer) {document.write(" "); }}// --></script>
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdSetErrorMethodvoid gdSetErrorMethod( | gdErrorMethod | error_method | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdClearErrorMethodvoid gdClearErrorMethod( | void | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCreategdImagePtr gdImageCreate ( | int | sx, | | int | sy | ) |
|
gdImageCreate is called to create palette-based images, with no more than 256 colors. The image must eventually be destroyed using gdImageDestroy(). Parameterssx | The image width. | sy | The image height. |
ReturnsA pointer to the new image or NULL if an error occurred. ExamplegdImagePtr im;
|
|
Packit Service |
df60bb |
im = gdImageCreate(64, 64);
|
|
Packit Service |
df60bb |
// ... Use the image ...
|
|
Packit Service |
df60bb |
gdImageDestroy(im);See AlsogdImageCreateTrueColor
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCreateTrueColorgdImagePtr gdImageCreateTrueColor ( | int | sx, | | int | sy | ) |
|
gdImageCreateTrueColor is called to create truecolor images, with an essentially unlimited number of colors. Invoke gdImageCreateTrueColor with the x and y dimensions of the desired image. gdImageCreateTrueColor returns a gdImagePtr to the new image, or NULL if unable to allocate the image. The image must eventually be destroyed using <gdImageDestroy>(). Truecolor images are always filled with black at creation time. There is no concept of a “background” color index. Parameterssx | The image width. | sy | The image height. |
ReturnsA pointer to the new image or NULL if an error occurred. ExamplegdImagePtr im;
|
|
Packit Service |
df60bb |
im = gdImageCreateTrueColor(64, 64);
|
|
Packit Service |
df60bb |
// ... Use the image ...
|
|
Packit Service |
df60bb |
gdImageDestroy(im);See AlsogdImageCreateTrueColor
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageDestroyvoid gdImageDestroy ( | gdImagePtr | im | ) |
|
gdImageDestroy is used to free the memory associated with an image. It is important to invoke gdImageDestroy before exiting your program or assigning a new image to a gdImagePtr variable. Parametersim | Pointer to the gdImage to delete. |
ReturnsNothing. ExamplegdImagePtr im;
|
|
Packit Service |
df60bb |
im = gdImageCreate(10, 10);
|
|
Packit Service |
df60bb |
// ... Use the image ...
|
|
Packit Service |
df60bb |
// Now destroy it
|
|
Packit Service |
df60bb |
gdImageDestroy(im);
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorClosestint gdImageColorClosest ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b | ) |
|
Gets the closest color of the image This is a simplified variant of gdImageColorClosestAlpha where the alpha channel is always opaque. Parametersim | The image. | r | The value of the red component. | g | The value of the green component. | b | The value of the blue component. |
ReturnsThe closest color already available in the palette for palette images; the color value of the given components for truecolor images. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorClosestAlphaint gdImageColorClosestAlpha ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b, | | int | a | ) |
|
Gets the closest color of the image Parametersim | The image. | r | The value of the red component. | g | The value of the green component. | b | The value of the blue component. | a | The value of the alpha component. |
ReturnsThe closest color already available in the palette for palette images; the color value of the given components for truecolor images. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorClosestHWBint gdImageColorClosestHWB ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorExactint gdImageColorExact ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b | ) |
|
Gets the exact color of the image This is a simplified variant of gdImageColorExactAlpha where the alpha channel is always opaque. Parametersim | The image. | r | The value of the red component. | g | The value of the green component. | b | The value of the blue component. |
ReturnsThe exact color already available in the palette for palette images; if there is no exact color, -1 is returned. For truecolor images the color value of the given components is returned. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorExactAlphaint gdImageColorExactAlpha ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b, | | int | a | ) |
|
Gets the exact color of the image Parametersim | The image. | r | The value of the red component. | g | The value of the green component. | b | The value of the blue component. | a | The value of the alpha component. |
ReturnsThe exact color already available in the palette for palette images; if there is no exact color, -1 is returned. For truecolor images the color value of the given components is returned. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorAllocateint gdImageColorAllocate ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b | ) |
|
Allocates a color This is a simplified variant of gdImageColorAllocateAlpha where the alpha channel is always opaque. Parametersim | The image. | r | The value of the red component. | g | The value of the green component. | b | The value of the blue component. |
ReturnsThe color value. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorAllocateAlphaint gdImageColorAllocateAlpha ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b, | | int | a | ) |
|
Allocates a color This is typically used for palette images, but can be used for truecolor images as well. Parametersim | The image. | r | The value of the red component. | g | The value of the green component. | b | The value of the blue component. |
ReturnsThe color value. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorResolveint gdImageColorResolve ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b | ) |
|
gdImageColorResolve is an alternative for the code fragment if ((color=gdImageColorExact(im,R,G,B)) < 0)
|
|
Packit Service |
df60bb |
if ((color=gdImageColorAllocate(im,R,G,B)) < 0)
|
|
Packit Service |
df60bb |
color=gdImageColorClosest(im,R,G,B);in a single function. Its advantage is that it is guaranteed to return a color index in one search over the color table.
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorResolveAlphaint gdImageColorResolveAlpha ( | gdImagePtr | im, | | int | r, | | int | g, | | int | b, | | int | a | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorDeallocatevoid gdImageColorDeallocate ( | gdImagePtr | im, | | int | color | ) |
|
Removes a palette entry This is a no-op for truecolor images. Parametersim | The image. | color | The palette index. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorTransparentvoid gdImageColorTransparent ( | gdImagePtr | im, | | int | color | ) |
|
Sets the transparent color of the image Parameterim | The image. | color | The color. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImagePaletteCopyvoid gdImagePaletteCopy ( | gdImagePtr | to, | | gdImagePtr | from | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorReplaceint gdImageColorReplace ( | gdImagePtr | im, | | int | src, | | int | dst | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorReplaceThresholdint gdImageColorReplaceThreshold ( | gdImagePtr | im, | | int | src, | | int | dst, | | float | threshold | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorReplaceArrayint gdImageColorReplaceArray ( | gdImagePtr | | im, | | int | | len, | | int | * | src, | | int | * | dst | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageColorReplaceCallbackint gdImageColorReplaceCallback ( | gdImagePtr | im, | | gdCallbackImageColor | callback | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetPixelvoid gdImageSetPixel ( | gdImagePtr | im, | | int | x, | | int | y, | | int | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageGetPixelint gdImageGetPixel ( | gdImagePtr | im, | | int | x, | | int | y | ) |
|
Gets a pixel color as stored in the image. Parametersim | The image. | x | The x-coordinate. | y | The y-coordinate. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageGetTrueColorPixelint gdImageGetTrueColorPixel ( | gdImagePtr | im, | | int | x, | | int | y | ) |
|
Gets a pixel color always as truecolor value. Parametersim | The image. | x | The x-coordinate. | y | The y-coordinate. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageAABlendvoid gdImageAABlend ( | gdImagePtr | im | ) |
|
NO-OP, kept for library compatibility.
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageLinevoid gdImageLine ( | gdImagePtr | im, | | int | x1, | | int | y1, | | int | x2, | | int | y2, | | int | color | ) |
|
Bresenham as presented in Foley & Van Dam.
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageDashedLinevoid gdImageDashedLine ( | gdImagePtr | im, | | int | x1, | | int | y1, | | int | x2, | | int | y2, | | int | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageBoundsSafeint gdImageBoundsSafe ( | gdImagePtr | im, | | int | x, | | int | y | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCharvoid gdImageChar ( | gdImagePtr | im, | | gdFontPtr | f, | | int | x, | | int | y, | | int | c, | | int | color | ) |
|
Draws a single character. Parametersim | The image to draw onto. | f | The raster font. | x | The x coordinate of the upper left pixel. | y | The y coordinate of the upper left pixel. | c | The character. | color | The color. |
VariantsSee also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCharUpvoid gdImageCharUp ( | gdImagePtr | im, | | gdFontPtr | f, | | int | x, | | int | y, | | int | c, | | int | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageStringvoid gdImageString ( | | gdImagePtr | | im, | | | gdFontPtr | | f, | | | int | | x, | | | int | | y, | | unsigned | char | * | s, | | | int | | color | ) |
|
Draws a character string. Parametersim | The image to draw onto. | f | The raster font. | x | The x coordinate of the upper left pixel. | y | The y coordinate of the upper left pixel. | c | The character string. | color | The color. |
VariantsSee also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageStringUpvoid gdImageStringUp ( | | gdImagePtr | | im, | | | gdFontPtr | | f, | | | int | | x, | | | int | | y, | | unsigned | char | * | s, | | | int | | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageString16void gdImageString16 ( | | gdImagePtr | | im, | | | gdFontPtr | | f, | | | int | | x, | | | int | | y, | | unsigned | short | * | s, | | | int | | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageStringUp16void gdImageStringUp16 ( | | gdImagePtr | | im, | | | gdFontPtr | | f, | | | int | | x, | | | int | | y, | | unsigned | short | * | s, | | | int | | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageArcvoid gdImageArc ( | gdImagePtr | im, | | int | cx, | | int | cy, | | int | w, | | int | h, | | int | s, | | int | e, | | int | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageFilledArcvoid gdImageFilledArc ( | gdImagePtr | im, | | int | cx, | | int | cy, | | int | w, | | int | h, | | int | s, | | int | e, | | int | color, | | int | style | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageEllipsevoid gdImageEllipse( | gdImagePtr | im, | | int | mx, | | int | my, | | int | w, | | int | h, | | int | c | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageFilledEllipsevoid gdImageFilledEllipse ( | gdImagePtr | im, | | int | mx, | | int | my, | | int | w, | | int | h, | | int | c | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageFillToBordervoid gdImageFillToBorder ( | gdImagePtr | im, | | int | x, | | int | y, | | int | border, | | int | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageFillvoid gdImageFill( | gdImagePtr | im, | | int | x, | | int | y, | | int | nc | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageRectanglevoid gdImageRectangle ( | gdImagePtr | im, | | int | x1, | | int | y1, | | int | x2, | | int | y2, | | int | color | ) |
|
Draws a rectangle. Parametersim | The image. | x1 | The x-coordinate of the upper left corner. | y1 | The y-coordinate of the upper left corner. | x2 | The x-coordinate of the lower right corner. | y2 | The y-coordinate of the lower right corner. | color | The color. |
Note that x1,y1 and x2,y2 may be swapped, i.e. the former may designate the lower right corner and the latter the upper left corner. The behavior for specifying other corners is undefined. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageFilledRectanglevoid gdImageFilledRectangle ( | gdImagePtr | im, | | int | x1, | | int | y1, | | int | x2, | | int | y2, | | int | color | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageClonegdImagePtr gdImageClone ( | gdImagePtr | src | ) |
|
Clones an image Creates an exact duplicate of the given image. ParametersReturnsThe cloned image on success, NULL on failure.
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCopyvoid 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 Parametersdst | 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. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCopyMergevoid 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. NoteThis function is a substitute for real alpha channel operations, so it doesn’t pay attention to the alpha channel. Parametersdst | 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. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCopyMergeGrayvoid 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. NoteThis function is a substitute for real alpha channel operations, so it doesn’t pay attention to the alpha channel. Parametersdst | 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. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCopyResizedvoid 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. Parametersdst | 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. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCopyRotatedvoid 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. Parametersdst | 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. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCopyResampledvoid 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. Parametersdst | 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. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImagePolygonvoid gdImagePolygon ( | gdImagePtr | im, | | gdPointPtr | p, | | int | n, | | int | c | ) |
|
Draws a closed polygon Parametersim | The image. | p | The vertices as array of gdPoints. | n | The number of vertices. | c | The color. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageOpenPolygonvoid gdImageOpenPolygon ( | gdImagePtr | im, | | gdPointPtr | p, | | int | n, | | int | c | ) |
|
Draws an open polygon Parametersim | The image. | p | The vertices as array of gdPoints. | n | The number of vertices. | c | The color |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageFilledPolygonvoid gdImageFilledPolygon ( | gdImagePtr | im, | | gdPointPtr | p, | | int | n, | | int | c | ) |
|
Draws a filled polygon The polygon is filled using the even-odd fillrule what can leave unfilled regions inside of self-intersecting polygons. This behavior might change in a future version. Parametersim | The image. | p | The vertices as array of gdPoints. | n | The number of vertices. | c | The color |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetStylevoid gdImageSetStyle ( | gdImagePtr | | im, | | int | * | style, | | int | | noOfPixels | ) |
|
Sets the style for following drawing operations Parametersim | The image. | style | An array of color values. | noOfPixel | The number of color values. |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetThicknessvoid gdImageSetThickness ( | gdImagePtr | im, | | int | thickness | ) |
|
Sets the thickness for following drawing operations Parametersim | The image. | thickness | The thickness in pixels. |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetBrushvoid gdImageSetBrush ( | gdImagePtr | im, | | gdImagePtr | brush | ) |
|
Sets the brush for following drawing operations Parametersim | The image. | brush | The brush image. |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetTilevoid gdImageSetTile ( | gdImagePtr | im, | | gdImagePtr | tile | ) |
|
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetAntiAliasedvoid gdImageSetAntiAliased ( | gdImagePtr | im, | | int | c | ) |
|
Set the color for subsequent anti-aliased drawing If gdAntiAliased is passed as color to drawing operations that support anti-aliased drawing (such as gdImageLine and gdImagePolygon), the actual color to be used can be set with this function. Example: draw an anti-aliased blue linegdImageSetAntiAliased(im, gdTrueColorAlpha(0, 0, gdBlueMax, gdAlphaOpaque));
|
|
Packit Service |
df60bb |
gdImageLine(im, 10,10, 20,20, gdAntiAliased);ParametersSee also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetAntiAliasedDontBlendvoid gdImageSetAntiAliasedDontBlend ( | gdImagePtr | im, | | int | c, | | int | dont_blend | ) |
|
Set the color and “dont_blend” color for subsequent anti-aliased drawing This extended variant of gdImageSetAntiAliased allows to also specify a (background) color that will not be blended in anti-aliased drawing operations. Parametersim | The image. | c | The color. | dont_blend | Whether to blend. |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageInterlacevoid 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. Parametersim | The image. | interlaceArg | Whether the image is interlaced. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageCompareint gdImageCompare ( | gdImagePtr | im1, | | gdImagePtr | im2 | ) |
|
Compare two images Parametersim1 | An image. | im2 | Another image. |
ReturnsA bitmask of Image Comparison flags where each set flag signals which attributes of the images are different.
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdAlphaBlendint gdAlphaBlend ( | int | dst, | | int | src | ) |
|
Blend two colors Parametersdst | The color to blend onto. | src | The color to blend. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdLayerOverlayint gdLayerOverlay ( | int | dst, | | int | src | ) |
|
Overlay two colors Parametersdst | The color to overlay onto. | src | The color to overlay. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdLayerMultiplyint gdLayerMultiply ( | int | dst, | | int | src | ) |
|
Overlay two colors with multiply effect Parametersdst | The color to overlay onto. | src | The color to overlay. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageAlphaBlendingvoid gdImageAlphaBlending ( | gdImagePtr | im, | | int | alphaBlendingArg | ) |
|
Set the effect for subsequent drawing operations Note that the effect is used for truecolor images only. Parametersim | The image. | alphaBlendingArg | The effect. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSaveAlphavoid gdImageSaveAlpha ( | gdImagePtr | im, | | int | saveAlphaArg | ) |
|
Sets the save alpha flag The save alpha flag specifies whether the alpha channel of the pixels should be saved. This is supported only for image formats that support full alpha transparency, e.g. PNG.
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetClipvoid gdImageSetClip ( | gdImagePtr | im, | | int | x1, | | int | y1, | | int | x2, | | int | y2 | ) |
|
Sets the clipping rectangle The clipping rectangle restricts the drawing area for following drawing operations. Parametersim | The image. | x1 | The x-coordinate of the upper left corner. | y1 | The y-coordinate of the upper left corner. | x2 | The x-coordinate of the lower right corner. | y2 | The y-coordinate of the lower right corner. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageGetClipvoid gdImageGetClip ( | gdImagePtr | | im, | | int | * | x1P, | | int | * | y1P, | | int | * | x2P, | | int | * | y2P | ) |
|
Gets the current clipping rectangle Parametersim | The image. | x1P | (out) The x-coordinate of the upper left corner. | y1P | (out) The y-coordinate of the upper left corner. | x2P | (out) The x-coordinate of the lower right corner. | y2P | (out) The y-coordinate of the lower right corner. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImageSetResolutionvoid gdImageSetResolution( | | gdImagePtr | im, | | const unsigned | int | res_x, | | const unsigned | int | res_y | ) |
|
Sets the resolution of an image. Parametersim | The image. | res_x | The horizontal resolution in DPI. | res_y | The vertical resolution in DPI. |
See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
gdImagePaletteToTrueColorint gdImagePaletteToTrueColor( | gdImagePtr | src | ) |
|
Convert a palette image to true color ParametersReturnsNon-zero if the conversion succeeded, zero otherwise. See also
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
|
|
Packit Service |
df60bb |
--></script><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Constants">Constants</option><option value="Files">Files</option><option value="Functions">Functions</option><option value="Macros">Macros</option><option value="Types">Types</option></select> <script language=JavaScript>
|
|
Packit Service |
df60bb |
HideAllBut([], 4);// --></script>
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
<iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe> Close
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
|
|
Packit Service |
df60bb |
<script language=JavaScript>
|
|
Packit Service |
df60bb |
if (browserType) {if (browserVer) {document.write(""); }document.write("");}// --></script></body></html>
|