[Mono-winforms-list] Re: Ongoing effort to upgrade Cairo to 0.5
Hisham Mardam Bey
hisham.mardambey at gmail.com
Thu Aug 4 16:00:36 EDT 2005
On 8/4/05, Miguel de Icaza <miguel at ximian.com> wrote:
> Do you have a sample C# test case to debug this against?
>
If you run anything in System.Drawing you can get to it. I'm testing
with C code for now with something like:
{
GpPen *pen;
GpBrush *brush;
int a = 255;
int r = 255;
int g = 0;
int b = 0;
GdipCreatePen1 (a << 24 | r << 16 | g << 8 | b,
10, UnitPixel, &pen);
GdipDrawRectangle (gp, pen, 0, 0, 0, 0);
return;
}
Just add this after
gp = gdip_graphics_new (surface);
in tests/testgdi.c
> Does Winforms start up with it?
Not yet.
--
Hisham Mardam Bey
MSc (Computer Science)
http://hisham.cc/
+9613609386
Codito Ergo Sum (I Code Therefore I Am)
More information about the Mono-winforms-list
mailing list