<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/rss.xsl"?><rss version="2.0"><channel><title>outlinetext Discussions Rss Feed</title><link>http://outlinetext.codeplex.com/Thread/List.aspx</link><description>outlinetext Discussions Rss Description</description><item><title>New Post: Video subtitles</title><link>http://outlinetext.codeplex.com/discussions/261199</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;It seems that m_PngOutlineText.MeasureString is a real performance killer...&lt;br /&gt;Instead I tried with graphics.MeasureString to get the dimensions and it works without any problems.&lt;/p&gt;&lt;/div&gt;</description><author>franz1986</author><pubDate>Mon, 13 Jun 2011 23:08:44 GMT</pubDate><guid isPermaLink="false">New Post: Video subtitles 20110613110844P</guid></item><item><title>New Post: Video subtitles</title><link>http://outlinetext.codeplex.com/discussions/261199</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello.&lt;/p&gt;
&lt;p&gt;First of all let me just say that I think this is a great library, truly amazing.&lt;/p&gt;
&lt;p&gt;Now, onto my problem =)&lt;br /&gt; I've been trying to write a DShow filter do display subtitles on video.&lt;br /&gt; So far I've managed to get the video, and write subtitle text on a transparent overlay bmp, but text rendering is slow and not of very nice quality.&lt;br /&gt; &amp;nbsp; Can you please help me and maybe point out what I'm doing wrong...&lt;/p&gt;
&lt;p&gt;Here's my code, I'm calling this method for every video frame...&lt;/p&gt;
&lt;p&gt;
&lt;div style="color: black; background-color: white;"&gt;
&lt;pre&gt;&lt;span style="color: blue;"&gt;private&lt;/span&gt; &lt;span style="color: blue;"&gt;void&lt;/span&gt; PrintSub(clsTitl titl, IntPtr pBuffer)
        {
            &lt;span style="color: blue;"&gt;using&lt;/span&gt; (Graphics g = Graphics.FromImage(bitmapOverlay))
            {
                g.Clear(Color.Transparent);

                &lt;span style="color: blue;"&gt;float&lt;/span&gt; sirinaStringa = 0, visinaStringa = 0, bla = 0, blu = 0;

                g.SmoothingMode = SmoothingMode.AntiAlias;
                g.InterpolationMode = InterpolationMode.HighQualityBicubic;

                &lt;span style="color: green;"&gt;//Drawing the back ground color&lt;/span&gt;
                Color m_clrBkgd = Color.FromArgb(255, 255, 128);
                SolidBrush brushBkgnd = &lt;span style="color: blue;"&gt;new&lt;/span&gt; SolidBrush(m_clrBkgd);
                &lt;span style="color: green;"&gt;//e.Graphics.FillRectangle(brushBkgnd, 0, 0, this.ClientSize.Width, this.ClientSize.Width);&lt;/span&gt;
                FontFamily fontFamily = &lt;span style="color: blue;"&gt;new&lt;/span&gt; FontFamily(&lt;span style="color: #a31515;"&gt;"Arial"&lt;/span&gt;);

                StringFormat strFormat = &lt;span style="color: blue;"&gt;new&lt;/span&gt; StringFormat();
                strFormat.Alignment = StringAlignment.Center;

                PngOutlineText m_PngOutlineText = &lt;span style="color: blue;"&gt;new&lt;/span&gt; PngOutlineText();
                m_PngOutlineText.EnableShadow(&lt;span style="color: blue;"&gt;true&lt;/span&gt;);

                &lt;span style="color: green;"&gt;//Rem to SetNullShadow() to release memory if a previous shadow has been set.&lt;/span&gt;
                m_PngOutlineText.SetNullShadow();
                m_PngOutlineText.DiffusedShadow(Color.FromArgb(255, 0, 0, 0), 2, &lt;span style="color: blue;"&gt;new&lt;/span&gt; Point(2, 2));


                m_PngOutlineText.MeasureString(g, fontFamily, FontStyle.Bold, 32, titl.SubtitleContent,
                    &lt;span style="color: blue;"&gt;new&lt;/span&gt; Point(10, 10), strFormat, &lt;span style="color: blue;"&gt;ref&lt;/span&gt; bla, &lt;span style="color: blue;"&gt;ref&lt;/span&gt; blu, &lt;span style="color: blue;"&gt;ref&lt;/span&gt; sirinaStringa, &lt;span style="color: blue;"&gt;ref&lt;/span&gt; visinaStringa);

                m_PngOutlineText.TextGlow(
                    Color.FromArgb(255, 255, 255),
                    Color.FromArgb(200, 0, 0, 0),
                    5);

                Bitmap m_pPngImage = &lt;span style="color: blue;"&gt;new&lt;/span&gt; Bitmap((&lt;span style="color: blue;"&gt;int&lt;/span&gt;)(sirinaStringa + 5.0f), (&lt;span style="color: blue;"&gt;int&lt;/span&gt;)(visinaStringa + 5.0f),
                    System.Drawing.Imaging.PixelFormat.Format32bppArgb);

                m_PngOutlineText.SetPngImage(m_pPngImage);
                m_PngOutlineText.SetShadowBkgd(m_clrBkgd, m_pPngImage.Width, m_pPngImage.Height);

                &lt;span style="color: green;"&gt;//Pozicija na ekranu&lt;/span&gt;
                m_PngOutlineText.DrawString(g, fontFamily, FontStyle.Bold, 32, titl.SubtitleContent, &lt;span style="color: blue;"&gt;new&lt;/span&gt; Point(0, 0), strFormat);
                m_pPngImage.RotateFlip(RotateFlipType.RotateNoneFlipY);

                &lt;span style="color: blue;"&gt;using&lt;/span&gt; (Bitmap v = &lt;span style="color: blue;"&gt;new&lt;/span&gt; Bitmap(m_videoWidth, m_videoHeight, m_stride,
                    PixelFormat.Format32bppArgb, pBuffer))
                {
                    &lt;span style="color: blue;"&gt;using&lt;/span&gt; (Graphics graf = Graphics.FromImage(v))
                    {
                        &lt;span style="color: blue;"&gt;int&lt;/span&gt; pozicija = (m_videoWidth / 2);&lt;span style="color: green;"&gt;// -(m_pPngImage.Width / 2);&lt;/span&gt;
                        graf.DrawImage(m_pPngImage, pozicija, 0, m_pPngImage.Width, m_pPngImage.Height);
                    }
                }
            }
        }
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;&lt;/div&gt;</description><author>franz1986</author><pubDate>Mon, 13 Jun 2011 15:30:33 GMT</pubDate><guid isPermaLink="false">New Post: Video subtitles 20110613033033P</guid></item><item><title>New Post: MT/MTd linking</title><link>http://outlinetext.codeplex.com/discussions/251427</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi Pabloko,&lt;/p&gt;
&lt;p&gt;Thank you&amp;nbsp;for your interest in TextDesigner! There is no plans&amp;nbsp;for a dll version at the moment because it is not easy to do a dll version as I need to export all the GDI/GDI+ classes used in TextDesigner. However, if you managed to do a dll version, I'll be more than glad to&amp;nbsp;add it inside the SVN repository.&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Thu, 31 Mar 2011 06:51:58 GMT</pubDate><guid isPermaLink="false">New Post: MT/MTd linking 20110331065158A</guid></item><item><title>New Post: MT/MTd linking</title><link>http://outlinetext.codeplex.com/discussions/251427</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hi, first great work with TextDesigner, there are any chance to compile using MT with dinamic linking?&lt;/p&gt;
&lt;/div&gt;</description><author>Pabloko</author><pubDate>Mon, 28 Mar 2011 02:17:06 GMT</pubDate><guid isPermaLink="false">New Post: MT/MTd linking 20110328021706A</guid></item><item><title>New Post: You need to dispose your GDI+ objects</title><link>http://outlinetext.codeplex.com/discussions/249398</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thank you very much....The best outline library I have seen....&lt;/p&gt;&lt;/div&gt;</description><author>luisarvayo</author><pubDate>Thu, 17 Mar 2011 19:49:17 GMT</pubDate><guid isPermaLink="false">New Post: You need to dispose your GDI+ objects 20110317074917P</guid></item><item><title>New Post: You need to dispose your GDI+ objects</title><link>http://outlinetext.codeplex.com/discussions/249398</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi &lt;a class="UserProfileLink" href="http://www.codeplex.com/site/users/view/luisarvayo"&gt;luisarvayo&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thanks for the heads up! :)&lt;/p&gt;
&lt;p&gt;Your suggestion and IDisposable is implemented.&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Sun, 13 Mar 2011 14:17:30 GMT</pubDate><guid isPermaLink="false">New Post: You need to dispose your GDI+ objects 20110313021730P</guid></item><item><title>New Post: You need to dispose your GDI+ objects</title><link>http://outlinetext.codeplex.com/discussions/249398</link><description>&lt;div style="line-height: normal;"&gt;
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I like this library very much.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It would be perfect if you dispose of objects as soon as those are not needed. For instance:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;            GraphicsPath path = &lt;span style="color:blue"&gt;new&lt;/span&gt; GraphicsPath();
	        path.AddString(strText, fontFamily, (&lt;span style="color:blue"&gt;int&lt;/span&gt;)fontStyle, fontSize, ptDraw, strFormat);

	        &lt;span style="color:blue"&gt;for&lt;/span&gt;(&lt;span style="color:blue"&gt;int&lt;/span&gt; i=1; i&amp;lt;=m_nThickness; &amp;#43;&amp;#43;i)
	        {
	            Pen pen = &lt;span style="color:blue"&gt;new&lt;/span&gt; Pen(m_clrOutline,i);
	            pen.LineJoin=LineJoin.Round;
	            graphics.DrawPath(pen, path);
            }

            &lt;span style="color:blue"&gt;if&lt;/span&gt; (m_bClrText)
            {
                SolidBrush brush = &lt;span style="color:blue"&gt;new&lt;/span&gt; SolidBrush(m_clrText);
                graphics.FillPath(brush, path);
            }
            &lt;span style="color:blue"&gt;else&lt;/span&gt;
                graphics.FillPath(m_brushText, path);

	        &lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;true&lt;/span&gt;;

&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You must change to:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div style="color:black; background-color:white"&gt;
&lt;pre&gt;            &lt;span style="color:blue"&gt;using&lt;/span&gt; (GraphicsPath path = &lt;span style="color:blue"&gt;new&lt;/span&gt; GraphicsPath())
            {
                path.AddString(strText, fontFamily, (&lt;span style="color:blue"&gt;int&lt;/span&gt;)fontStyle, fontSize, ptDraw, strFormat);

                &lt;span style="color:blue"&gt;for&lt;/span&gt; (&lt;span style="color:blue"&gt;int&lt;/span&gt; i = 1; i &amp;lt;= m_nThickness; &amp;#43;&amp;#43;i)
                {
                    &lt;span style="color:blue"&gt;using&lt;/span&gt; (Pen pen = &lt;span style="color:blue"&gt;new&lt;/span&gt; Pen(m_clrOutline, i))
                    {
                        pen.LineJoin = LineJoin.Round;
                        graphics.DrawPath(pen, path);
                    }
                }

                &lt;span style="color:blue"&gt;if&lt;/span&gt; (m_bClrText)
                {
                    &lt;span style="color:blue"&gt;using&lt;/span&gt; (SolidBrush brush = &lt;span style="color:blue"&gt;new&lt;/span&gt; SolidBrush(m_clrText))
                    {
                        graphics.FillPath(brush, path);
                    }
                }
                &lt;span style="color:blue"&gt;else&lt;/span&gt;
                    graphics.FillPath(m_brushText, path);
            }

	        &lt;span style="color:blue"&gt;return&lt;/span&gt; &lt;span style="color:blue"&gt;true&lt;/span&gt;;

&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Additionally, you must dispose class level GDI&amp;#43; objects like this in&amp;nbsp;TextGlowStrategy:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;protected System.Drawing.Brush m_brushText;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;/div&gt;</description><author>luisarvayo</author><pubDate>Sat, 12 Mar 2011 00:55:13 GMT</pubDate><guid isPermaLink="false">New Post: You need to dispose your GDI+ objects 20110312125513A</guid></item><item><title>New Post: memory leak?</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=215402</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi kendang, I have solved the memory leaks.&lt;/p&gt;
&lt;p&gt;You can download the latest source here: &lt;a href="http://outlinetext.codeplex.com/SourceControl/list/changesets"&gt;http://outlinetext.codeplex.com/SourceControl/list/changesets&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have also made the GDI fonts appear the same size as the GDI+ fonts.&lt;/p&gt;
&lt;p&gt;I hope you can continue to use the library because there are 3 more exciting outline styles coming up. And I am considering to add &lt;a href="http://www.freetype.org/"&gt;FreeType&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/dd374091(v=VS.85).aspx"&gt;Uniscribe&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/dd368038(VS.85).aspx"&gt;DirectWrite&lt;/a&gt; support in near future! And a xml config file to configure the engine. And also a plan to make this library cross platform, using Freetype library.&lt;/p&gt;
&lt;p&gt;Thanks! :)&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Wed, 30 Jun 2010 14:52:21 GMT</pubDate><guid isPermaLink="false">New Post: memory leak? 20100630025221P</guid></item><item><title>New Post: memory leak?</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=215402</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thank you very much for your reply.&lt;/p&gt;
&lt;p&gt;After I did some debug, I found GDI+ Graphics::DrawPath (Get GraphicsPath from string) will take some memory after every call. But I did not find any know issues about it when I google it.&lt;/p&gt;
&lt;p&gt;Let me know if I  can help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>kendang</author><pubDate>Wed, 16 Jun 2010 21:24:03 GMT</pubDate><guid isPermaLink="false">New Post: memory leak? 20100616092403P</guid></item><item><title>New Post: memory leak?</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=215402</link><description>&lt;div style="line-height: normal;"&gt;Hi Kendang,

Thanks for bringing my attention to the memory leaks. There are very serious memory problems with the structural design of the library which are not easy to fix. But I'll fix it as soon as possible. Thanks!!&lt;/div&gt;</description><author>shaovoon</author><pubDate>Wed, 16 Jun 2010 09:55:21 GMT</pubDate><guid isPermaLink="false">New Post: memory leak? 20100616095521A</guid></item><item><title>New Post: memory leak?</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=215402</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Firstly thank you very much for the great work.&lt;/p&gt;
&lt;p&gt;But when I tried TestOutlineText.exe and repeated to switch text effect from such as single outline to double outline, I noticed the memory increases correspondingly. It seems there are memory leaks somewhere.&lt;/p&gt;
&lt;p&gt;Also when I use the text designer library in my test vc++6.0 project, the memory also keeps increasing when I repeat to call DrawString from the same object of class OutlineText. Sometimes even 1M memory is increased in one time call.&lt;/p&gt;
&lt;p&gt;Any advice?&lt;/p&gt;&lt;/div&gt;</description><author>kendang</author><pubDate>Wed, 09 Jun 2010 02:07:17 GMT</pubDate><guid isPermaLink="false">New Post: memory leak? 20100609020717A</guid></item><item><title>New Post: Ability to outline shapes</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=204141</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Haha, Great minds thinks alike!! Maybe, I'll write new classes, based on the library, to take in a shape path.&lt;br&gt;&lt;br&gt;:D&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Mon, 08 Mar 2010 07:34:33 GMT</pubDate><guid isPermaLink="false">New Post: Ability to outline shapes 20100308073433A</guid></item><item><title>New Post: Ability to outline shapes</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=204141</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;While playing with the Library I thought it would be great to Outline shapes as well. The developer could provide the shape in an array of Points (like you do for Polyline).&lt;/p&gt;
&lt;p&gt;This way we could add Stars, Circles, logos,... to the Render.&lt;/p&gt;&lt;/div&gt;</description><author>Yarp</author><pubDate>Mon, 08 Mar 2010 07:20:55 GMT</pubDate><guid isPermaLink="false">New Post: Ability to outline shapes 20100308072055A</guid></item><item><title>New Post: Silverlight support?</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=85432</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi jcmorin,&lt;/p&gt;
&lt;p&gt;The library cannot be used in the Silverlight because it uses unsafe CSharp code, such as pointer to access the Bitmap's color bytes.&lt;/p&gt;
&lt;p&gt;Thank you for your interest in this library.&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Wed, 24 Feb 2010 03:28:36 GMT</pubDate><guid isPermaLink="false">New Post: Silverlight support? 20100224032836A</guid></item><item><title>New Post: OutLine Text on Compact Framework</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=75392</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;That will be not easy: The Compact Framework doesn't have a &amp;quot;GraphicsPath&amp;quot;...&lt;/p&gt;&lt;/div&gt;</description><author>gpe54</author><pubDate>Sat, 20 Feb 2010 16:43:10 GMT</pubDate><guid isPermaLink="false">New Post: OutLine Text on Compact Framework 20100220044310P</guid></item><item><title>New Post: OutLine Text on Compact Framework</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=75392</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi shaovon,&lt;/p&gt;
&lt;p&gt;I tried: It is impossible to append a Framework project to Compact Framework project. But, thank you for your answer. Now, I have to understand your code source for a smart translation... (I saw just recently that you give a link&amp;nbsp;on home page&amp;nbsp;with more detailed explanations).&lt;/p&gt;&lt;/div&gt;</description><author>gpe54</author><pubDate>Sat, 20 Feb 2010 13:27:21 GMT</pubDate><guid isPermaLink="false">New Post: OutLine Text on Compact Framework 20100220012721P</guid></item><item><title>New Post: OutLine Text on Compact Framework</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=75392</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi gpe54,&lt;/p&gt;
&lt;p&gt;Very sorry for the late reply as I did not see your question until now. Prior to 0.3.0, everything is written in native C++, even the .NET wrapper, so it is impossible to use in Compact Framework. Since then, I have ported the C++ library to C# for writing the special effect framework. You can try to compile the TextDesignerCSLibrary, using the Compact Framework, to see whether it complains any unsupported methods. I do not have any experience in Compact Framework. Sorry.&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Sat, 20 Feb 2010 09:13:57 GMT</pubDate><guid isPermaLink="false">New Post: OutLine Text on Compact Framework 20100220091357A</guid></item><item><title>New Post: dotNetOutlineText does not work in Windows 7 x64</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=83981</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;The C# version works fine, thank you.&lt;/p&gt;
&lt;p&gt;wima&lt;/p&gt;&lt;/div&gt;</description><author>wima75</author><pubDate>Sat, 20 Feb 2010 09:10:06 GMT</pubDate><guid isPermaLink="false">New Post: dotNetOutlineText does not work in Windows 7 x64 20100220091006A</guid></item><item><title>New Post: Silverlight support?</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=85432</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi jcmorin,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply. I am not a C#/Silverlight/WPF programmer, so I am not suitable to answer your question. From the BING search, WPF can do outline text. Not so sure about Silverlight.&lt;/p&gt;
&lt;p&gt;http://msdn.microsoft.com/en-us/library/ms745816%28VS.85%29.aspx&lt;/p&gt;
&lt;p&gt;Sorry for unable to be of any help.&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Sat, 20 Feb 2010 09:04:32 GMT</pubDate><guid isPermaLink="false">New Post: Silverlight support? 20100220090432A</guid></item><item><title>New Post: dotNetOutlineText does not work in Windows 7 x64</title><link>http://outlinetext.codeplex.com/Thread/View.aspx?ThreadId=83981</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi wima75,&lt;/p&gt;
&lt;p&gt;You can try the latest 0.3.0 C# version and see if it solves your problem? C++/CLI dotNetOutLineText is obsolete and is replaced by the new C# library.&lt;/p&gt;&lt;/div&gt;</description><author>shaovoon</author><pubDate>Sat, 20 Feb 2010 08:56:29 GMT</pubDate><guid isPermaLink="false">New Post: dotNetOutlineText does not work in Windows 7 x64 20100220085629A</guid></item></channel></rss>