We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

ImageNode Image Padding

When I create an ImageNode and add an image to the node, the image is stretched to fill the node. How can I have the image not stretch or add in padding so the image does not take up the whole node?



1 Reply

RT Ramya Thirugnanam Syncfusion Team February 27, 2019 10:50 AM UTC

Hi Neill, 
 
Thanks for contacting Syncfusion support. 
 
We does not apply any padding to the images inside node. We can align the image with the scale option in shape. By default, the scale is set as none.  
 
Please set scale as ‘Meet’ and align as ‘XMinYMin’ to image to avoid the image to stretch into whole node. 
 
For more information about image alignment,  please refer to the below help documentation link. 
 
 
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon