An array containing the pixels as int RGBA value.
The width of one scanline in the pixels array.
The height of the bitmap.
The x0.
The y0.
The x1.
The y1.
Alpha color component
Premultiplied red color component
Premultiplied green color component
Premultiplied blue color component
DrawWuLine Method
Draws an anti-aliased, alpha blended, colored line by connecting two points using Wu's antialiasing algorithm Uses the pixels array and the width directly for best performance.
Syntax
public static void DrawWuLine( 
   BitmapContext context,
   int pixelWidth,
   int pixelHeight,
   short X0,
   short Y0,
   short X1,
   short Y1,
   int sa,
   int sr,
   int sg,
   int sb
)

Parameters

context
An array containing the pixels as int RGBA value.
pixelWidth
The width of one scanline in the pixels array.
pixelHeight
The height of the bitmap.
X0
The x0.
Y0
The y0.
X1
The x1.
Y1
The y1.
sa
Alpha color component
sr
Premultiplied red color component
sg
Premultiplied green color component
sb
Premultiplied blue color component
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also