Update RingRayLib - raylib.c - Add Function : void ImageResize(Image *image, int newWidth, int newHeight)
@@ -3006,6 +3006,28 @@ RING_FUNC(ring_ImageCrop)
ring_state_free(((VM *) pPointer)->pRingState,RING_API_GETCPOINTER(2,"Rectangle"));
}
+
+RING_FUNC(ring_ImageResize)
+{
+ if ( RING_API_PARACOUNT != 3 ) {
+ RING_API_ERROR(RING_API_MISS3PARA);
+ return ;
+ }
+ if ( ! RING_API_ISPOINTER(1) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(2) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ if ( ! RING_API_ISNUMBER(3) ) {
+ RING_API_ERROR(RING_API_BADPARATYPE);
+ return ;
+ }
+ ImageResize((Image *) RING_API_GETCPOINTER(1,"Image"), (int ) RING_API_GETNUMBER(2), (int ) RING_API_GETNUMBER(3));
+}
+
RING_API void ringlib_init(RingState *pRingState)
{
ring_vm_funcregister("initwindow",ring_InitWindow);
@@ -3196,4 +3218,5 @@ RING_API void ringlib_init(RingState *pRingState)
ring_vm_funcregister("imagealphacrop",ring_ImageAlphaCrop);
ring_vm_funcregister("imagealphapremultiply",ring_ImageAlphaPremultiply);
ring_vm_funcregister("imagecrop",ring_ImageCrop);
+ ring_vm_funcregister("imageresize",ring_ImageResize);
}
