In Diagram Control, by default the image size depends on the node’s size and if you do not set the size of the node, then the image’s size will be set to the node’s size.
You have mentioned in your response that the node is resized from original size while appending the image with the size of the image contains 16*16. Please check and let us know if the node‘s size is set or not in your project while appending the node into the diagram.
If we have misunderstood your requirement, please share us more information about your requirement probably a code example or sample or explain us on how you are resizing the image/Node in your project.
Regards,
Naganathan K G
Hi Blanca,
While unzipping your provided attachment, we are getting error as shown below. Please refer to the below attachment,
Regards,
Naganathan K G
Hi Blanca, Thanks for your update. From the attached video, we found that the Syncfusion’s Diagram.Windows and Shared.Base assembly’s framework versions are different. Before executing the sample, please check whether the attached DLLs framework are under same version or not? If not, refer to the DLLs under same framework/version. Here are the details of referring the DLLs version for particular .NET framework: .Net Framework Dlls 2.0 13.1200.0.53 3.5 13.1350.0.53 4.0 13.1400.0.53 4.5 13.1450.0.53 4.5.1 13.1451.0.53 4.6 13.1460.0.53 Regards,
Naganathan K G
After analyzing the attached video, we found that still you didn’t change Syncfusion.Shared.Base assembly framework version as we mentioned in the previous update which will be the cause for the reported issue. We suggest you to refer the assemblies under 2.0 framework version which will resolve the reported issue. However we have attached sample containing the assemblies under 2.0 framework version.
Sample:
Regards,
Naganathan K G
After analyzing the attached video, we found that still you didn’t change Syncfusion.Shared.Base assembly framework version as we mentioned in the previous update which will be the cause for the reported issue. Please refer to the below screenshots and we have highlighted the errors which are captured from your video,
Diagram.Base Assembly | |
Diagram.Windows Assembly | |
Shared.Base | |
In above table, the assemblies of Diagram.Base and Diagram.Windows are same framework version in 2.0. But the Shared.Base assembly referred in 3.5 framework version.
We suggest you to refer the assemblies under 2.0 framework version which will resolve the reported issue. However we have attached sample containing the assemblies under 2.0 framework version.
Sample:
Regards,
Naganathan K G
Hi Blanca,
On further analyzing your attached video, we suspect that the Node.EditStyle’s AllowChangeHeight/AllowChangeWidth/Enable properties are set to false while saving/loading the diagram. Please check and let us know whether these properties are enabled while saving/loading the diagram in your environment.
Regards,
Naganathan K G
Hi Blanca,
Thanks for your update.
In your previously attached video, before saving and loading the diagram file the bitmap node is resized while changing the image in your environment.
If you have disabled Node.EditStyle’s “AllowChangingHeight/AllowChangingWidth” property before saving/loading the bitmap node will not be resized while changing the image.
Please confirm us whether you are disabling those properties while saving/loading the diagram file, if so this will be the cause for the reported issue.
Regards,
Naganathan K G