diff options
| author | nobytesgiven <[email protected]> | 2022-10-26 10:11:14 +0300 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-26 09:11:14 +0200 |
| commit | c4abf6835190218b86df3d433a93280a63496c1d (patch) | |
| tree | ce6c39ae9803a81b8ad1531dfbab64ed2c697c63 /examples/textures/textures_image_processing.c | |
| parent | 865f823835779905d01d39fde3a4ebc1ea293f6a (diff) | |
| download | raylib-c4abf6835190218b86df3d433a93280a63496c1d.tar.gz raylib-c4abf6835190218b86df3d433a93280a63496c1d.zip | |
fixed blur issue on opaque pictures & added example (#2775)
Co-authored-by: nobytesgiven <[email protected]>
Diffstat (limited to 'examples/textures/textures_image_processing.c')
| -rw-r--r-- | examples/textures/textures_image_processing.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/textures/textures_image_processing.c b/examples/textures/textures_image_processing.c index 7786ab21..49aacfc7 100644 --- a/examples/textures/textures_image_processing.c +++ b/examples/textures/textures_image_processing.c @@ -17,7 +17,7 @@ #include <stdlib.h> // Required for: free() -#define NUM_PROCESSES 8 +#define NUM_PROCESSES 9 typedef enum { NONE = 0, @@ -26,6 +26,7 @@ typedef enum { COLOR_INVERT, COLOR_CONTRAST, COLOR_BRIGHTNESS, + GAUSSIAN_BLUR, FLIP_VERTICAL, FLIP_HORIZONTAL } ImageProcess; @@ -37,6 +38,7 @@ static const char *processText[] = { "COLOR INVERT", "COLOR CONTRAST", "COLOR BRIGHTNESS", + "GAUSSIAN BLUR", "FLIP VERTICAL", "FLIP HORIZONTAL" }; @@ -125,6 +127,7 @@ int main(void) case COLOR_INVERT: ImageColorInvert(&imCopy); break; case COLOR_CONTRAST: ImageColorContrast(&imCopy, -40); break; case COLOR_BRIGHTNESS: ImageColorBrightness(&imCopy, -80); break; + case GAUSSIAN_BLUR: ImageBlurGaussian(&imCopy, 10); break; case FLIP_VERTICAL: ImageFlipVertical(&imCopy); break; case FLIP_HORIZONTAL: ImageFlipHorizontal(&imCopy); break; default: break; |
