tag:blogger.com,1999:blog-1078032318127767231.post8249929685708832332..comments2024-03-20T01:42:16.872-05:00Comments on Spotfire Developer: Export Image from VisualizationJose Leviaguirrehttp://www.blogger.com/profile/12377756211132280060noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-1078032318127767231.post-22858256527870426992016-08-01T18:14:20.903-05:002016-08-01T18:14:20.903-05:00Hey Blake + Trevor,
Enabling anti-aliasing didn&#...Hey Blake + Trevor,<br /><br />Enabling anti-aliasing didn't make a difference on my image outputs. My text is still bold/blurry. Do you have any other ideas?<br /><br />Cheers,<br />Alexalach11https://www.blogger.com/profile/10721589776215767835noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-67699353293876758702016-04-20T12:14:10.504-05:002016-04-20T12:14:10.504-05:00Took a minute to realize that I needed to import I...Took a minute to realize that I needed to import ImageFormat<br />from System.Drawing.Imaging import ImageFormatBlakehttps://www.blogger.com/profile/14302147902639988414noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-51755990400490263662016-04-20T12:06:08.595-05:002016-04-20T12:06:08.595-05:00@Trevor Hubbard - Do you declare ImageFormat earli...@Trevor Hubbard - Do you declare ImageFormat earlier?Blakehttps://www.blogger.com/profile/14302147902639988414noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-51341767381753855862016-03-02T16:14:47.715-06:002016-03-02T16:14:47.715-06:00Figured it out, you need to turn on anti-aliasing....Figured it out, you need to turn on anti-aliasing.<br /><br />Example below:<br />vc = crosstop.As[VisualContent]()<br /> crosstop_r = Document.ActivePageReference.GetVisualBounds(crosstop)<br /> bm = Bitmap(crosstop_r.Width, crosstop_r.Height)<br /> crosstop_ratio = (float(crosstop_r.Width)/float(crosstop_r.Height))<br /> g = Graphics.FromImage(bm)<br /> g.TextRenderingHint = g.TextRenderingHint.AntiAlias<br /> vc.Render(g, crosstop_r)<br /> crosstopfile = Path.GetTempFileName()<br /> bm.Save(crosstopfile, ImageFormat.Png)Anonymoushttps://www.blogger.com/profile/05233881509100687960noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-9315003770399961962016-01-13T14:13:46.578-06:002016-01-13T14:13:46.578-06:00Still can't get this to work on text areas. A...Still can't get this to work on text areas. Anyone ever have any luck on that?Anonymoushttps://www.blogger.com/profile/13237473866384896344noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-84408848319788743532015-09-22T10:20:44.277-05:002015-09-22T10:20:44.277-05:00Hello Scott,
You will need to play with the grap...Hello Scott, <br /><br />You will need to play with the graphics settings to fine tune the output. Please share your findings!Jose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-79257258395326762132015-09-21T15:43:34.734-05:002015-09-21T15:43:34.734-05:00Text, such as axis labels, comes out blurry. Any ...Text, such as axis labels, comes out blurry. Any way to account for this or any other solutions to get visualizations out and maintain clean looking text?Anonymoushttps://www.blogger.com/profile/11908685345993987673noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-13781076614613469362015-03-19T11:18:16.104-05:002015-03-19T11:18:16.104-05:00how can I export the title of the visual?how can I export the title of the visual?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-87266603487770973532014-11-19T09:15:21.356-06:002014-11-19T09:15:21.356-06:00The font of the saved image differs from what...The font of the saved image differs from what's in dxp. How to set the image font?Anonymousnoreply@blogger.com