|
LibGd 2.4.0-dev
GD Graphics library
|
Data Structures | |
| struct | gdImagePerceptualDiffOptions |
| Options for perceptual image comparison. More... | |
| struct | gdImagePerceptualDiffResult |
| Result of perceptual image comparison. More... | |
Macros | |
| #define | GD_CMP_IMAGE 1 |
| #define | GD_CMP_NUM_COLORS 2 |
| #define | GD_CMP_COLOR 4 |
| #define | GD_CMP_SIZE_X 8 |
| #define | GD_CMP_SIZE_Y 16 |
| #define | GD_CMP_TRANSPARENT 32 |
| #define | GD_CMP_BACKGROUND 64 |
| #define | GD_CMP_INTERLACE 128 |
| #define | GD_CMP_TRUECOLOR 256 |
Enumerations | |
| enum | gdImageDiffMode { GD_IMAGE_DIFF_NONE , GD_IMAGE_DIFF_OVERLAY , GD_IMAGE_DIFF_MASK } |
| Options for perceptual image comparison mode. More... | |
Functions | |
| int | gdImageCompare (gdImagePtr im1, gdImagePtr im2) |
| Compare two images. | |
| #define GD_CMP_BACKGROUND 64 |
Background color differs
| #define GD_CMP_COLOR 4 |
Image colors differ
| #define GD_CMP_IMAGE 1 |
Actual image IS different
| #define GD_CMP_INTERLACE 128 |
Interlaced setting differs
| #define GD_CMP_NUM_COLORS 2 |
Number of colors in pallette differ
| #define GD_CMP_SIZE_X 8 |
Image width differs
| #define GD_CMP_SIZE_Y 16 |
Image heights differ
| #define GD_CMP_TRANSPARENT 32 |
Transparent color differs
| #define GD_CMP_TRUECOLOR 256 |
Truecolor vs palette differs
| enum gdImageDiffMode |
| int gdImageCompare | ( | gdImagePtr | im1, |
| gdImagePtr | im2 | ||
| ) |
Compare two images.
compare two images and some of its attributes. The images must be of the same size, otherwise the function will return -1. For accurate image content comparison, use gdImagePerceptualDiff instead.
| im1 | An image. |
| im2 | Another image. |
< Interlaced setting differs
< Transparent color differs
< Truecolor vs palette differs
< Image width differs
< Actual image IS different
< Image heights differ
< Actual image IS different
< Number of colors in pallette differ
< Image colors differ
< Actual image IS different
< Image colors differ
< Actual image IS different
< Image colors differ
< Actual image IS different
< Image colors differ