Zoom In , zoom Out on GUI

Hello , i need to show on image with GUI and make a zoom in and zoom out to make the image bigger or smaller , is that possible with babylon ?

Thanks

Hello
Yes you can control the size of the image element with width and height

If you want to keep the image element unchanged then you can use the sourceXXX properties:
https://doc.babylonjs.com/how_to/gui#image

Any exemple in the playground please ?

here we are:
https://www.babylonjs-playground.com/#XCPP9Y#1081

1 Like

Thanks for the xemple , but it is not connected to the mousse ? i need to zoom in zoom out with the mousse scroll

Yeah sure but this is pure JS :slight_smile: just handle mouse wheel event (onwheel Event)