1 <?xml version="1.0"?>
\r
4 <name>WriteableBitmapEx</name>
\r
7 <member name="T:System.Windows.Media.Imaging.WriteableBitmapExtensions">
\r
9 Collection of draw extension methods for the Silverlight WriteableBitmap class.
\r
12 Collection of draw spline extension methods for the Silverlight WriteableBitmap class.
\r
15 Collection of filter / convolution extension methods for the Silverlight WriteableBitmap class.
\r
18 Collection of blit (copy) extension methods for the Silverlight WriteableBitmap class.
\r
21 Collection of draw extension methods for the Silverlight WriteableBitmap class.
\r
24 Collection of transformation extension methods for the Silverlight WriteableBitmap class.
\r
27 Collection of draw extension methods for the Silverlight WriteableBitmap class.
\r
30 Collection of interchange extension methods for the Silverlight WriteableBitmap class.
\r
33 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Clear(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Media.Color)">
\r
35 Fills the whole WriteableBitmap with a color.
\r
37 <param name="bmp">The WriteableBitmap.</param>
\r
38 <param name="color">The color used for filling.</param>
\r
40 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Clear(System.Windows.Media.Imaging.WriteableBitmap)">
\r
42 Fills the whole WriteableBitmap with an empty color (0).
\r
44 <param name="bmp">The WriteableBitmap.</param>
\r
46 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Clone(System.Windows.Media.Imaging.WriteableBitmap)">
\r
48 Clones the specified WriteableBitmap.
\r
50 <param name="bmp">The WriteableBitmap.</param>
\r
51 <returns>A copy of the WriteableBitmap.</returns>
\r
53 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ForEach(System.Windows.Media.Imaging.WriteableBitmap,System.Func{System.Int32,System.Int32,System.Windows.Media.Color})">
\r
55 Applies the given function to all the pixels of the bitmap in
\r
56 order to set their color.
\r
58 <param name="bmp">The WriteableBitmap.</param>
\r
59 <param name="func">The function to apply. With parameters x, y and a color as a result</param>
\r
61 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ForEach(System.Windows.Media.Imaging.WriteableBitmap,System.Func{System.Int32,System.Int32,System.Windows.Media.Color,System.Windows.Media.Color})">
\r
63 Applies the given function to all the pixels of the bitmap in
\r
64 order to set their color.
\r
66 <param name="bmp">The WriteableBitmap.</param>
\r
67 <param name="func">The function to apply. With parameters x, y, source color and a color as a result</param>
\r
69 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.GetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
71 Gets the color of the pixel at the x, y coordinate as integer.
\r
72 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
74 <param name="bmp">The WriteableBitmap.</param>
\r
75 <param name="x">The x coordinate of the pixel.</param>
\r
76 <param name="y">The y coordinate of the pixel.</param>
\r
77 <returns>The color of the pixel at x, y.</returns>
\r
79 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.GetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
81 Gets the color of the pixel at the x, y coordinate as a Color struct.
\r
82 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
84 <param name="bmp">The WriteableBitmap.</param>
\r
85 <param name="x">The x coordinate of the pixel.</param>
\r
86 <param name="y">The y coordinate of the pixel.</param>
\r
87 <returns>The color of the pixel at x, y as a Color struct.</returns>
\r
89 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.GetBrightness(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
91 Gets the brightness / luminance of the pixel at the x, y coordinate as byte.
\r
93 <param name="bmp">The WriteableBitmap.</param>
\r
94 <param name="x">The x coordinate of the pixel.</param>
\r
95 <param name="y">The y coordinate of the pixel.</param>
\r
96 <returns>The brightness of the pixel at x, y.</returns>
\r
98 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Byte,System.Byte,System.Byte)">
\r
100 Sets the color of the pixel using a precalculated index (faster).
\r
101 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
103 <param name="bmp">The WriteableBitmap.</param>
\r
104 <param name="index">The coordinate index.</param>
\r
105 <param name="r">The red value of the color.</param>
\r
106 <param name="g">The green value of the color.</param>
\r
107 <param name="b">The blue value of the color.</param>
\r
109 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Byte,System.Byte,System.Byte)">
\r
111 Sets the color of the pixel.
\r
112 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
114 <param name="bmp">The WriteableBitmap.</param>
\r
115 <param name="x">The x coordinate (row).</param>
\r
116 <param name="y">The y coordinate (column).</param>
\r
117 <param name="r">The red value of the color.</param>
\r
118 <param name="g">The green value of the color.</param>
\r
119 <param name="b">The blue value of the color.</param>
\r
121 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Byte,System.Byte,System.Byte,System.Byte)">
\r
123 Sets the color of the pixel including the alpha value and using a precalculated index (faster).
\r
124 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
126 <param name="bmp">The WriteableBitmap.</param>
\r
127 <param name="index">The coordinate index.</param>
\r
128 <param name="a">The alpha value of the color.</param>
\r
129 <param name="r">The red value of the color.</param>
\r
130 <param name="g">The green value of the color.</param>
\r
131 <param name="b">The blue value of the color.</param>
\r
133 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Byte,System.Byte,System.Byte,System.Byte)">
\r
135 Sets the color of the pixel including the alpha value.
\r
136 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
138 <param name="bmp">The WriteableBitmap.</param>
\r
139 <param name="x">The x coordinate (row).</param>
\r
140 <param name="y">The y coordinate (column).</param>
\r
141 <param name="a">The alpha value of the color.</param>
\r
142 <param name="r">The red value of the color.</param>
\r
143 <param name="g">The green value of the color.</param>
\r
144 <param name="b">The blue value of the color.</param>
\r
146 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Windows.Media.Color)">
\r
148 Sets the color of the pixel using a precalculated index (faster).
\r
149 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
151 <param name="bmp">The WriteableBitmap.</param>
\r
152 <param name="index">The coordinate index.</param>
\r
153 <param name="color">The color.</param>
\r
155 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
157 Sets the color of the pixel.
\r
158 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
160 <param name="bmp">The WriteableBitmap.</param>
\r
161 <param name="x">The x coordinate (row).</param>
\r
162 <param name="y">The y coordinate (column).</param>
\r
163 <param name="color">The color.</param>
\r
165 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Byte,System.Windows.Media.Color)">
\r
167 Sets the color of the pixel using an extra alpha value and a precalculated index (faster).
\r
168 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
170 <param name="bmp">The WriteableBitmap.</param>
\r
171 <param name="index">The coordinate index.</param>
\r
172 <param name="a">The alpha value of the color.</param>
\r
173 <param name="color">The color.</param>
\r
175 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Byte,System.Windows.Media.Color)">
\r
177 Sets the color of the pixel using an extra alpha value.
\r
178 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
180 <param name="bmp">The WriteableBitmap.</param>
\r
181 <param name="x">The x coordinate (row).</param>
\r
182 <param name="y">The y coordinate (column).</param>
\r
183 <param name="a">The alpha value of the color.</param>
\r
184 <param name="color">The color.</param>
\r
186 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
188 Sets the color of the pixel using a precalculated index (faster).
\r
189 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
191 <param name="bmp">The WriteableBitmap.</param>
\r
192 <param name="index">The coordinate index.</param>
\r
193 <param name="color">The color.</param>
\r
195 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32)">
\r
197 Sets the color of the pixel.
\r
198 For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop.
\r
200 <param name="bmp">The WriteableBitmap.</param>
\r
201 <param name="x">The x coordinate (row).</param>
\r
202 <param name="y">The y coordinate (column).</param>
\r
203 <param name="color">The color.</param>
\r
205 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawBezier(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
207 Draws a cubic Beziér spline defined by start, end and two control points.
\r
209 <param name="bmp">The WriteableBitmap.</param>
\r
210 <param name="x1">The x-coordinate of the start point.</param>
\r
211 <param name="y1">The y-coordinate of the start point.</param>
\r
212 <param name="cx1">The x-coordinate of the 1st control point.</param>
\r
213 <param name="cy1">The y-coordinate of the 1st control point.</param>
\r
214 <param name="cx2">The x-coordinate of the 2nd control point.</param>
\r
215 <param name="cy2">The y-coordinate of the 2nd control point.</param>
\r
216 <param name="x2">The x-coordinate of the end point.</param>
\r
217 <param name="y2">The y-coordinate of the end point.</param>
\r
218 <param name="color">The color.</param>
\r
220 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawBezier(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
222 Draws a cubic Beziér spline defined by start, end and two control points.
\r
224 <param name="bmp">The WriteableBitmap.</param>
\r
225 <param name="x1">The x-coordinate of the start point.</param>
\r
226 <param name="y1">The y-coordinate of the start point.</param>
\r
227 <param name="cx1">The x-coordinate of the 1st control point.</param>
\r
228 <param name="cy1">The y-coordinate of the 1st control point.</param>
\r
229 <param name="cx2">The x-coordinate of the 2nd control point.</param>
\r
230 <param name="cy2">The y-coordinate of the 2nd control point.</param>
\r
231 <param name="x2">The x-coordinate of the end point.</param>
\r
232 <param name="y2">The y-coordinate of the end point.</param>
\r
233 <param name="color">The color.</param>
\r
235 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawBeziers(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Windows.Media.Color)">
\r
237 Draws a series of cubic Beziér splines each defined by start, end and two control points.
\r
238 The ending point of the previous curve is used as starting point for the next.
\r
239 Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point).
\r
241 <param name="bmp">The WriteableBitmap.</param>
\r
242 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, cx1, cy1, cx2, cy2, x2, y2, cx3, cx4 ..., xn, yn).</param>
\r
243 <param name="color">The color for the spline.</param>
\r
245 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawBeziers(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Int32)">
\r
247 Draws a series of cubic Beziér splines each defined by start, end and two control points.
\r
248 The ending point of the previous curve is used as starting point for the next.
\r
249 Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point).
\r
251 <param name="bmp">The WriteableBitmap.</param>
\r
252 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, cx1, cy1, cx2, cy2, x2, y2, cx3, cx4 ..., xn, yn).</param>
\r
253 <param name="color">The color for the spline.</param>
\r
255 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurveSegment(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Single,System.Int32,System.Int32[],System.Int32,System.Int32)">
\r
257 Draws a segment of a Cardinal spline (cubic) defined by four control points.
\r
259 <param name="x1">The x-coordinate of the 1st control point.</param>
\r
260 <param name="y1">The y-coordinate of the 1st control point.</param>
\r
261 <param name="x2">The x-coordinate of the 2nd control point.</param>
\r
262 <param name="y2">The y-coordinate of the 2nd control point.</param>
\r
263 <param name="x3">The x-coordinate of the 3rd control point.</param>
\r
264 <param name="y3">The y-coordinate of the 3rd control point.</param>
\r
265 <param name="x4">The x-coordinate of the 4th control point.</param>
\r
266 <param name="y4">The y-coordinate of the 4th control point.</param>
\r
267 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
268 <param name="color">The color.</param>
\r
269 <param name="pixels">The pixels array.</param>
\r
270 <param name="w">The width of the bitmap.</param>
\r
271 <param name="h">The height of the bitmap.</param>
\r
273 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Windows.Media.Color)">
\r
275 Draws a Cardinal spline (cubic) defined by a point collection.
\r
276 The cardinal spline passes through each point in the collection.
\r
278 <param name="bmp">The WriteableBitmap.</param>
\r
279 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
280 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
281 <param name="color">The color for the spline.</param>
\r
283 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Int32)">
\r
285 Draws a Cardinal spline (cubic) defined by a point collection.
\r
286 The cardinal spline passes through each point in the collection.
\r
288 <param name="bmp">The WriteableBitmap.</param>
\r
289 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
290 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
291 <param name="color">The color for the spline.</param>
\r
293 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurveClosed(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Windows.Media.Color)">
\r
295 Draws a closed Cardinal spline (cubic) defined by a point collection.
\r
296 The cardinal spline passes through each point in the collection.
\r
298 <param name="bmp">The WriteableBitmap.</param>
\r
299 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
300 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
301 <param name="color">The color for the spline.</param>
\r
303 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurveClosed(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Int32)">
\r
305 Draws a closed Cardinal spline (cubic) defined by a point collection.
\r
306 The cardinal spline passes through each point in the collection.
\r
308 <param name="bmp">The WriteableBitmap.</param>
\r
309 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
310 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
311 <param name="color">The color for the spline.</param>
\r
313 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.KernelGaussianBlur5x5">
\r
315 Gaussian blur kernel with the size 5x5
\r
318 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.KernelGaussianBlur3x3">
\r
320 Gaussian blur kernel with the size 3x3
\r
323 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.KernelSharpen3x3">
\r
325 Sharpen kernel with the size 3x3
\r
328 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Convolute(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[0:,0:])">
\r
330 Creates a new filtered WriteableBitmap.
\r
332 <param name="bmp">The WriteableBitmap.</param>
\r
333 <param name="kernel">The kernel used for convolution.</param>
\r
334 <returns>A new WriteableBitmap that is a filtered version of the input.</returns>
\r
336 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Convolute(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[0:,0:],System.Int32,System.Int32)">
\r
338 Creates a new filtered WriteableBitmap.
\r
340 <param name="bmp">The WriteableBitmap.</param>
\r
341 <param name="kernel">The kernel used for convolution.</param>
\r
342 <param name="kernelFactorSum">The factor used for the kernel summing.</param>
\r
343 <param name="kernelOffsetSum">The offset used for the kernel summing.</param>
\r
344 <returns>A new WriteableBitmap that is a filtered version of the input.</returns>
\r
346 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Invert(System.Windows.Media.Imaging.WriteableBitmap)">
\r
348 Creates a new inverted WriteableBitmap and returns it.
\r
350 <param name="bmp">The WriteableBitmap.</param>
\r
351 <returns>The new inverted WriteableBitmap.</returns>
\r
353 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Blit(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect,System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect,System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode)">
\r
355 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
357 <param name="bmp">The destination WriteableBitmap.</param>
\r
358 <param name="destRect">The rectangle that defines the destination region.</param>
\r
359 <param name="source">The source WriteableBitmap.</param>
\r
360 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
361 <param name="BlendMode">The blending mode <see cref="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode"/>.</param>
\r
363 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Blit(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect,System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect)">
\r
365 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
367 <param name="bmp">The destination WriteableBitmap.</param>
\r
368 <param name="destRect">The rectangle that defines the destination region.</param>
\r
369 <param name="source">The source WriteableBitmap.</param>
\r
370 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
372 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Blit(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Point,System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect,System.Windows.Media.Color,System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode)">
\r
374 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
376 <param name="bmp">The destination WriteableBitmap.</param>
\r
377 <param name="destPosition">The destination position in the destination bitmap.</param>
\r
378 <param name="source">The source WriteableBitmap.</param>
\r
379 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
380 <param name="color">If not Colors.White, will tint the source image. A partially transparent color and the image will be drawn partially transparent.</param>
\r
381 <param name="BlendMode">The blending mode <see cref="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode"/>.</param>
\r
383 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Blit(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect,System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect,System.Windows.Media.Color,System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode)">
\r
385 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
387 <param name="bmp">The destination WriteableBitmap.</param>
\r
388 <param name="destRect">The rectangle that defines the destination region.</param>
\r
389 <param name="source">The source WriteableBitmap.</param>
\r
390 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
391 <param name="color">If not Colors.White, will tint the source image. A partially transparent color and the image will be drawn partially transparent. If the BlendMode is ColorKeying, this color will be used as color key to mask all pixels with this value out.</param>
\r
392 <param name="BlendMode">The blending mode <see cref="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode"/>.</param>
\r
394 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineBresenham(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
396 Draws a colored line by connecting two points using the Bresenham algorithm.
\r
398 <param name="bmp">The WriteableBitmap.</param>
\r
399 <param name="x1">The x-coordinate of the start point.</param>
\r
400 <param name="y1">The y-coordinate of the start point.</param>
\r
401 <param name="x2">The x-coordinate of the end point.</param>
\r
402 <param name="y2">The y-coordinate of the end point.</param>
\r
403 <param name="color">The color for the line.</param>
\r
405 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineBresenham(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
407 Draws a colored line by connecting two points using the Bresenham algorithm.
\r
409 <param name="bmp">The WriteableBitmap.</param>
\r
410 <param name="x1">The x-coordinate of the start point.</param>
\r
411 <param name="y1">The y-coordinate of the start point.</param>
\r
412 <param name="x2">The x-coordinate of the end point.</param>
\r
413 <param name="y2">The y-coordinate of the end point.</param>
\r
414 <param name="color">The color for the line.</param>
\r
416 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineDDA(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
418 Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer).
\r
420 <param name="bmp">The WriteableBitmap.</param>
\r
421 <param name="x1">The x-coordinate of the start point.</param>
\r
422 <param name="y1">The y-coordinate of the start point.</param>
\r
423 <param name="x2">The x-coordinate of the end point.</param>
\r
424 <param name="y2">The y-coordinate of the end point.</param>
\r
425 <param name="color">The color for the line.</param>
\r
427 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineDDA(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
429 Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer).
\r
431 <param name="bmp">The WriteableBitmap.</param>
\r
432 <param name="x1">The x-coordinate of the start point.</param>
\r
433 <param name="y1">The y-coordinate of the start point.</param>
\r
434 <param name="x2">The x-coordinate of the end point.</param>
\r
435 <param name="y2">The y-coordinate of the end point.</param>
\r
436 <param name="color">The color for the line.</param>
\r
438 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLine(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
440 Draws a colored line by connecting two points using an optimized DDA.
\r
442 <param name="bmp">The WriteableBitmap.</param>
\r
443 <param name="x1">The x-coordinate of the start point.</param>
\r
444 <param name="y1">The y-coordinate of the start point.</param>
\r
445 <param name="x2">The x-coordinate of the end point.</param>
\r
446 <param name="y2">The y-coordinate of the end point.</param>
\r
447 <param name="color">The color for the line.</param>
\r
449 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLine(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
451 Draws a colored line by connecting two points using an optimized DDA.
\r
453 <param name="bmp">The WriteableBitmap.</param>
\r
454 <param name="x1">The x-coordinate of the start point.</param>
\r
455 <param name="y1">The y-coordinate of the start point.</param>
\r
456 <param name="x2">The x-coordinate of the end point.</param>
\r
457 <param name="y2">The y-coordinate of the end point.</param>
\r
458 <param name="color">The color for the line.</param>
\r
460 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLine(System.Int32[],System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
462 Draws a colored line by connecting two points using an optimized DDA.
\r
463 Uses the pixels array and the width directly for best performance.
\r
465 <param name="pixels">An array containing the pixels as int RGBA value.</param>
\r
466 <param name="pixelWidth">The width of one scanline in the pixels array.</param>
\r
467 <param name="pixelHeight">The height of the bitmap.</param>
\r
468 <param name="x1">The x-coordinate of the start point.</param>
\r
469 <param name="y1">The y-coordinate of the start point.</param>
\r
470 <param name="x2">The x-coordinate of the end point.</param>
\r
471 <param name="y2">The y-coordinate of the end point.</param>
\r
472 <param name="color">The color for the line.</param>
\r
474 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineAa(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
476 Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm
\r
477 From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx
\r
478 <param name="bmp">The WriteableBitmap.</param>
\r
479 <param name="x1">The x-coordinate of the start point.</param>
\r
480 <param name="y1">The y-coordinate of the start point.</param>
\r
481 <param name="x2">The x-coordinate of the end point.</param>
\r
482 <param name="y2">The y-coordinate of the end point.</param>
\r
483 <param name="color">The color for the line.</param>
\r
486 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineAa(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
488 Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm
\r
489 From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx
\r
490 <param name="bmp">The WriteableBitmap.</param>
\r
491 <param name="x1">The x-coordinate of the start point.</param>
\r
492 <param name="y1">The y-coordinate of the start point.</param>
\r
493 <param name="x2">The x-coordinate of the end point.</param>
\r
494 <param name="y2">The y-coordinate of the end point.</param>
\r
495 <param name="color">The color for the line.</param>
\r
498 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawLineAa(System.Int32[],System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
500 Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm
\r
501 From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx
\r
502 <param name="pixels">An array containing the pixels as int RGBA value.</param>
\r
503 <param name="pixelWidth">The width of one scanline in the pixels array.</param>
\r
504 <param name="pixelHeight">The height of the bitmap.</param>
\r
505 <param name="x1">The x-coordinate of the start point.</param>
\r
506 <param name="y1">The y-coordinate of the start point.</param>
\r
507 <param name="x2">The x-coordinate of the end point.</param>
\r
508 <param name="y2">The y-coordinate of the end point.</param>
\r
509 <param name="color">The color for the line.</param>
\r
512 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.AlphaBlendNormalOnPremultiplied(System.Int32[],System.Int32,System.Int32,System.UInt32,System.UInt32)">
\r
514 Blends a specific source color on top of a destination premultiplied color
\r
516 <param name="pixels">Array containing destination color</param>
\r
517 <param name="index">Index of destination pixel</param>
\r
518 <param name="sa">Source alpha (0..255)</param>
\r
519 <param name="srb">Source non-premultiplied red and blue component in the format 0x00rr00bb</param>
\r
520 <param name="sg">Source green component (0..255)</param>
\r
522 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawPolyline(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Windows.Media.Color)">
\r
524 Draws a polyline. Add the first point also at the end of the array if the line should be closed.
\r
526 <param name="bmp">The WriteableBitmap.</param>
\r
527 <param name="points">The points of the polyline in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).</param>
\r
528 <param name="color">The color for the line.</param>
\r
530 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawPolyline(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Int32)">
\r
532 Draws a polyline. Add the first point also at the end of the array if the line should be closed.
\r
534 <param name="bmp">The WriteableBitmap.</param>
\r
535 <param name="points">The points of the polyline in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).</param>
\r
536 <param name="color">The color for the line.</param>
\r
538 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawTriangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
542 <param name="bmp">The WriteableBitmap.</param>
\r
543 <param name="x1">The x-coordinate of the 1st point.</param>
\r
544 <param name="y1">The y-coordinate of the 1st point.</param>
\r
545 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
546 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
547 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
548 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
549 <param name="color">The color.</param>
\r
551 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawTriangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
555 <param name="bmp">The WriteableBitmap.</param>
\r
556 <param name="x1">The x-coordinate of the 1st point.</param>
\r
557 <param name="y1">The y-coordinate of the 1st point.</param>
\r
558 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
559 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
560 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
561 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
562 <param name="color">The color.</param>
\r
564 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawQuad(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
568 <param name="bmp">The WriteableBitmap.</param>
\r
569 <param name="x1">The x-coordinate of the 1st point.</param>
\r
570 <param name="y1">The y-coordinate of the 1st point.</param>
\r
571 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
572 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
573 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
574 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
575 <param name="x4">The x-coordinate of the 4th point.</param>
\r
576 <param name="y4">The y-coordinate of the 4th point.</param>
\r
577 <param name="color">The color.</param>
\r
579 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawQuad(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
583 <param name="bmp">The WriteableBitmap.</param>
\r
584 <param name="x1">The x-coordinate of the 1st point.</param>
\r
585 <param name="y1">The y-coordinate of the 1st point.</param>
\r
586 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
587 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
588 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
589 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
590 <param name="x4">The x-coordinate of the 4th point.</param>
\r
591 <param name="y4">The y-coordinate of the 4th point.</param>
\r
592 <param name="color">The color.</param>
\r
594 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawRectangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
597 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
599 <param name="bmp">The WriteableBitmap.</param>
\r
600 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
601 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
602 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
603 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
604 <param name="color">The color.</param>
\r
606 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawRectangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
609 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
611 <param name="bmp">The WriteableBitmap.</param>
\r
612 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
613 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
614 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
615 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
616 <param name="color">The color.</param>
\r
618 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawEllipse(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
620 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
621 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
623 <param name="bmp">The WriteableBitmap.</param>
\r
624 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
625 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
626 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
627 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
628 <param name="color">The color for the line.</param>
\r
630 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawEllipse(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
632 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
633 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
635 <param name="bmp">The WriteableBitmap.</param>
\r
636 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
637 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
638 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
639 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
640 <param name="color">The color for the line.</param>
\r
642 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawEllipseCentered(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
644 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
645 Uses a different parameter representation than DrawEllipse().
\r
647 <param name="bmp">The WriteableBitmap.</param>
\r
648 <param name="xc">The x-coordinate of the ellipses center.</param>
\r
649 <param name="yc">The y-coordinate of the ellipses center.</param>
\r
650 <param name="xr">The radius of the ellipse in x-direction.</param>
\r
651 <param name="yr">The radius of the ellipse in y-direction.</param>
\r
652 <param name="color">The color for the line.</param>
\r
654 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawEllipseCentered(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
656 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
657 Uses a different parameter representation than DrawEllipse().
\r
659 <param name="bmp">The WriteableBitmap.</param>
\r
660 <param name="xc">The x-coordinate of the ellipses center.</param>
\r
661 <param name="yc">The y-coordinate of the ellipses center.</param>
\r
662 <param name="xr">The radius of the ellipse in x-direction.</param>
\r
663 <param name="yr">The radius of the ellipse in y-direction.</param>
\r
664 <param name="color">The color for the line.</param>
\r
666 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Crop(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
668 Creates a new cropped WriteableBitmap.
\r
670 <param name="bmp">The WriteableBitmap.</param>
\r
671 <param name="x">The x coordinate of the rectangle that defines the crop region.</param>
\r
672 <param name="y">The y coordinate of the rectangle that defines the crop region.</param>
\r
673 <param name="width">The width of the rectangle that defines the crop region.</param>
\r
674 <param name="height">The height of the rectangle that defines the crop region.</param>
\r
675 <returns>A new WriteableBitmap that is a cropped version of the input.</returns>
\r
677 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Crop(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Rect)">
\r
679 Creates a new cropped WriteableBitmap.
\r
681 <param name="bmp">The WriteableBitmap.</param>
\r
682 <param name="region">The rectangle that defines the crop region.</param>
\r
683 <returns>A new WriteableBitmap that is a cropped version of the input.</returns>
\r
685 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Resize(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Windows.Media.Imaging.WriteableBitmapExtensions.Interpolation)">
\r
687 Creates a new resized WriteableBitmap.
\r
689 <param name="bmp">The WriteableBitmap.</param>
\r
690 <param name="width">The new desired width.</param>
\r
691 <param name="height">The new desired height.</param>
\r
692 <param name="interpolation">The interpolation method that should be used.</param>
\r
693 <returns>A new WriteableBitmap that is a resized version of the input.</returns>
\r
695 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Resize(System.Int32[],System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Imaging.WriteableBitmapExtensions.Interpolation)">
\r
697 Creates a new resized bitmap.
\r
699 <param name="pixels">The source pixels.</param>
\r
700 <param name="widthSource">The width of the source pixels.</param>
\r
701 <param name="heightSource">The height of the source pixels.</param>
\r
702 <param name="width">The new desired width.</param>
\r
703 <param name="height">The new desired height.</param>
\r
704 <param name="interpolation">The interpolation method that should be used.</param>
\r
705 <returns>A new bitmap that is a resized version of the input.</returns>
\r
707 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Rotate(System.Windows.Media.Imaging.WriteableBitmap,System.Int32)">
\r
709 Rotates the bitmap in 90° steps clockwise and returns a new rotated WriteableBitmap.
\r
711 <param name="bmp">The WriteableBitmap.</param>
\r
712 <param name="angle">The angle in degress the bitmap should be rotated in 90° steps clockwise.</param>
\r
713 <returns>A new WriteableBitmap that is a rotated version of the input.</returns>
\r
715 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.RotateFree(System.Windows.Media.Imaging.WriteableBitmap,System.Double,System.Boolean)">
\r
717 Rotates the bitmap in any degree returns a new rotated WriteableBitmap.
\r
719 <param name="bmp">The WriteableBitmap.</param>
\r
720 <param name="angle">Arbitrary angle in 360 Degrees (positive = clockwise).</param>
\r
721 <param name="crop">if true: keep the size, false: adjust canvas to new size</param>
\r
722 <returns>A new WriteableBitmap that is a rotated version of the input.</returns>
\r
724 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Flip(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Media.Imaging.WriteableBitmapExtensions.FlipMode)">
\r
726 Flips (reflects the image) eiter vertical or horizontal.
\r
728 <param name="bmp">The WriteableBitmap.</param>
\r
729 <param name="flipMode">The flip mode.</param>
\r
730 <returns>A new WriteableBitmap that is a flipped version of the input.</returns>
\r
732 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillRectangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
734 Draws a filled rectangle.
\r
735 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
737 <param name="bmp">The WriteableBitmap.</param>
\r
738 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
739 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
740 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
741 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
742 <param name="color">The color.</param>
\r
744 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillRectangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
746 Draws a filled rectangle.
\r
747 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
749 <param name="bmp">The WriteableBitmap.</param>
\r
750 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
751 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
752 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
753 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
754 <param name="color">The color.</param>
\r
756 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillEllipse(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
758 A Fast Bresenham Type Algorithm For Drawing filled ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
759 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
761 <param name="bmp">The WriteableBitmap.</param>
\r
762 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
763 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
764 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
765 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
766 <param name="color">The color for the line.</param>
\r
768 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillEllipse(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
770 A Fast Bresenham Type Algorithm For Drawing filled ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
771 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
773 <param name="bmp">The WriteableBitmap.</param>
\r
774 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
775 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
776 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
777 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
778 <param name="color">The color for the line.</param>
\r
780 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillEllipseCentered(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
782 A Fast Bresenham Type Algorithm For Drawing filled ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
783 Uses a different parameter representation than DrawEllipse().
\r
785 <param name="bmp">The WriteableBitmap.</param>
\r
786 <param name="xc">The x-coordinate of the ellipses center.</param>
\r
787 <param name="yc">The y-coordinate of the ellipses center.</param>
\r
788 <param name="xr">The radius of the ellipse in x-direction.</param>
\r
789 <param name="yr">The radius of the ellipse in y-direction.</param>
\r
790 <param name="color">The color for the line.</param>
\r
792 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillEllipseCentered(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
794 A Fast Bresenham Type Algorithm For Drawing filled ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
795 Uses a different parameter representation than DrawEllipse().
\r
797 <param name="bmp">The WriteableBitmap.</param>
\r
798 <param name="xc">The x-coordinate of the ellipses center.</param>
\r
799 <param name="yc">The y-coordinate of the ellipses center.</param>
\r
800 <param name="xr">The radius of the ellipse in x-direction.</param>
\r
801 <param name="yr">The radius of the ellipse in y-direction.</param>
\r
802 <param name="color">The color for the line.</param>
\r
804 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillPolygon(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Windows.Media.Color)">
\r
806 Draws a filled polygon. Add the first point also at the end of the array if the line should be closed.
\r
808 <param name="bmp">The WriteableBitmap.</param>
\r
809 <param name="points">The points of the polygon in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).</param>
\r
810 <param name="color">The color for the line.</param>
\r
812 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillPolygon(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Int32)">
\r
814 Draws a filled polygon. Add the first point also at the end of the array if the line should be closed.
\r
816 <param name="bmp">The WriteableBitmap.</param>
\r
817 <param name="points">The points of the polygon in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, ..., xn, yn).</param>
\r
818 <param name="color">The color for the line.</param>
\r
820 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillQuad(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
822 Draws a filled quad.
\r
824 <param name="bmp">The WriteableBitmap.</param>
\r
825 <param name="x1">The x-coordinate of the 1st point.</param>
\r
826 <param name="y1">The y-coordinate of the 1st point.</param>
\r
827 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
828 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
829 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
830 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
831 <param name="x4">The x-coordinate of the 4th point.</param>
\r
832 <param name="y4">The y-coordinate of the 4th point.</param>
\r
833 <param name="color">The color.</param>
\r
835 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillQuad(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
837 Draws a filled quad.
\r
839 <param name="bmp">The WriteableBitmap.</param>
\r
840 <param name="x1">The x-coordinate of the 1st point.</param>
\r
841 <param name="y1">The y-coordinate of the 1st point.</param>
\r
842 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
843 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
844 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
845 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
846 <param name="x4">The x-coordinate of the 4th point.</param>
\r
847 <param name="y4">The y-coordinate of the 4th point.</param>
\r
848 <param name="color">The color.</param>
\r
850 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillTriangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
852 Draws a filled triangle.
\r
854 <param name="bmp">The WriteableBitmap.</param>
\r
855 <param name="x1">The x-coordinate of the 1st point.</param>
\r
856 <param name="y1">The y-coordinate of the 1st point.</param>
\r
857 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
858 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
859 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
860 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
861 <param name="color">The color.</param>
\r
863 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillTriangle(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32)">
\r
865 Draws a filled triangle.
\r
867 <param name="bmp">The WriteableBitmap.</param>
\r
868 <param name="x1">The x-coordinate of the 1st point.</param>
\r
869 <param name="y1">The y-coordinate of the 1st point.</param>
\r
870 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
871 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
872 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
873 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
874 <param name="color">The color.</param>
\r
876 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ComputeBezierPoints(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32[],System.Int32,System.Int32)">
\r
878 Draws a filled, cubic Beziér spline defined by start, end and two control points.
\r
880 <param name="x1">The x-coordinate of the start point.</param>
\r
881 <param name="y1">The y-coordinate of the start point.</param>
\r
882 <param name="cx1">The x-coordinate of the 1st control point.</param>
\r
883 <param name="cy1">The y-coordinate of the 1st control point.</param>
\r
884 <param name="cx2">The x-coordinate of the 2nd control point.</param>
\r
885 <param name="cy2">The y-coordinate of the 2nd control point.</param>
\r
886 <param name="x2">The x-coordinate of the end point.</param>
\r
887 <param name="y2">The y-coordinate of the end point.</param>
\r
888 <param name="color">The color.</param>
\r
889 <param name="pixels">The pixels array.</param>
\r
890 <param name="w">The width of the bitmap.</param>
\r
891 <param name="h">The height of the bitmap.</param>
\r
893 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillBeziers(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Windows.Media.Color)">
\r
895 Draws a series of filled, cubic Beziér splines each defined by start, end and two control points.
\r
896 The ending point of the previous curve is used as starting point for the next.
\r
897 Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point).
\r
899 <param name="bmp">The WriteableBitmap.</param>
\r
900 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, cx1, cy1, cx2, cy2, x2, y2, cx3, cx4 ..., xn, yn).</param>
\r
901 <param name="color">The color for the spline.</param>
\r
903 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillBeziers(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Int32)">
\r
905 Draws a series of filled, cubic Beziér splines each defined by start, end and two control points.
\r
906 The ending point of the previous curve is used as starting point for the next.
\r
907 Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point).
\r
909 <param name="bmp">The WriteableBitmap.</param>
\r
910 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, cx1, cy1, cx2, cy2, x2, y2, cx3, cx4 ..., xn, yn).</param>
\r
911 <param name="color">The color for the spline.</param>
\r
913 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ComputeSegmentPoints(System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Single,System.Int32,System.Int32[],System.Int32,System.Int32)">
\r
915 Computes the discrete segment points of a Cardinal spline (cubic) defined by four control points.
\r
917 <param name="x1">The x-coordinate of the 1st control point.</param>
\r
918 <param name="y1">The y-coordinate of the 1st control point.</param>
\r
919 <param name="x2">The x-coordinate of the 2nd control point.</param>
\r
920 <param name="y2">The y-coordinate of the 2nd control point.</param>
\r
921 <param name="x3">The x-coordinate of the 3rd control point.</param>
\r
922 <param name="y3">The y-coordinate of the 3rd control point.</param>
\r
923 <param name="x4">The x-coordinate of the 4th control point.</param>
\r
924 <param name="y4">The y-coordinate of the 4th control point.</param>
\r
925 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
926 <param name="color">The color.</param>
\r
927 <param name="pixels">The pixels array.</param>
\r
928 <param name="w">The width of the bitmap.</param>
\r
929 <param name="h">The height of the bitmap.</param>
\r
931 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Windows.Media.Color)">
\r
933 Draws a filled Cardinal spline (cubic) defined by a point collection.
\r
934 The cardinal spline passes through each point in the collection.
\r
936 <param name="bmp">The WriteableBitmap.</param>
\r
937 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
938 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
939 <param name="color">The color for the spline.</param>
\r
941 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Int32)">
\r
943 Draws a filled Cardinal spline (cubic) defined by a point collection.
\r
944 The cardinal spline passes through each point in the collection.
\r
946 <param name="bmp">The WriteableBitmap.</param>
\r
947 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
948 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
949 <param name="color">The color for the spline.</param>
\r
951 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillCurveClosed(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Windows.Media.Color)">
\r
953 Draws a filled, closed Cardinal spline (cubic) defined by a point collection.
\r
954 The cardinal spline passes through each point in the collection.
\r
956 <param name="bmp">The WriteableBitmap.</param>
\r
957 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
958 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
959 <param name="color">The color for the spline.</param>
\r
961 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FillCurveClosed(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Int32)">
\r
963 Draws a filled, closed Cardinal spline (cubic) defined by a point collection.
\r
964 The cardinal spline passes through each point in the collection.
\r
966 <param name="bmp">The WriteableBitmap.</param>
\r
967 <param name="points">The points for the curve in x and y pairs, therefore the array is interpreted as (x1, y1, x2, y2, x3, y3, x4, y4, x1, x2 ..., xn, yn).</param>
\r
968 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
969 <param name="color">The color for the spline.</param>
\r
971 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ToByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
973 Copies the Pixels from the WriteableBitmap into a ARGB byte array starting at a specific Pixels index.
\r
975 <param name="bmp">The WriteableBitmap.</param>
\r
976 <param name="offset">The starting Pixels index.</param>
\r
977 <param name="count">The number of Pixels to copy.</param>
\r
978 <returns>The color buffer as byte ARGB values.</returns>
\r
980 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ToByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Int32)">
\r
982 Copies the Pixels from the WriteableBitmap into a ARGB byte array.
\r
984 <param name="bmp">The WriteableBitmap.</param>
\r
985 <param name="count">The number of pixels to copy.</param>
\r
986 <returns>The color buffer as byte ARGB values.</returns>
\r
988 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ToByteArray(System.Windows.Media.Imaging.WriteableBitmap)">
\r
990 Copies all the Pixels from the WriteableBitmap into a ARGB byte array.
\r
992 <param name="bmp">The WriteableBitmap.</param>
\r
993 <returns>The color buffer as byte ARGB values.</returns>
\r
995 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Byte[],System.Int32,System.Int32)">
\r
997 Copies color information from an ARGB byte array into this WriteableBitmap starting at a specific buffer index.
\r
999 <param name="bmp">The WriteableBitmap.</param>
\r
1000 <param name="offset">The starting index in the buffer.</param>
\r
1001 <param name="count">The number of bytes to copy from the buffer.</param>
\r
1002 <param name="buffer">The color buffer as byte ARGB values.</param>
\r
1003 <returns>The WriteableBitmap that was passed as parameter.</returns>
\r
1005 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Byte[],System.Int32)">
\r
1007 Copies color information from an ARGB byte array into this WriteableBitmap.
\r
1009 <param name="bmp">The WriteableBitmap.</param>
\r
1010 <param name="count">The number of bytes to copy from the buffer.</param>
\r
1011 <param name="buffer">The color buffer as byte ARGB values.</param>
\r
1012 <returns>The WriteableBitmap that was passed as parameter.</returns>
\r
1014 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Byte[])">
\r
1016 Copies all the color information from an ARGB byte array into this WriteableBitmap.
\r
1018 <param name="bmp">The WriteableBitmap.</param>
\r
1019 <param name="buffer">The color buffer as byte ARGB values.</param>
\r
1020 <returns>The WriteableBitmap that was passed as parameter.</returns>
\r
1022 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.WriteTga(System.Windows.Media.Imaging.WriteableBitmap,System.IO.Stream)">
\r
1024 Writes the WriteableBitmap as a TGA image to a stream.
\r
1025 Used with permission from Nokola: http://nokola.com/blog/post/2010/01/21/Quick-and-Dirty-Output-of-WriteableBitmap-as-TGA-Image.aspx
\r
1027 <param name="bmp">The WriteableBitmap.</param>
\r
1028 <param name="destination">The destination stream.</param>
\r
1030 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromResource(System.Windows.Media.Imaging.WriteableBitmap,System.String)">
\r
1032 Loads an image from the applications resource file and fills this WriteableBitmap with it.
\r
1034 <param name="bmp">The WriteableBitmap.</param>
\r
1035 <param name="relativePath">Only the relative path to the resource file. The assembly name is retrieved automatically.</param>
\r
1036 <returns>The WriteableBitmap that was passed as parameter.</returns>
\r
1038 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromContent(System.Windows.Media.Imaging.WriteableBitmap,System.String)">
\r
1040 Loads an image from the applications content and fills this WriteableBitmap with it.
\r
1042 <param name="bmp">The WriteableBitmap.</param>
\r
1043 <param name="relativePath">Only the relative path to the content file.</param>
\r
1044 <returns>The WriteableBitmap that was passed as parameter.</returns>
\r
1046 <member name="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode">
\r
1048 The blending mode.
\r
1051 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Alpha">
\r
1053 Alpha blendiing uses the alpha channel to combine the source and destination.
\r
1056 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Additive">
\r
1058 Additive blending adds the colors of the source and the destination.
\r
1061 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Subtractive">
\r
1063 Subtractive blending subtracts the source color from the destination.
\r
1066 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Mask">
\r
1068 Uses the source color as a mask.
\r
1071 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Multiply">
\r
1073 Multiplies the source color with the destination color.
\r
1076 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.ColorKeying">
\r
1078 Ignores the specified Color
\r
1081 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.None">
\r
1083 No blending just copies the pixels from the source.
\r
1086 <member name="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.Interpolation">
\r
1088 The interpolation method.
\r
1091 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.Interpolation.NearestNeighbor">
\r
1093 The nearest neighbor algorithm simply selects the color of the nearest pixel.
\r
1096 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.Interpolation.Bilinear">
\r
1098 Linear interpolation in 2D using the average of 3 neighboring pixels.
\r
1101 <member name="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.FlipMode">
\r
1103 The mode for flipping.
\r
1106 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.FlipMode.Vertical">
\r
1108 Flips the image vertical (around the center of the y-axis).
\r
1111 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.FlipMode.Horizontal">
\r
1113 Flips the image horizontal (around the center of the x-axis).
\r