<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Dots in C# and Slow Graphics - HELP' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Dots in C# and Slow Graphics - HELP' posted on the 'C#' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 09:11:00 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 09:11:00 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Dots in C# and Slow Graphics - HELP</title>
      <link>http://www.programmersheaven.com/mb/csharp/428087/428087/dots-in-c-and-slow-graphics---help/</link>
      <description>Hi there. I'm new here.&lt;br /&gt;
&lt;br /&gt;
I have a form application in Visual C# where I draw lots of dots. I mean about the whole screen, full of individual dots with area of 1 pixel. I am using FillRectangle() for this purpose, as DrawLine() is more than 10 times slower, plus it can only draw 2 pixels minimum.&lt;strong&gt; My problem is that it takes a while to draw them. &lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
First I thought it's the calculation for what color the dots will have (it's just black and white btw), but then I made it so the calculation's results are saved in a matrix of screen size, with values of 0 and 1, and then the matrix is "drawn" onto the screen.&lt;strong&gt; This doesn't make the problem go away.&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
If you want details about the actual code, I can post them/it, just ask so.&lt;br /&gt;
&lt;br /&gt;
I realized that the problem is with the actual rendering of graphics. I read on a lot of different sites, and searched different queries, but &lt;strong&gt;never found anything&lt;/strong&gt; remotely related to my problem. Usually people draw images or animations, not individual pixels, and that may make my problem so unique.&lt;br /&gt;
&lt;br /&gt;
I have had other problems with this, solved them, but I have reached 3 conclusions:&lt;br /&gt;
1. C# sucks at drawing dots&lt;br /&gt;
2. There may well be no way to draw graphics faster in C#&lt;br /&gt;
3. My Computer Science teacher sucks monkey b@llz&lt;br /&gt;
&lt;br /&gt;
I have nowhere else to search, so I will start as of today writing in forums (for now only this one) and hopefully, someone will help me figure this out, and potentially help others with the same type of problem.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;How do you hardware-accelerate the graphics rendering in C#?&lt;/strong&gt; Would that be a solution? I hope to receive answers from friendly, competent programmers.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/csharp/428087/428087/dots-in-c-and-slow-graphics---help/</guid>
      <pubDate>Sun, 01 Apr 2012 02:04:11 -0700</pubDate>
      <category>C#</category>
    </item>
  </channel>
</rss>