<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Computer Graphics Forum RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest threads from the 'Computer Graphics' forum at Programmer's Heaven, excluding replies.</description>
    <language>en</language>
    <copyright>Copyright 2008 Programmers Heaven</copyright>
    <pubDate>Mon, 01 Dec 2008 20:19:03 -0700</pubDate>
    <lastBuildDate>Mon, 01 Dec 2008 20:19:03 -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>load a 3d mesh or object</title>
      <link>http://www.programmersheaven.com/mb/graphics/382068/382068/load-a-3d-mesh-or-object/</link>
      <description>i want to load a 3d mesh or object in mfc dialog using opengl vc++ kindly help me&lt;br /&gt;</description>
      <pubDate>Thu, 20 Nov 2008 04:09:54 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>simulation of sensor</title>
      <link>http://www.programmersheaven.com/mb/graphics/382067/382067/simulation-of-sensor/</link>
      <description>i want to simulation of sensor 6 DOF (x y z yaw pitch roll) on mfc dialog 3d window.when i move sensor its show simulation and movment on 3d window using opengl with vc++.Kindly help me how i do.sensor give me 6 values frequntly. &lt;br /&gt;</description>
      <pubDate>Thu, 20 Nov 2008 04:06:43 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>What component to use for drawing graphics in Visual Studio 2005</title>
      <link>http://www.programmersheaven.com/mb/graphics/382015/382015/what-component-to-use-for-drawing-graphics-in-visual-studio-2005/</link>
      <description>Hi,&lt;br /&gt;
I am new to Visual Studio and I need to make an application with graphics (mostly lines and arcs). My question is what component you use for drawing graphics (like in Borland Builder is TPaintBox component). To be more specific, which component you use to take the device content from in Visual Studio. &lt;br /&gt;
Thank you,&lt;br /&gt;
Denny_B&lt;br /&gt;
/*edited*/ The application will be dialog based.</description>
      <pubDate>Tue, 18 Nov 2008 14:21:37 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Split AVI</title>
      <link>http://www.programmersheaven.com/mb/graphics/381897/381897/split-avi/</link>
      <description>I want to be able to split a video in half while playing it.&lt;br /&gt;
The general idea is to take a video that is (for example) 64pixels high and 1000 pixels wide and play it in a 128pixel high and 500 pixel wide window.&lt;br /&gt;
example:&lt;br /&gt;
&lt;img src="http://ideadeploymentonline.com/misc/forum/one.bmp" /&gt;&lt;br /&gt;
would be played as:&lt;br /&gt;
&lt;img src="http://ideadeploymentonline.com/misc/forum/split1.bmp" /&gt;&lt;br /&gt;
&lt;br /&gt;
I am sure DirectX could do it, but I have NO CLUE where to even begin to research it.&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 14 Nov 2008 19:07:08 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Vbasic drawing in hDc context with API's</title>
      <link>http://www.programmersheaven.com/mb/graphics/381314/381314/vbasic-drawing-in-hdc-context-with-apis/</link>
      <description>Hello,&lt;br /&gt;
I have wrote code to draw moon aspect using api's, moon is drawn properly&lt;br /&gt;
but scale is wrong.&lt;br /&gt;
need help !</description>
      <pubDate>Thu, 23 Oct 2008 04:14:30 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Segment Polygon Intersection</title>
      <link>http://www.programmersheaven.com/mb/graphics/381218/381218/segment-polygon-intersection/</link>
      <description>I would like to check if a segment and a polygon have some intersections. Could you plz indicate me some algorithms to solve it. I knew Ray Casting algorithm and I wonder if there are other algorithms ? Thanks in advance&lt;br /&gt;</description>
      <pubDate>Thu, 16 Oct 2008 00:57:05 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Controls drawing in funny order!</title>
      <link>http://www.programmersheaven.com/mb/graphics/380033/380033/controls-drawing-in-funny-order/</link>
      <description>Hi All,&lt;br /&gt;
&lt;br /&gt;
    I have a set of my own controls that derive from Control class.  I am having some trouble with the order in which they paint if they are overlapping.  In fact sometimes it paints part of one and part of the other making it look like they are slotted together!!!  I have attached a screen shot.&lt;br /&gt;
&lt;br /&gt;
Does anybody know anything about the order and how controls are painted?&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=293"&gt;controls.JPG&lt;/a&gt; (24290 bytes | downloaded 28 times)</description>
      <pubDate>Sat, 11 Oct 2008 23:05:50 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>GDI+ to DirectX</title>
      <link>http://www.programmersheaven.com/mb/graphics/376463/376463/gdi+-to-directx/</link>
      <description>I use GDI+ in my application, with visual basic .net 2005 , but now that im trying to create new functionalities, i'm using DirectX and Visual C#. I've encountered a big problem. The application is a medical application where the doctor has to click, with the mouse, in certain parts of an image. Those clicks will create points that the program will save in a database in order to later display them on screen. When i use directx and visual c#, the points aren't shown in their correct location. The points are a lot close together and in different locations. In GDI i was drawing on a picturebox and now i'm just drawing in a black screen. I've already summed (+) then picturebox.left and picturebox.top, but even that didn't work.  the picturebox  was drawing in pixels. Could directx be drawing in another measure?&lt;br /&gt;
&lt;br /&gt;
Can you please help?&lt;br /&gt;
&lt;br /&gt;
My thanks in advanced</description>
      <pubDate>Tue, 30 Sep 2008 08:47:35 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Need Help : To zoom an image trouhg interpolation</title>
      <link>http://www.programmersheaven.com/mb/graphics/375938/375938/need-help--to-zoom-an-image-trouhg-interpolation/</link>
      <description>Hi Everyone,&lt;br /&gt;
I need some help.&lt;br /&gt;
i loaded the bitmap image file without any graphic api and now&lt;br /&gt;
I am trying to zoom  image trough Linear or Neighbor Interpolation and bi linear interpolation. &lt;br /&gt;
Can anyone help me about this?&lt;br /&gt;
If you have any source code. Please help me.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks&amp;amp; Regards&lt;br /&gt;
&lt;br /&gt;
Anuj Awasthi &lt;br /&gt;</description>
      <pubDate>Wed, 24 Sep 2008 05:26:58 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Need help</title>
      <link>http://www.programmersheaven.com/mb/graphics/375528/375528/need-help/</link>
      <description>I'm studying Computer Graphics at school. I've just got to know it, so plz help me solve this problem.&lt;br /&gt;
I used the algorithm Bresenham to draw line -&amp;gt; drew a star when we know its diameter. The request is that count the number of square bricks (c x c) to hem the star (use Bresenham algorithm). Could you help me plz ?&lt;br /&gt;</description>
      <pubDate>Thu, 18 Sep 2008 20:48:59 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>ave the content of polygon to 2d char array buffer for storing pixels</title>
      <link>http://www.programmersheaven.com/mb/graphics/375181/375181/ave-the-content-of-polygon-to-2d-char-array-buffer-for-storing-pixels/</link>
      <description>Hi All,&lt;br /&gt;
I have written code for draw a regular polygon for drawing rectangle, pentagon , hexagon etc.&lt;br /&gt;
Now i want to save the content of polygon to 2d char array buffer for storing pixels and save it into a bitmap image file.&lt;br /&gt;
&lt;br /&gt;
But i am not able to do this.&lt;br /&gt;
can anyone  help me?&lt;br /&gt;
&lt;br /&gt;
Anuj&lt;br /&gt;</description>
      <pubDate>Fri, 12 Sep 2008 03:09:04 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>GetPixel color is slightly wrong!</title>
      <link>http://www.programmersheaven.com/mb/graphics/375176/375176/getpixel-color-is-slightly-wrong/</link>
      <description>Hi all,&lt;br /&gt;
&lt;br /&gt;
   I am writing a C# .net data plotting application.  I use Graphics.DrawLine() to draw my pretty plot lines.  Then in the MouseMove event I use a call to windows API GetPixel() (code below) to read the pixel under the mouse.  If it is the same color as one of the plot lines I highlight that line next time it is drawn... pretty simple stuff!&lt;br /&gt;
&lt;br /&gt;
   The problem is that this works perfectly on my home PC, but on my work PC there is a discrepancy between the colour of the drawn line and the colour I read using GetPixel().  I am not sure if the line is drawn with the wrong color, or the wrong color is read!  Eg I write a colour like A=255, R=255, G=128, B= 128 and I read a colour like A=255, R=255, G=132, B=132.  There is no problem with standard colours like white, red, black etc...&lt;br /&gt;
&lt;br /&gt;
Any help would be greatly appreciated...&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
            Color color = Color.Empty;&lt;br /&gt;
            if (control != null)&lt;br /&gt;
            {&lt;br /&gt;
                IntPtr hDC = GetDC(control.Handle);&lt;br /&gt;
                int colorRef = GetPixel(hDC, x, y);&lt;br /&gt;
                color = Color.FromArgb(&lt;br /&gt;
                    (int)(colorRef &amp;amp; 0x000000FF),&lt;br /&gt;
                    (int)(colorRef &amp;amp; 0x0000FF00) &amp;gt;&amp;gt; 8,&lt;br /&gt;
                    (int)(colorRef &amp;amp; 0x00FF0000) &amp;gt;&amp;gt; 16);&lt;br /&gt;
                //color = ColorTranslator.FromWin32(colorRef);&lt;br /&gt;
                ReleaseDC(control.Handle, hDC);&lt;br /&gt;
            }&lt;br /&gt;</description>
      <pubDate>Thu, 11 Sep 2008 23:58:28 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>algorithms</title>
      <link>http://www.programmersheaven.com/mb/graphics/374353/374353/algorithms/</link>
      <description>What are the algorithms used to draw rectangle&lt;br /&gt;</description>
      <pubDate>Thu, 21 Aug 2008 01:47:22 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>GLUI in linux</title>
      <link>http://www.programmersheaven.com/mb/graphics/373503/373503/glui-in-linux/</link>
      <description>Hello. I made a program in Linux and i want to add a GLUI menu. But when i compile i get this error:&lt;br /&gt;
&lt;br /&gt;
/usr/include/GL/glui.h:59:19: error: cstdlib: No such file or directory&lt;br /&gt;
/usr/include/GL/glui.h:60:18: error: cstdio: No such file or directory&lt;br /&gt;
/usr/include/GL/glui.h:61:19: error: cstring: No such file or directory&lt;br /&gt;
/usr/include/GL/glui.h:62:18: error: string: No such file or directory&lt;br /&gt;
/usr/include/GL/glui.h:63:18: error: vector: No such file or directory&lt;br /&gt;
In file included from cubemap.c:10:&lt;br /&gt;
/usr/include/GL/glui.h:80: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘RGBc’&lt;br /&gt;
/usr/include/GL/glui.h:240: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘:’ token&lt;br /&gt;
/usr/include/GL/glui.h:241: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘&amp;amp;’ token&lt;br /&gt;
/usr/include/GL/glui.h:245: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI’&lt;br /&gt;
/usr/include/GL/glui.h:246: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Control’&lt;br /&gt;
/usr/include/GL/glui.h:247: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Listbox’&lt;br /&gt;
/usr/include/GL/glui.h:248: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_StaticText’&lt;br /&gt;
/usr/include/GL/glui.h:249: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_EditText’&lt;br /&gt;
/usr/include/GL/glui.h:250: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Panel’&lt;br /&gt;
/usr/include/GL/glui.h:251: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Spinner’&lt;br /&gt;
/usr/include/GL/glui.h:252: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_RadioButton’&lt;br /&gt;
/usr/include/GL/glui.h:253: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_RadioGroup’&lt;br /&gt;
/usr/include/GL/glui.h:254: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Glut_Window’&lt;br /&gt;
/usr/include/GL/glui.h:255: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_TreePanel’&lt;br /&gt;
/usr/include/GL/glui.h:256: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Scrollbar’&lt;br /&gt;
/usr/include/GL/glui.h:257: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_List’&lt;br /&gt;
/usr/include/GL/glui.h:259: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Arcball’&lt;br /&gt;
/usr/include/GL/glui.h:281: error: expected ‘)’ before ‘*’ token&lt;br /&gt;
/usr/include/GL/glui.h:294: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_CB’&lt;br /&gt;
/usr/include/GL/glui.h:317: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Control’&lt;br /&gt;
/usr/include/GL/glui.h:327: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Node’&lt;br /&gt;
/usr/include/GL/glui.h:410: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Bitmap’&lt;br /&gt;
/usr/include/GL/glui.h:441: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_StdBitmaps’&lt;br /&gt;
/usr/include/GL/glui.h:471: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Master_Object’&lt;br /&gt;
/usr/include/GL/glui.h:553: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Master’&lt;br /&gt;
/usr/include/GL/glui.h:569: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Glut_Window’&lt;br /&gt;
/usr/include/GL/glui.h:607: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Main’&lt;br /&gt;
/usr/include/GL/glui.h:759: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Control’&lt;br /&gt;
/usr/include/GL/glui.h:956: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Button’&lt;br /&gt;
/usr/include/GL/glui.h:1005: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Checkbox’&lt;br /&gt;
/usr/include/GL/glui.h:1061: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Column’&lt;br /&gt;
/usr/include/GL/glui.h:1095: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Panel’&lt;br /&gt;
/usr/include/GL/glui.h:1139: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_FileBrowser’&lt;br /&gt;
/usr/include/GL/glui.h:1203: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Rollout’&lt;br /&gt;
/usr/include/GL/glui.h:1261: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Tree’&lt;br /&gt;
/usr/include/GL/glui.h:1361: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_TreePanel’&lt;br /&gt;
/usr/include/GL/glui.h:1428: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Rotation’&lt;br /&gt;
/usr/include/GL/glui.h:1429: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Translation’&lt;br /&gt;
/usr/include/GL/glui.h:1435: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI’&lt;br /&gt;
/usr/include/GL/glui.h:1579: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_EditText’&lt;br /&gt;
/usr/include/GL/glui.h:1697: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_CommandLine’&lt;br /&gt;
/usr/include/GL/glui.h:1747: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_RadioGroup’&lt;br /&gt;
/usr/include/GL/glui.h:1784: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_RadioButton’&lt;br /&gt;
/usr/include/GL/glui.h:1825: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Separator’&lt;br /&gt;
/usr/include/GL/glui.h:1858: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Spinner’&lt;br /&gt;
/usr/include/GL/glui.h:1951: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_StaticText’&lt;br /&gt;
/usr/include/GL/glui.h:1977: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_TextBox’&lt;br /&gt;
/usr/include/GL/glui.h:2080: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_List_Item’&lt;br /&gt;
/usr/include/GL/glui.h:2093: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_List’&lt;br /&gt;
/usr/include/GL/glui.h:2200: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Scrollbar’&lt;br /&gt;
/usr/include/GL/glui.h:2313: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Listbox_Item’&lt;br /&gt;
/usr/include/GL/glui.h:2320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Listbox’&lt;br /&gt;
/usr/include/GL/glui.h:2390: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Mouse_Interaction’&lt;br /&gt;
/usr/include/GL/glui.h:2436: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Rotation’&lt;br /&gt;
/usr/include/GL/glui.h:2491: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘GLUI_Translation’&lt;br /&gt;
&lt;br /&gt;
What could be the problem and how could i solve it?&lt;br /&gt;</description>
      <pubDate>Sat, 19 Jul 2008 07:12:35 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>VC++ Graphics Help</title>
      <link>http://www.programmersheaven.com/mb/graphics/373139/373139/vc++-graphics-help/</link>
      <description>I am new to graphics programming. My program requires that i draw a&lt;br /&gt;
grid of circles encased in a rectangle.&lt;br /&gt;
&lt;br /&gt;
The window i use to display is of fixed size.&lt;br /&gt;
&lt;br /&gt;
My problem occurs when i run the program under diff resoltution the drawing over flows my screen.Can some one give tips on how i can fix the &lt;br /&gt;
problem.&lt;br /&gt;
&lt;br /&gt;
I need the size of my window to be constant even if the resolution is changed.Is it possible.&lt;br /&gt;</description>
      <pubDate>Fri, 04 Jul 2008 03:19:28 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Video Convertor</title>
      <link>http://www.programmersheaven.com/mb/graphics/373024/373024/video-convertor/</link>
      <description>Hi all,&lt;br /&gt;
If I want to implement a application software that convert FLV format to YUV format, what do I need to learn? what do I need to know?&lt;br /&gt;</description>
      <pubDate>Mon, 30 Jun 2008 02:21:03 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>C++ Generate and save large image</title>
      <link>http://www.programmersheaven.com/mb/graphics/371342/371342/c++-generate-and-save-large-image/</link>
      <description>I am working on a small project to generate a large image in C++, on the order of 340000px by 34000px (10:1 ratio).  The program basically draws a bunch of lines on the canvas.  I need to save this image but I am having trouble coming up with an adequate way to do this.  I cannut use a bmp as the image is too large to work with.  &lt;br /&gt;
&lt;br /&gt;
This is the code I'm working with:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class Form1 : System.Windows.Forms.Form&lt;br /&gt;
{&lt;br /&gt;
   public Form1()&lt;br /&gt;
   {&lt;br /&gt;
       InitializeComponent();&lt;br /&gt;
   }&lt;br /&gt;
   private void InitializeComponent()&lt;br /&gt;
   {&lt;br /&gt;
       this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
       this.ClientSize = new System.Drawing.Size(340000, 34000);&lt;br /&gt;
       this.Text = "";&lt;br /&gt;
       this.Resize += new System.EventHandler(this.Form1_Resize);&lt;br /&gt;
       this.Paint += new System.Windows.Forms.PaintEventHandler(this.Form1_
Paint);&lt;br /&gt;
&lt;br /&gt;
   }&lt;br /&gt;
   static void Main()&lt;br /&gt;
   {&lt;br /&gt;
       Application.Run(new Form1());&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)&lt;br /&gt;
   {&lt;br /&gt;
       int x, y, i, j, xOld, yOld, height, width, rays;&lt;br /&gt;
       height = 33600;&lt;br /&gt;
       width = 336000;&lt;br /&gt;
       rays = 200;&lt;br /&gt;
&lt;br /&gt;
    Graphics g = e.Graphics;&lt;br /&gt;
    g.FillRectangle(Brushes.White, this.ClientRectangle);&lt;br /&gt;
    Pen p = new Pen(Color.Black);&lt;br /&gt;
&lt;br /&gt;
    for (i = 1; i &amp;lt;= rays; i++){&lt;br /&gt;
         //Drawing occurs here&lt;br /&gt;
    }&lt;br /&gt;
    p.Dispose();&lt;br /&gt;
}&lt;br /&gt;
   private void Form1_Resize(object sender, System.EventArgs e)&lt;br /&gt;
   {&lt;br /&gt;
       Invalidate();&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Any help in saving this image would be appreciate.&lt;br /&gt;</description>
      <pubDate>Sat, 19 Apr 2008 13:22:43 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>DirectX Headers?</title>
      <link>http://www.programmersheaven.com/mb/graphics/370196/370196/directx-headers/</link>
      <description>Hello.&lt;br /&gt;
&lt;br /&gt;
Does anybody know where can i find Borland C++ 5.5 Comptabile headers??&lt;br /&gt;
or what can i do to make them compatible?&lt;br /&gt;</description>
      <pubDate>Sun, 09 Mar 2008 20:32:05 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Windows Media Player - Magic GDI ?</title>
      <link>http://www.programmersheaven.com/mb/graphics/369765/369765/windows-media-player---magic-gdi-/</link>
      <description>Could someone explain me this ?&lt;br /&gt;
&lt;a href="http://www.youtube.com/watch?v=fvuoUoDAY_k"&gt;http://www.youtube.com/watch?v=fvuoUoDAY_k&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Those are magic pixels on a magic GDI(+),&lt;br /&gt;
which I have never told about ?&lt;br /&gt;
&lt;br /&gt;
It works with wmp, nero player, windvd,&lt;br /&gt;
photoshop, word, paint, etc.&lt;br /&gt;
What else could I do with that magic GDI ?&lt;br /&gt;
&lt;br /&gt;
Could be a reliable swapping frame buffer to make,&lt;br /&gt;
something like ... a sub-titler application or&lt;br /&gt;
something ?&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: Blue;"&gt;Hackman&lt;/span&gt;</description>
      <pubDate>Sat, 23 Feb 2008 03:22:56 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Video Memory</title>
      <link>http://www.programmersheaven.com/mb/graphics/369761/369761/video-memory/</link>
      <description>Is there a way of obtainning a pointer to the video memory, using OpenGl, DirectX or something like that??&lt;br /&gt;</description>
      <pubDate>Fri, 22 Feb 2008 23:28:50 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>OpenGl and Visual Basic</title>
      <link>http://www.programmersheaven.com/mb/graphics/369638/369638/opengl-and-visual-basic/</link>
      <description>I'm using OpenGL with visual basic and i'm trying to do something that i don't know if it is possible to do.&lt;br /&gt;
I need to draw points on a picturebox with an image.&lt;br /&gt;
The problem is that i'm not able to draw anything on top of an existing image, because OpenGL Clears everything on the picturebox&lt;br /&gt;
I've allready tried to play with&lt;br /&gt;
glClear&lt;br /&gt;
and&lt;br /&gt;
glClearColor&lt;br /&gt;
but nothing useful happened&lt;br /&gt;
Can you help?&lt;br /&gt;
&lt;br /&gt;
My thanks in advanced</description>
      <pubDate>Wed, 20 Feb 2008 07:59:25 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Genus graphic tools</title>
      <link>http://www.programmersheaven.com/mb/graphics/369606/369606/genus-graphic-tools/</link>
      <description>I have prototype video game from 2000 which used genus for sound and graphics but do not have software tools to edit.  Anyone know where I can access them?&lt;br /&gt;</description>
      <pubDate>Tue, 19 Feb 2008 14:01:42 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Bilinear interpolation?</title>
      <link>http://www.programmersheaven.com/mb/graphics/368796/368796/bilinear-interpolation/</link>
      <description>Hi folks!&lt;br /&gt;
&lt;br /&gt;
I wanted to use bilinear interpolation (just a simple, not an optimized version) to zoom an image, but I don't know exactly how it works. &lt;br /&gt;
&lt;br /&gt;
What I know is that one loop runs over the new, enlarged image and in this image every cell imgOut[j][k] gets a new value, which is calculated from the surrounding 4 or 8 pixels of the input image.&lt;br /&gt;
My central question is: Do I have to resample this input image like the output image before I start calculating the interpolated values?&lt;br /&gt;
&lt;br /&gt;
Thanks in advance.&lt;br /&gt;</description>
      <pubDate>Sun, 20 Jan 2008 17:29:42 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>RLE in HDR or PIC image files</title>
      <link>http://www.programmersheaven.com/mb/graphics/368426/368426/rle-in-hdr-or-pic-image-files/</link>
      <description>I have been trying to make some software to generate high dynamic range image files(*.hdr) in the format specified by Radiance.  The specs I looked at suggest the RLE for HDR is basically the same as for PIC.&lt;br /&gt;
&lt;br /&gt;
It is described briefly here:&lt;br /&gt;
&lt;a href="http://local.wasp.uwa.edu.au/~pbourke/dataformats/pic/"&gt;http://local.wasp.uwa.edu.au/~pbourke/dataformats/pic/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
I have an uncompressed format that seems fine but I'm not sure how to do the Run length encoding.  Uncompressed pixel data is done by using a 4-tuple to represent each pixel.  red, green, blue, and an exponent byte.&lt;br /&gt;
&lt;br /&gt;
What I've tried and failed at was a run length encoding where a byte precedes each pixel to indicate how many times the pixel colour repeats itself.  This sometimes loads into PaintShop Pro and PhotoMatix but when it does, it doesn't look right at all.  It shows a 90% black image with a few very bright dots in a grid pattern.&lt;br /&gt;
&lt;br /&gt;
Do you know how the RLE works in HDR? &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <pubDate>Fri, 04 Jan 2008 04:27:05 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
    <item>
      <title>Cube to fish-eye</title>
      <link>http://www.programmersheaven.com/mb/graphics/367373/367373/cube-to-fish-eye/</link>
      <description>i want to write a program which can convert a cubemap to angular fish eye. i just don't know how to render the cubic sides on the sphere. could someone help me please?&lt;br /&gt;
&lt;br /&gt;
P.S: i would be most delightful, if you could provide me with an algorithm or even a pseudo code.&lt;br /&gt;</description>
      <pubDate>Sat, 17 Nov 2007 09:42:24 -0700</pubDate>
      <category>Computer Graphics</category>
    </item>
  </channel>
</rss>