From a025636fa1fa9699b1e20be32f9604e48d0e1e62 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sun, 29 Mar 2020 06:43:34 -0400 Subject: Update ImageDraw*() functions to match arguments of Draw*() (#1156) * Update ImageDraw*() functions to match arguments of Draw*() Updated draw functions: ImageDrawPixel() ImageDrawPixelV() ImageDrawCircle() ImageDrawCircleV() ImageDrawLine() ImageDrawLineV() ImageDrawRectangle() ImageDrawRectangleV() ImageDrawRectangleRec() * [nodepadpp] Update Notepad++ ImageDraw defintions This updates the Notepad++ definitions with the updated ImageDraw methods. * [examples] Add ImageDraw calls to textures_image_drawing * Update ImageDraw*() methods --- examples/textures/textures_image_drawing.c | 5 +++++ examples/textures/textures_image_drawing.png | Bin 420135 -> 239413 bytes 2 files changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/textures/textures_image_drawing.c b/examples/textures/textures_image_drawing.c index 02caf1f9..767db2d0 100644 --- a/examples/textures/textures_image_drawing.c +++ b/examples/textures/textures_image_drawing.c @@ -35,6 +35,11 @@ int main(void) ImageDraw(&parrots, cat, (Rectangle){ 0, 0, cat.width, cat.height }, (Rectangle){ 30, 40, cat.width*1.5f, cat.height*1.5f }, WHITE); ImageCrop(&parrots, (Rectangle){ 0, 50, parrots.width, parrots.height - 100 }); // Crop resulting image + // Draw on the image with a few image draw methods + ImageDrawPixel(&parrots, 10, 10, RAYWHITE); + ImageDrawCircle(&parrots, 10, 10, 5, RAYWHITE); + ImageDrawRectangle(&parrots, 5, 20, 10, 10, RAYWHITE); + UnloadImage(cat); // Unload image from RAM // Load custom font for frawing on image diff --git a/examples/textures/textures_image_drawing.png b/examples/textures/textures_image_drawing.png index acfee069..b8107bdc 100644 Binary files a/examples/textures/textures_image_drawing.png and b/examples/textures/textures_image_drawing.png differ -- cgit v1.2.3