Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Bitmap inside <image> is not display (Read 2799 times)
nullable
Full Member
***
Offline


I Love MindFusion!

Posts: 124
Joined: Aug 25th, 2022
Bitmap inside <image> is not display
Aug 25th, 2022 at 10:41am
Print Post  
Hi, I have an svg file(https://dropmefiles.com/sY0gq) that contains a bitmap image in the <image> tag in addition to the primitives, and I'm trying to display this svg on a diagram using the code below,
the image, unlike primitives, is not displayed

Code
Select All
var svgNode = new SvgNode();
SvgContent content = new SvgContent();
content.Parse(@"C:\Users\User\Documents\test2.svg");
svgNode.Content = content;
diagram.Nodes.Add(svgNode);
 

  

1_002.PNG ( 154 KB | 119 Downloads )
1_002.PNG
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Bitmap inside <image> is not display
Reply #1 - Aug 25th, 2022 at 11:03am
Print Post  
Hi,

Indeed, SvgContent does not load bitmaps at this time. We'll have it in mind for next release.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Bitmap inside <image> is not display
Reply #2 - Sep 23rd, 2022 at 12:18pm
Print Post  
Hi,

Try this build -
https://mindfusion.eu/_beta/wpfdiag383.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Ivan K.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 30th, 2021
Re: Bitmap inside <image> is not display
Reply #3 - Nov 29th, 2022 at 11:57am
Print Post  
Hi All! Thank you for elaboration.
Unfortunately, SVG import does not work as expected.

If image has transform matrix - transformation is not applied on the resulting diagram. Could you please check?

Sample SVG: https://dropmefiles.com/53tYz

Code (Java)
Select All
var svgNode = new SvgNode();
SvgContent content = new SvgContent();
content.Parse(@"D:/personal/img.svg");
svgNode.Content = content;
diagram.Nodes.Add(svgNode);
 

  

svg_image.png ( 51 KB | 105 Downloads )
svg_image.png
Back to top
 
IP Logged
 
Ivan K.
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 9
Joined: Jun 30th, 2021
Re: Bitmap inside <image> is not display
Reply #4 - Dec 6th, 2022 at 1:10am
Print Post  
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3378
Joined: Oct 19th, 2005
Re: Bitmap inside <image> is not display
Reply #5 - Dec 6th, 2022 at 8:42am
Print Post  
Hi,

This build applies image transform -
https://mindfusion.eu/_beta/wpfdiag39.zip

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint