dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit ToolkitBrushBase.cs


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Drawing/Toolkit ToolkitBrushBase.cs, 1.2, 1.3
Date: Thu, 20 Nov 2003 04:03:41 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit
In directory subversions:/tmp/cvs-serv7166/System.Drawing/Toolkit

Modified Files:
        ToolkitBrushBase.cs 
Log Message:


Move the standard hatch brush bitmaps into "ToolkitBrushBase" so that they
aren't duplicated between toolkits.


Index: ToolkitBrushBase.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Toolkit/ToolkitBrushBase.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ToolkitBrushBase.cs 16 Nov 2003 20:28:49 -0000      1.2
--- ToolkitBrushBase.cs 20 Nov 2003 04:03:37 -0000      1.3
***************
*** 19,60 ****
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
!  */
! 
  namespace System.Drawing.Toolkit
  {
!       using DotGNU.Images;
! 
!       [NonStandardExtra]
!       public abstract class ToolkitBrushBase : IToolkitBrush
!       {
!               private Color color;
! 
!               public ToolkitBrushBase(Color color)
!                       {
!                               this.color = color;
!                       }
! 
!               public void Dispose()
!                       {
!                               Dispose(true);
!                               GC.SuppressFinalize(this);
!                       }
! 
!               protected abstract void Dispose(bool disposing);
! 
!               ~ToolkitBrushBase()
!                       {
!                               Dispose(false);
!                       }
! 
!               public abstract void Select(IToolkitGraphics graphics);
! 
!               public Color Color
!                       {
!                               get
!                               {
!                                       return color;
!                               }
!                       }
!       }
! }
\ No newline at end of file
--- 19,395 ----
   * along with this program; if not, write to the Free Software
   * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
!  */
! 
  namespace System.Drawing.Toolkit
  {
! 
! using System.Drawing.Drawing2D;
! 
! [NonStandardExtra]
! public abstract class ToolkitBrushBase : IToolkitBrush
! {
!       private Color color;
! 
!       public ToolkitBrushBase(Color color)
!               {
!                       this.color = color;
!               }
! 
!       public void Dispose()
!               {
!                       Dispose(true);
!                       GC.SuppressFinalize(this);
!               }
! 
!       protected abstract void Dispose(bool disposing);
! 
!       ~ToolkitBrushBase()
!               {
!                       Dispose(false);
!               }
! 
!       public abstract void Select(IToolkitGraphics graphics);
! 
!       public Color Color
!               {
!                       get
!                       {
!                               return color;
!                       }
!               }
! 
!       // Get the bitmap bits corresponding to a particular hatch style.
!       protected static byte[] GetBits(HatchStyle style)
!                       {
!                               // Get the raw bits for the hatch bitmap.
!                               byte[] bits;
!                               switch(style)
!                               {
!                                       case HatchStyle.BackwardDiagonal:
!                                               bits = BackwardDiagonal_bits; 
break;
!                                       case HatchStyle.DarkDownwardDiagonal:
!                                               bits = 
DarkDownwardDiagonal_bits; break;
!                                       case HatchStyle.DarkHorizontal:
!                                               bits = DarkHorizontal_bits; 
break;
!                                       case HatchStyle.DarkUpwardDiagonal:
!                                               bits = DarkUpwardDiagonal_bits; 
break;
!                                       case HatchStyle.DarkVertical:
!                                               bits = DarkVertical_bits; break;
!                                       case HatchStyle.DashedDownwardDiagonal:
!                                               bits = 
DashedDownwardDiagonal_bits; break;
!                                       case HatchStyle.DashedHorizontal:
!                                               bits = DashedHorizontal_bits; 
break;
!                                       case HatchStyle.DashedUpwardDiagonal:
!                                               bits = 
DashedUpwardDiagonal_bits; break;
!                                       case HatchStyle.DashedVertical:
!                                               bits = DashedVertical_bits; 
break;
!                                       case HatchStyle.DiagonalBrick:
!                                               bits = DiagonalBrick_bits; 
break;
!                                       case HatchStyle.DiagonalCross:
!                                               bits = DiagonalCross_bits; 
break;
!                                       case HatchStyle.Divot:
!                                               bits = Divot_bits; break;
!                                       case HatchStyle.DottedDiamond:
!                                               bits = DottedDiamond_bits; 
break;
!                                       case HatchStyle.DottedGrid:
!                                               bits = DottedGrid_bits; break;
!                                       case HatchStyle.ForwardDiagonal:
!                                               bits = ForwardDiagonal_bits; 
break;
!                                       case HatchStyle.Horizontal:
!                                               bits = Horizontal_bits; break;
!                                       case HatchStyle.HorizontalBrick:
!                                               bits = HorizontalBrick_bits; 
break;
!                                       case HatchStyle.LargeCheckerBoard:
!                                               bits = LargeCheckerBoard_bits; 
break;
!                                       case HatchStyle.LargeConfetti:
!                                               bits = LargeConfetti_bits; 
break;
!                                       case HatchStyle.LargeGrid:
!                                               bits = LargeGrid_bits; break;
!                                       case HatchStyle.LightDownwardDiagonal:
!                                               bits = 
LightDownwardDiagonal_bits; break;
!                                       case HatchStyle.LightHorizontal:
!                                               bits = LightHorizontal_bits; 
break;
!                                       case HatchStyle.LightUpwardDiagonal:
!                                               bits = 
LightUpwardDiagonal_bits; break;
!                                       case HatchStyle.LightVertical:
!                                               bits = LightVertical_bits; 
break;
!                                       case HatchStyle.NarrowHorizontal:
!                                               bits = NarrowHorizontal_bits; 
break;
!                                       case HatchStyle.NarrowVertical:
!                                               bits = NarrowVertical_bits; 
break;
!                                       case HatchStyle.OutlinedDiamond:
!                                               bits = OutlinedDiamond_bits; 
break;
!                                       case HatchStyle.Percent05:
!                                               bits = Percent05_bits; break;
!                                       case HatchStyle.Percent10:
!                                               bits = Percent10_bits; break;
!                                       case HatchStyle.Percent20:
!                                               bits = Percent20_bits; break;
!                                       case HatchStyle.Percent25:
!                                               bits = Percent25_bits; break;
!                                       case HatchStyle.Percent30:
!                                               bits = Percent30_bits; break;
!                                       case HatchStyle.Percent40:
!                                               bits = Percent40_bits; break;
!                                       case HatchStyle.Percent50:
!                                               bits = Percent50_bits; break;
!                                       case HatchStyle.Percent60:
!                                               bits = Percent60_bits; break;
!                                       case HatchStyle.Percent70:
!                                               bits = Percent70_bits; break;
!                                       case HatchStyle.Percent75:
!                                               bits = Percent75_bits; break;
!                                       case HatchStyle.Percent80:
!                                               bits = Percent80_bits; break;
!                                       case HatchStyle.Percent90:
!                                               bits = Percent90_bits; break;
!                                       case HatchStyle.Plaid:
!                                               bits = Plaid_bits; break;
!                                       case HatchStyle.Shingle:
!                                               bits = Shingle_bits; break;
!                                       case HatchStyle.SmallCheckerBoard:
!                                               bits = SmallCheckerBoard_bits; 
break;
!                                       case HatchStyle.SmallConfetti:
!                                               bits = SmallConfetti_bits; 
break;
!                                       case HatchStyle.SmallGrid:
!                                               bits = SmallGrid_bits; break;
!                                       case HatchStyle.SolidDiamond:
!                                               bits = SolidDiamond_bits; break;
!                                       case HatchStyle.Sphere:
!                                               bits = Sphere_bits; break;
!                                       case HatchStyle.Trellis:
!                                               bits = Trellis_bits; break;
!                                       case HatchStyle.Vertical:
!                                               bits = Vertical_bits; break;
!                                       case HatchStyle.Wave:
!                                               bits = Wave_bits; break;
!                                       case HatchStyle.Weave:
!                                               bits = Weave_bits; break;
!                                       case HatchStyle.WideDownwardDiagonal:
!                                               bits = 
WideDownwardDiagonal_bits; break;
!                                       case HatchStyle.WideUpwardDiagonal:
!                                               bits = WideUpwardDiagonal_bits; 
break;
!                                       case HatchStyle.ZigZag:
!                                               bits = ZigZag_bits; break;
!                                       default: return null;
!                               }
!                               return bits;
!                       }
! 
!       // Bitmap data for all of the hatch styles.
!       private static readonly byte[] BackwardDiagonal_bits = {
!               0x80,0x80,0x40,0x40,0x20,0x20,0x10,0x10,0x08,0x08,0x04,0x04,
!               0x02,0x02,0x01,0x01,0x80,0x80,0x40,0x40,0x20,0x20,0x10,0x10,
!               0x08,0x08,0x04,0x04,0x02,0x02,0x01,0x01};
!       private static readonly byte[] DarkDownwardDiagonal_bits = {
!               0x33,0x33,0x66,0x66,0xcc,0xcc,0x99,0x99,0x33,0x33,0x66,0x66,
!               0xcc,0xcc,0x99,0x99,0x33,0x33,0x66,0x66,0xcc,0xcc,0x99,0x99,
!               0x33,0x33,0x66,0x66,0xcc,0xcc,0x99,0x99};
!       private static readonly byte[] DarkHorizontal_bits = {
!               0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,
!               0x00,0x00,0x00,0x00,0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00,
!               0xff,0xff,0xff,0xff,0x00,0x00,0x00,0x00};
!       private static readonly byte[] DarkUpwardDiagonal_bits = {
!               0xcc,0xcc,0x66,0x66,0x33,0x33,0x99,0x99,0xcc,0xcc,0x66,0x66,
!               0x33,0x33,0x99,0x99,0xcc,0xcc,0x66,0x66,0x33,0x33,0x99,0x99,
!               0xcc,0xcc,0x66,0x66,0x33,0x33,0x99,0x99};
!       private static readonly byte[] DarkVertical_bits = {
!               0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
!               0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,0x33,
!               0x33,0x33,0x33,0x33,0x33,0x33, 0x33,0x33};
!       private static readonly byte[] DashedDownwardDiagonal_bits = {
!               0x00,0x00,0x00,0x00,0x11,0x11,0x22,0x22,0x44,0x44,0x88,0x88,
!               0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x11,0x22,0x22,
!               0x44,0x44,0x88,0x88,0x00,0x00,0x00,0x00};
!       private static readonly byte[] DashedHorizontal_bits = {
!               0x0f,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xf0,0x00,0x00,
!               0x00,0x00,0x00,0x00,0x0f,0x0f,0x00,0x00,0x00,0x00,0x00,0x00,
!               0xf0,0xf0,0x00,0x00,0x00,0x00,0x00,0x00};
!       private static readonly byte[] DashedUpwardDiagonal_bits = {
!               0x00,0x00,0x00,0x00,0x88,0x88,0x44,0x44,0x22,0x22,0x11,0x11,
!               0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x88,0x88,0x44,0x44,
!               0x22,0x22,0x11,0x11,0x00,0x00,0x00,0x00};
!       private static readonly byte[] DashedVertical_bits = {
!               0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x10,0x10,0x10,0x10,
!               0x10,0x10,0x10,0x10,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
!               0x10,0x10,0x10,0x10,0x10,0x10,0x10,0x10};
!       private static readonly byte[] DiagonalBrick_bits = {
!               0x80,0x80,0x40,0x40,0x20,0x20,0x10,0x10,0x18,0x18,0x24,0x24,
!               0x42,0x42,0x81,0x81,0x80,0x80,0x40,0x40,0x20,0x20,0x10,0x10,
!               0x18,0x18,0x24,0x24,0x42,0x42,0x81,0x81};
!       private static readonly byte[] DiagonalCross_bits = {
!               0x81,0x81,0x42,0x42,0x24,0x24,0x18,0x18,0x18,0x18,0x24,0x24,
!               0x42,0x42,0x81,0x81,0x81,0x81,0x42,0x42,0x24,0x24,0x18,0x18,
!               0x18,0x18,0x24,0x24,0x42,0x42,0x81,0x81};
!       private static readonly byte[] Divot_bits = {
!               0x00,0x00,0x08,0x08,0x10,0x10,0x08,0x08,0x00,0x00,0x01,0x01,
!               0x80,0x80,0x01,0x01,0x00,0x00,0x08,0x08,0x10,0x10,0x08,0x08,
!               0x00,0x00,0x01,0x01,0x80,0x80,0x01,0x01};
!       private static readonly byte[] DottedDiamond_bits = {
!               0x01,0x01,0x00,0x00,0x44,0x44,0x00,0x00,0x10,0x10,0x00,0x00,
!               0x44,0x44,0x00,0x00,0x01,0x01,0x00,0x00,0x44,0x44,0x00,0x00,
!               0x10,0x10,0x00,0x00,0x44,0x44,0x00,0x00};
!       private static readonly byte[] DottedGrid_bits = {
!               0x55,0x55,0x00,0x00,0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x00,
!               0x01,0x01,0x00,0x00,0x55,0x55,0x00,0x00,0x01,0x01,0x00,0x00,
!               0x01,0x01,0x00,0x00,0x01,0x01,0x00,0x00};
!       private static readonly byte[] ForwardDiagonal_bits = {
!               0x01,0x01,0x02,0x02,0x04,0x04,0x08,0x08,0x10,0x10,0x20,0x20,
!               0x40,0x40,0x80,0x80,0x01,0x01,0x02,0x02,0x04,0x04,0x08,0x08,
!               0x10,0x10,0x20,0x20,0x40,0x40,0x80,0x80};
!       private static readonly byte[] Horizontal_bits = {
!               0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
!               0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
!               0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
!       private static readonly byte[] HorizontalBrick_bits = {
!               0xff,0xff,0x01,0x01,0x01,0x01,0x01,0x01,0xff,0xff,0x10,0x10,
!               0x10,0x10,0x10,0x10,0xff,0xff,0x01,0x01,0x01,0x01,0x01,0x01,
!               0xff,0xff,0x10,0x10,0x10,0x10,0x10,0x10};
!       private static readonly byte[] LargeCheckerBoard_bits = {
!               0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0xf0,0xf0,0xf0,0xf0,
!               0xf0,0xf0,0xf0,0xf0,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
!               0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0};
!       private static readonly byte[] LargeConfetti_bits = {
!               0x8d,0x8d,0x0c,0x0c,0xc0,0xc0,0xd8,0xd8,0x1b,0x1b,0x03,0x03,
!               0x30,0x30,0xb1,0xb1,0x8d,0x8d,0x0c,0x0c,0xc0,0xc0,0xd8,0xd8,
!               0x1b,0x1b,0x03,0x03,0x30,0x30,0xb1,0xb1};
!       private static readonly byte[] LargeGrid_bits = {
!               0xff,0xff,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
!               0x01,0x01,0x01,0x01,0xff,0xff,0x01,0x01,0x01,0x01,0x01,0x01,
!               0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01};
!       private static readonly byte[] LightDownwardDiagonal_bits = {
!               0x11,0x11,0x22,0x22,0x44,0x44,0x88,0x88,0x11,0x11,0x22,0x22,
!               0x44,0x44,0x88,0x88,0x11,0x11,0x22,0x22,0x44,0x44,0x88,0x88,
!               0x11,0x11,0x22,0x22,0x44,0x44,0x88,0x88};
!       private static readonly byte[] LightHorizontal_bits = {
!               0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,
!               0x00,0x00,0x00,0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00,
!               0xff,0xff,0x00,0x00,0x00,0x00,0x00,0x00};
!       private static readonly byte[] LightUpwardDiagonal_bits = {
!               0x88,0x88,0x44,0x44,0x22,0x22,0x11,0x11,0x88,0x88,0x44,0x44,
!               0x22,0x22,0x11,0x11,0x88,0x88,0x44,0x44,0x22,0x22,0x11,0x11,
!               0x88,0x88,0x44,0x44,0x22,0x22,0x11,0x11};
!       private static readonly byte[] LightVertical_bits = {
!               0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
!               0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,
!               0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11};
!       private static readonly byte[] NarrowHorizontal_bits = {
!               0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,
!               0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00,
!               0xff,0xff,0x00,0x00,0xff,0xff,0x00,0x00};
!       private static readonly byte[] NarrowVertical_bits = {
!               0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,
!               0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,
!               0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa};
!       private static readonly byte[] OutlinedDiamond_bits = {
!               0x41,0x41,0x22,0x22,0x14,0x14,0x08,0x08,0x14,0x14,0x22,0x22,
!               0x41,0x41,0x80,0x80,0x41,0x41,0x22,0x22,0x14,0x14,0x08,0x08,
!               0x14,0x14,0x22,0x22,0x41,0x41,0x80,0x80};
!       private static readonly byte[] Percent05_bits = {
!               0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x10,0x00,0x00,
!               0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x00,0x00,0x00,0x00,
!               0x10,0x10,0x00,0x00,0x00,0x00,0x00,0x00};
!       private static readonly byte[] Percent10_bits = {
!               0x01,0x01,0x00,0x00,0x10,0x10,0x00,0x00,0x01,0x01,0x00,0x00,
!               0x10,0x10,0x00,0x00,0x01,0x01,0x00,0x00,0x10,0x10,0x00,0x00,
!               0x01,0x01,0x00,0x00,0x10,0x10,0x00,0x00};
!       private static readonly byte[] Percent20_bits = {
!               0x11,0x11,0x00,0x00,0x44,0x44,0x00,0x00,0x11,0x11,0x00,0x00,
!               0x44,0x44,0x00,0x00,0x11,0x11,0x00,0x00,0x44,0x44,0x00,0x00,
!               0x11,0x11,0x00,0x00,0x44,0x44,0x00,0x00};
!       private static readonly byte[] Percent25_bits = {
!               0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44,
!               0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44,
!               0x11,0x11,0x44,0x44,0x11,0x11,0x44,0x44};
!       private static readonly byte[] Percent30_bits = {
!               0x55,0x55,0x22,0x22,0x55,0x55,0x88,0x88,0x55,0x55,0x22,0x22,
!               0x55,0x55,0x88,0x88,0x55,0x55,0x22,0x22,0x55,0x55,0x88,0x88,
!               0x55,0x55,0x22,0x22,0x55,0x55,0x88,0x88};
!       private static readonly byte[] Percent40_bits = {
!               0x55,0x55,0xaa,0xaa,0x55,0x55,0x8a,0x8a,0x55,0x55,0xaa,0xaa,
!               0x55,0x55,0xa8,0xa8,0x55,0x55,0xaa,0xaa,0x55,0x55,0x8a,0x8a,
!               0x55,0x55,0xaa,0xaa,0x55,0x55,0xa8,0xa8};
!       private static readonly byte[] Percent50_bits = {
!               0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa,
!               0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa,
!               0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa};
!       private static readonly byte[] Percent60_bits = {
!               0x77,0x77,0xaa,0xaa,0xdd,0xdd,0xaa,0xaa,0x77,0x77,0xaa,0xaa,
!               0xdd,0xdd,0xaa,0xaa,0x77,0x77,0xaa,0xaa,0xdd,0xdd,0xaa,0xaa,
!               0x77,0x77,0xaa,0xaa,0xdd,0xdd,0xaa,0xaa};
!       private static readonly byte[] Percent70_bits = {
!               0xee,0xee,0xbb,0xbb,0xee,0xee,0xbb,0xbb,0xee,0xee,0xbb,0xbb,
!               0xee,0xee,0xbb,0xbb,0xee,0xee,0xbb,0xbb,0xee,0xee,0xbb,0xbb,
!               0xee,0xee,0xbb,0xbb,0xee,0xee,0xbb,0xbb};
!       private static readonly byte[] Percent75_bits = {
!               0xee,0xee,0xff,0xff,0xbb,0xbb,0xff,0xff,0xee,0xee,0xff,0xff,
!               0xbb,0xbb,0xff,0xff,0xee,0xee,0xff,0xff,0xbb,0xbb,0xff,0xff,
!               0xee,0xee,0xff,0xff,0xbb,0xbb,0xff,0xff};
!       private static readonly byte[] Percent80_bits = {
!               0xf7,0xf7,0xff,0xff,0x7f,0x7f,0xff,0xff,0xf7,0xf7,0xff,0xff,
!               0x7f,0x7f,0xff,0xff,0xf7,0xf7,0xff,0xff,0x7f,0x7f,0xff,0xff,
!               0xf7,0xf7,0xff,0xff,0x7f,0x7f,0xff,0xff};
!       private static readonly byte[] Percent90_bits = {
!               0xff,0xff,0xff,0xff,0xff,0xff,0xef,0xef,0xff,0xff,0xff,0xff,
!               0xff,0xff,0xfe,0xfe,0xff,0xff,0xff,0xff,0xff,0xff,0xef,0xef,
!               0xff,0xff,0xff,0xff,0xff,0xff,0xfe,0xfe};
!       private static readonly byte[] Plaid_bits = {
!               0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa,0x0f,0x0f,0x0f,0x0f,
!               0x0f,0x0f,0x0f,0x0f,0x55,0x55,0xaa,0xaa,0x55,0x55,0xaa,0xaa,
!               0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f};
!       private static readonly byte[] Shingle_bits = {
!               0xc0,0xc0,0x21,0x21,0x12,0x12,0x0c,0x0c,0x30,0x30,0x40,0x40,
!               0x80,0x80,0x80,0x80,0xc0,0xc0,0x21,0x21,0x12,0x12,0x0c,0x0c,
!               0x30,0x30,0x40,0x40,0x80,0x80,0x80,0x80};
!       private static readonly byte[] SmallCheckerBoard_bits = {
!               0x99,0x99,0x66,0x66,0x66,0x66,0x99,0x99,0x99,0x99,0x66,0x66,
!               0x66,0x66,0x99,0x99,0x99,0x99,0x66,0x66,0x66,0x66,0x99,0x99,
!               0x99,0x99,0x66,0x66,0x66,0x66,0x99,0x99};
!       private static readonly byte[] SmallConfetti_bits = {
!               0x01,0x01,0x10,0x10,0x02,0x02,0x40,0x40,0x08,0x08,0x80,0x80,
!               0x04,0x04,0x20,0x20,0x01,0x01,0x10,0x10,0x02,0x02,0x40,0x40,
!               0x08,0x08,0x80,0x80,0x04,0x04,0x20,0x20};
!       private static readonly byte[] SmallGrid_bits = {
!               0xff,0xff,0x11,0x11,0x11,0x11,0x11,0x11,0xff,0xff,0x11,0x11,
!               0x11,0x11,0x11,0x11,0xff,0xff,0x11,0x11,0x11,0x11,0x11,0x11,
!               0xff,0xff,0x11,0x11,0x11,0x11,0x11,0x11};
!       private static readonly byte[] SolidDiamond_bits = {
!               0x08,0x08,0x1c,0x1c,0x3e,0x3e,0x7f,0x7f,0x3e,0x3e,0x1c,0x1c,
!               0x08,0x08,0x00,0x00,0x08,0x08,0x1c,0x1c,0x3e,0x3e,0x7f,0x7f,
!               0x3e,0x3e,0x1c,0x1c,0x08,0x08,0x00,0x00};
!       private static readonly byte[] Sphere_bits = {
!               0xee,0xee,0x91,0x91,0xf1,0xf1,0xf1,0xf1,0xee,0xee,0x19,0x19,
!               0x1f,0x1f,0x1f,0x1f,0xee,0xee,0x91,0x91,0xf1,0xf1,0xf1,0xf1,
!               0xee,0xee,0x19,0x19,0x1f,0x1f,0x1f,0x1f};
!       private static readonly byte[] Trellis_bits = {
!               0xff,0xff,0x66,0x66,0xff,0xff,0x99,0x99,0xff,0xff,0x66,0x66,
!               0xff,0xff,0x99,0x99,0xff,0xff,0x66,0x66,0xff,0xff,0x99,0x99,
!               0xff,0xff,0x66,0x66,0xff,0xff,0x99,0x99};
!       private static readonly byte[] Vertical_bits = {
!               0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
!               0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,
!               0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01};
!       private static readonly byte[] Wave_bits = {
!               0x00,0x00,0x18,0x18,0xa4,0xa4,0x03,0x03,0x00,0x00,0x18,0x18,
!               0xa4,0xa4,0x03,0x03,0x00,0x00,0x18,0x18,0xa4,0xa4,0x03,0x03,
!               0x00,0x00,0x18,0x18,0xa4,0xa4,0x03,0x03};
!       private static readonly byte[] Weave_bits = {
!               0x11,0x11,0x2a,0x2a,0x44,0x44,0xa2,0xa2,0x11,0x11,0x28,0x28,
!               0x44,0x44,0x8a,0x8a,0x11,0x11,0x2a,0x2a,0x44,0x44,0xa2,0xa2,
!               0x11,0x11,0x28,0x28,0x44,0x44,0x8a,0x8a};
!       private static readonly byte[] WideDownwardDiagonal_bits = {
!               0x83,0x83,0x07,0x07,0x0e,0x0e,0x1c,0x1c,0x38,0x38,0x70,0x70,
!               0xe0,0xe0,0xc1,0xc1,0x83,0x83,0x07,0x07,0x0e,0x0e,0x1c,0x1c,
!               0x38,0x38,0x70,0x70,0xe0,0xe0,0xc1,0xc1};
!       private static readonly byte[] WideUpwardDiagonal_bits = {
!               0xc1,0xc1,0xe0,0xe0,0x70,0x70,0x38,0x38,0x1c,0x1c,0x0e,0x0e,
!               0x07,0x07,0x83,0x83,0xc1,0xc1,0xe0,0xe0,0x70,0x70,0x38,0x38,
!               0x1c,0x1c,0x0e,0x0e,0x07,0x07,0x83,0x83};
!       private static readonly byte[] ZigZag_bits = {
!               0x81,0x81,0x42,0x42,0x24,0x24,0x18,0x18,0x81,0x81,0x42,0x42,
!               0x24,0x24,0x18,0x18,0x81,0x81,0x42,0x42,0x24,0x24,0x18,0x18,
!               0x81,0x81,0x42,0x42,0x24,0x24,0x18,0x18};
! 
! }; // class ToolkitBrushBase
! 
! }; // namespace System.Drawing.Toolkit





reply via email to

[Prev in Thread] Current Thread [Next in Thread]