[Mono-devel-list] Implementation of System.Drawing

Alexandre Pigolkine pigolkine at gmx.de
Tue Apr 22 17:33:42 EDT 2003


Hello,

I created a variant of "virtual" primitives for System.Drawing.

Attached are the files for Bitmap class :

Bitmap.cs - common implemetation;
IftBitmap.cs - internal interface for implementations;
Win32Bitmap.cs - implementation of interface using Win32 API.

Implementation can be selected by setting a variable in Bitmap.cs :

internal static IBitmapFactory factory_ = new
System.Drawing.Win32Impl.BitmapFactory();
or
internal static IBitmapFactory factory_ = new
System.Drawing.GTKImpl.BitmapFactory();

GTK implementation is not included, but the code for the GTK factory is
almost identical to Win32Impl.

Is this acceptable approach to virtualize primitives in System.Drawing ?

Alexandre



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Bitmap.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030422/67e594a6/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ItfBitmap.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030422/67e594a6/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Win32Bitmap.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20030422/67e594a6/attachment-0002.pl 


More information about the Mono-devel-list mailing list