<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" media="screen" href="/App_Themes/default/rss.xslt"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:evnet="http://www.mscommunities.com/rssmodule/"><channel><title>Entries for shoshan</title><atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/niners/shoshan/rss/default.aspx" /><image><url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url><title>Entries for shoshan</title><link>http://channel9.msdn.com/Niners/shoshan/</link></image><description>Entries, comments and threads posted by shoshan</description><link>http://channel9.msdn.com/Niners/shoshan/</link><language>en-us</language><pubDate>Sun, 16 Apr 2006 19:49:40 GMT</pubDate><lastBuildDate>Sun, 16 Apr 2006 19:49:40 GMT</lastBuildDate><generator>EvNet (EvNet, Version=1.0.3608.3122, Culture=neutral, PublicKeyToken=null)</generator><item><title>help with GDI+ &amp;amp; getting pixels... [help with GDI+ &amp;amp; getting pixels...]</title><description>&lt;P&gt;Hi..for some kind of reason my teacher is willing to pay me about 30$:D for doing a tiny project for him in VB.NET 2003:&lt;/P&gt;
&lt;P&gt;He wants me to get a fixed font name &amp;amp; size as input, and some chars, and the output will be the chars ordered by density.&lt;BR&gt;&lt;BR&gt;So I thought what easy! :&lt;BR&gt;for each char I will take a blank bitmap, fill it black,&lt;BR&gt;draw the char in white, and count how many white pixels were drawn.&lt;BR&gt;&lt;BR&gt;so I started a &lt;a href="http://img370.imageshack.us/img370/1262/150015001488151315018ql.gif"&gt;new windows form&lt;/a&gt;:&lt;BR&gt;&lt;IMG src="http://img370.imageshack.us/img370/1262/150015001488151315018ql.gif"&gt;&lt;BR&gt;&lt;BR&gt;&lt;STRONG&gt;AND NOW, MY PROBLEM:&lt;BR&gt;&lt;/STRONG&gt;*&amp;nbsp; how can I draw text to a bitmap so that I can go over it's pixels ?&lt;BR&gt;OR&lt;BR&gt;*&amp;nbsp; how can I get pixels from a control (I drew on the control) ?&lt;BR&gt;OR&lt;BR&gt;*&amp;nbsp; how can I get pixels that were drawn by a controls getGraphics ?&lt;/P&gt;&lt;p&gt;in reply to &lt;a href='http://channel9.msdn.com/forums/Coffeehouse/178053-help-with-GDI-amp-getting-pixels/'&gt;help with GDI+ &amp;amp; getting pixels...&lt;/a&gt;&lt;/p&gt;&lt;img src="http://channel9.msdn.com/178053/WebViewBug.aspx?EVT=0" height="1" width="1" alt="" /&gt;</description><comments>http://channel9.msdn.com/forums/Coffeehouse/178053-help-with-GDI-amp-getting-pixels/</comments><link>http://channel9.msdn.com/forums/Coffeehouse/178053-help-with-GDI-amp-getting-pixels/</link><pubDate>Sun, 16 Apr 2006 19:49:40 GMT</pubDate><guid isPermaLink="false">http://channel9.msdn.com/forums/Coffeehouse/178053-help-with-GDI-amp-getting-pixels/</guid><evnet:views>2896</evnet:views><evnet:viewtrackingurl>http://channel9.msdn.com/178053/WebViewBug.aspx?EVT=0</evnet:viewtrackingurl><evnet:previewtext>&lt;P&gt;Hi..for some kind of reason my teacher is willing to pay me about 30$&lt;img src='/emoticons/C9/emotion-2.gif' alt='Big Smile' /&gt; for doing a tiny project for him in VB.NET 2003:&lt;/P&gt;
&lt;P&gt;He wants me to get a fixed font name &amp;amp; size as input, and some chars, and the output will be the chars ordered by density.&lt;BR&gt;&lt;BR&gt;So I thought what easy! :&lt;BR&gt;for each char I will take a blank bitmap, fill it black,&lt;BR&gt;draw the char in white, and count how many white pixels were drawn.&lt;BR&gt;&lt;BR&gt;so I started a &lt;a href="http://img370.imageshack.us/img370/1262/150015001488151315018ql.gif"&gt;new windows form&lt;/a&gt;:&lt;BR&gt;&lt;IMG src="http://img370.imageshack.us/img370/1262/150015001488151315018ql.gif"&gt;&lt;BR&gt;&lt;BR&gt;</evnet:previewtext><dc:creator>shoshan</dc:creator><slash:comments>3</slash:comments><wfw:commentRss>http://channel9.msdn.com/forums/Coffeehouse/178053-help-with-GDI-amp-getting-pixels/RSS/</wfw:commentRss><trackback:ping>http://channel9.msdn.com/178053/Trackback.aspx</trackback:ping></item></channel></rss>