diff options
| author | raysan5 <raysan5@gmail.com> | 2016-03-02 19:22:55 +0100 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-03-02 19:22:55 +0100 |
| commit | fffbf48dec317d55262de62f8bab757a31d0eebd (patch) | |
| tree | c9488bd0c9daf8341d0e800363226d8c8249eebd /src/raylib.h | |
| parent | a167067cbd1a330d435dbe652c2ecbeda5e1f35d (diff) | |
| download | raylib-fffbf48dec317d55262de62f8bab757a31d0eebd.tar.gz raylib-fffbf48dec317d55262de62f8bab757a31d0eebd.zip | |
Added support for Nearest-Neighbor image scaling
Specially useful on default font scaling
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 4f36e203..f8f1683e 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -691,6 +691,7 @@ void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); Image ImageCopy(Image image); // Create an image duplicate (useful for transformations) void ImageCrop(Image *image, Rectangle crop); // Crop an image to a defined rectangle void ImageResize(Image *image, int newWidth, int newHeight); // Resize and image (bilinear filtering) +void ImageResizeNN(Image *image,int newWidth,int newHeight); // Resize and image (Nearest-Neighbor scaling algorithm) void ImageDraw(Image *dst, Image src, Rectangle srcRec, Rectangle dstRec); // Draw a source image within a destination image Image ImageText(const char *text, int fontSize, Color color); // Create an image from text (default font) Image ImageTextEx(SpriteFont font, const char *text, int fontSize, int spacing, Color tint); // Create an image from text (custom sprite font) |
