We have found an issue in the example and we have logged a ticket as DIAGRAMJAVA-51072 in order to get it fixed. The ticket has been associated with this forum thread and you will be notified as soon as it is resolved. Please be patient and spare us some time.
The issues you have found earlier (filed as DIAGRAMJAVA-51072) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou
I upgraded to this version, and the problem has not gone away. The example that did not work has been removed. Resisting urge to make sarcastic comment here. We are in the process of purchasing a license, hope you fix it soon.
@Thinian
We are sorry for any inconvenience caused to you.
Please use this sample code to set icon update:
ms.setIconUpdate(BOOL.TRUE);
Add the following code to set the properties of the image.
shape.getForeign().getImgOffsetX().setValue(0);
shape.getForeign().getImgOffsetY().setValue(0);
shape.getForeign().getImgWidth().setValue(width);
shape.getForeign().getImgHeight().setValue(height);
We have updated this example.
Thanks.
Please note that when you manually generate a VTX file using Visio, the image cannot be seen in the Master of the generated VTX file, but it can be seen in the VSSX file.
Ok, so this is almost working. When I use the icons in another document and I set the width and height of the image, it does not scale the image. image.png (11.1 KB)
All of the images are from the same template, the bottom one is drawn with a larger width and height.
When I make the stencil in the first place, I tried:
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.