[Gtk-sharp-list] System.Drawing.Graphics.DrawCurve Problem

Jonathan Gilbert 2a5gjx302 at sneakemail.com
Tue Dec 6 01:12:11 EST 2005


At 02:38 AM 03/12/2005 -0500, Duncan Mak wrote:
>On Sat, 2005-12-03 at 01:03 +0000, Ivan N. Zlatev wrote:
>> It seems to connect each Point with (0,0) plus what I am expecting 
>> connects them from the first to the last? o_0 What is the problem - is 
>> this a bug or am I bugged ? :) mono 1.10.0 on SuSE Linux
>
>I didn't try it with Gtk#, but in a simple program that just uses
>System.Drawing and saves the bitmap to a file, the output looks correct.
>
>If you still see a problem, please file a bug and assign it to me.
>
>Duncan.

I have three comments:

1. You accidentally saved it as a BMP instead of a PNG, and only gave it
the PNG extension. As a result, the file was 300 kilobytes instead of 3
kilobytes.

2. This is a rather large attachment for a public list. Suppose 500 people
are subscribed; you just generated around 230 megabytes of traffic for the
mail server!

3. There does seem to be a problem in the curve, though not the
aforementioned one. There seems to be a notch between the control point
(70,213) and the next one (81,206). Instead of a straight diagonal line,
two orthogonal lines are joined. Surely this is an error?

The relevant pixels:

----------##
---------###
---------###
-###########
############
###########-

Jonathan Gilbert



More information about the Gtk-sharp-list mailing list