1 <?xml version="1.0"?>
\r
4 <name>WriteableBitmapEx</name>
\r
7 <member name="T:System.Windows.Media.Imaging.WriteableBitmapExtensions">
\r
9 Collection of blit (copy) extension methods for the Silverlight WriteableBitmap class.
\r
12 Collection of interchange extension methods for the Silverlight WriteableBitmap class.
\r
15 Collection of draw extension methods for the Silverlight WriteableBitmap class.
\r
18 Collection of draw extension methods for the Silverlight WriteableBitmap class.
\r
21 Collection of draw spline extension methods for the Silverlight WriteableBitmap class.
\r
24 <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
26 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
28 <param name="bmp">The destination WriteableBitmap.</param>
\r
29 <param name="destRect">The rectangle that defines the destination region.</param>
\r
30 <param name="source">The source WriteableBitmap.</param>
\r
31 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
32 <param name="BlendMode">The blending mode <see cref="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode"/>.</param>
\r
34 <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
36 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
38 <param name="bmp">The destination WriteableBitmap.</param>
\r
39 <param name="destRect">The rectangle that defines the destination region.</param>
\r
40 <param name="source">The source WriteableBitmap.</param>
\r
41 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
43 <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
45 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
47 <param name="bmp">The destination WriteableBitmap.</param>
\r
48 <param name="destPosition">The destination position in the destination bitmap.</param>
\r
49 <param name="source">The source WriteableBitmap.</param>
\r
50 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
51 <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
52 <param name="BlendMode">The blending mode <see cref="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode"/>.</param>
\r
54 <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
56 Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).
\r
58 <param name="bmp">The destination WriteableBitmap.</param>
\r
59 <param name="destRect">The rectangle that defines the destination region.</param>
\r
60 <param name="source">The source WriteableBitmap.</param>
\r
61 <param name="sourceRect">The rectangle that will be copied from the source to the destination.</param>
\r
62 <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
63 <param name="BlendMode">The blending mode <see cref="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode"/>.</param>
\r
65 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ToByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
67 Copies the Pixels from the WriteableBitmap into a ARGB byte array starting at a specific Pixels index.
\r
69 <param name="bmp">The WriteableBitmap.</param>
\r
70 <param name="offset">The starting Pixels index.</param>
\r
71 <param name="count">The number of Pixels to copy.</param>
\r
72 <returns>The color buffer as byte ARGB values.</returns>
\r
74 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ToByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Int32)">
\r
76 Copies the Pixels from the WriteableBitmap into a ARGB byte array.
\r
78 <param name="bmp">The WriteableBitmap.</param>
\r
79 <param name="count">The number of pixels to copy.</param>
\r
80 <returns>The color buffer as byte ARGB values.</returns>
\r
82 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.ToByteArray(System.Windows.Media.Imaging.WriteableBitmap)">
\r
84 Copies all the Pixels from the WriteableBitmap into a ARGB byte array.
\r
86 <param name="bmp">The WriteableBitmap.</param>
\r
87 <returns>The color buffer as byte ARGB values.</returns>
\r
89 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Byte[],System.Int32,System.Int32)">
\r
91 Copies color information from an ARGB byte array into the WriteableBitmap starting at a specific buffer index.
\r
93 <param name="bmp">The WriteableBitmap.</param>
\r
94 <param name="offset">The starting index in the buffer.</param>
\r
95 <param name="count">The number of bytes to copy from the buffer.</param>
\r
96 <param name="buffer">The color buffer as byte ARGB values.</param>
\r
98 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Byte[],System.Int32)">
\r
100 Copies color information from an ARGB byte array into the WriteableBitmap.
\r
102 <param name="bmp">The WriteableBitmap.</param>
\r
103 <param name="count">The number of bytes to copy from the buffer.</param>
\r
104 <param name="buffer">The color buffer as byte ARGB values.</param>
\r
106 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.FromByteArray(System.Windows.Media.Imaging.WriteableBitmap,System.Byte[])">
\r
108 Copies all the color information from an ARGB byte array into the WriteableBitmap.
\r
110 <param name="bmp">The WriteableBitmap.</param>
\r
111 <param name="buffer">The color buffer as byte ARGB values.</param>
\r
113 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.WriteTga(System.Windows.Media.Imaging.WriteableBitmap,System.IO.Stream)">
\r
115 Writes the WriteableBitmap as a TGA image to a stream.
\r
116 Used with permission from Nokola: http://nokola.com/blog/post/2010/01/21/Quick-and-Dirty-Output-of-WriteableBitmap-as-TGA-Image.aspx
\r
118 <param name="bmp">The WriteableBitmap.</param>
\r
119 <param name="destination">The destination stream.</param>
\r
121 <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
123 Draws a colored line by connecting two points using the Bresenham algorithm.
\r
125 <param name="bmp">The WriteableBitmap.</param>
\r
126 <param name="x1">The x-coordinate of the start point.</param>
\r
127 <param name="y1">The y-coordinate of the start point.</param>
\r
128 <param name="x2">The x-coordinate of the end point.</param>
\r
129 <param name="y2">The y-coordinate of the end point.</param>
\r
130 <param name="color">The color for the line.</param>
\r
132 <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
134 Draws a colored line by connecting two points using the Bresenham algorithm.
\r
136 <param name="bmp">The WriteableBitmap.</param>
\r
137 <param name="x1">The x-coordinate of the start point.</param>
\r
138 <param name="y1">The y-coordinate of the start point.</param>
\r
139 <param name="x2">The x-coordinate of the end point.</param>
\r
140 <param name="y2">The y-coordinate of the end point.</param>
\r
141 <param name="color">The color for the line.</param>
\r
143 <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
145 Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer).
\r
147 <param name="bmp">The WriteableBitmap.</param>
\r
148 <param name="x1">The x-coordinate of the start point.</param>
\r
149 <param name="y1">The y-coordinate of the start point.</param>
\r
150 <param name="x2">The x-coordinate of the end point.</param>
\r
151 <param name="y2">The y-coordinate of the end point.</param>
\r
152 <param name="color">The color for the line.</param>
\r
154 <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
156 Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer).
\r
158 <param name="bmp">The WriteableBitmap.</param>
\r
159 <param name="x1">The x-coordinate of the start point.</param>
\r
160 <param name="y1">The y-coordinate of the start point.</param>
\r
161 <param name="x2">The x-coordinate of the end point.</param>
\r
162 <param name="y2">The y-coordinate of the end point.</param>
\r
163 <param name="color">The color for the line.</param>
\r
165 <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
167 Draws a colored line by connecting two points using an optimized DDA.
\r
169 <param name="bmp">The WriteableBitmap.</param>
\r
170 <param name="x1">The x-coordinate of the start point.</param>
\r
171 <param name="y1">The y-coordinate of the start point.</param>
\r
172 <param name="x2">The x-coordinate of the end point.</param>
\r
173 <param name="y2">The y-coordinate of the end point.</param>
\r
174 <param name="color">The color for the line.</param>
\r
176 <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
178 Draws a colored line by connecting two points using an optimized DDA.
\r
180 <param name="bmp">The WriteableBitmap.</param>
\r
181 <param name="x1">The x-coordinate of the start point.</param>
\r
182 <param name="y1">The y-coordinate of the start point.</param>
\r
183 <param name="x2">The x-coordinate of the end point.</param>
\r
184 <param name="y2">The y-coordinate of the end point.</param>
\r
185 <param name="color">The color for the line.</param>
\r
187 <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
189 Draws a colored line by connecting two points using an optimized DDA.
\r
190 Uses the pixels array and the width directly for best performance.
\r
192 <param name="pixels">An array containing the pixels as int RGBA value.</param>
\r
193 <param name="pixelWidth">The width of one scanline in the pixels array.</param>
\r
194 <param name="pixelHeight">The height of the bitmap.</param>
\r
195 <param name="x1">The x-coordinate of the start point.</param>
\r
196 <param name="y1">The y-coordinate of the start point.</param>
\r
197 <param name="x2">The x-coordinate of the end point.</param>
\r
198 <param name="y2">The y-coordinate of the end point.</param>
\r
199 <param name="color">The color for the line.</param>
\r
201 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawPolyline(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Windows.Media.Color)">
\r
203 Draws a polyline. Add the first point also at the end of the array if the line should be closed.
\r
205 <param name="bmp">The WriteableBitmap.</param>
\r
206 <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
207 <param name="color">The color for the line.</param>
\r
209 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawPolyline(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Int32)">
\r
211 Draws a polyline. Add the first point also at the end of the array if the line should be closed.
\r
213 <param name="bmp">The WriteableBitmap.</param>
\r
214 <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
215 <param name="color">The color for the line.</param>
\r
217 <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
221 <param name="bmp">The WriteableBitmap.</param>
\r
222 <param name="x1">The x-coordinate of the 1st point.</param>
\r
223 <param name="y1">The y-coordinate of the 1st point.</param>
\r
224 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
225 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
226 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
227 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
228 <param name="color">The color.</param>
\r
230 <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
234 <param name="bmp">The WriteableBitmap.</param>
\r
235 <param name="x1">The x-coordinate of the 1st point.</param>
\r
236 <param name="y1">The y-coordinate of the 1st point.</param>
\r
237 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
238 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
239 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
240 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
241 <param name="color">The color.</param>
\r
243 <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
247 <param name="bmp">The WriteableBitmap.</param>
\r
248 <param name="x1">The x-coordinate of the 1st point.</param>
\r
249 <param name="y1">The y-coordinate of the 1st point.</param>
\r
250 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
251 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
252 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
253 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
254 <param name="x4">The x-coordinate of the 4th point.</param>
\r
255 <param name="y4">The y-coordinate of the 4th point.</param>
\r
256 <param name="color">The color.</param>
\r
258 <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
262 <param name="bmp">The WriteableBitmap.</param>
\r
263 <param name="x1">The x-coordinate of the 1st point.</param>
\r
264 <param name="y1">The y-coordinate of the 1st point.</param>
\r
265 <param name="x2">The x-coordinate of the 2nd point.</param>
\r
266 <param name="y2">The y-coordinate of the 2nd point.</param>
\r
267 <param name="x3">The x-coordinate of the 3rd point.</param>
\r
268 <param name="y3">The y-coordinate of the 3rd point.</param>
\r
269 <param name="x4">The x-coordinate of the 4th point.</param>
\r
270 <param name="y4">The y-coordinate of the 4th point.</param>
\r
271 <param name="color">The color.</param>
\r
273 <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
276 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
278 <param name="bmp">The WriteableBitmap.</param>
\r
279 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
280 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
281 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
282 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
283 <param name="color">The color.</param>
\r
285 <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
288 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
290 <param name="bmp">The WriteableBitmap.</param>
\r
291 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
292 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
293 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
294 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
295 <param name="color">The color.</param>
\r
297 <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
299 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
300 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
302 <param name="bmp">The WriteableBitmap.</param>
\r
303 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
304 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
305 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
306 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
307 <param name="color">The color for the line.</param>
\r
309 <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
311 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
312 x2 has to be greater than x1 and y2 has to be greater than y1.
\r
314 <param name="bmp">The WriteableBitmap.</param>
\r
315 <param name="x1">The x-coordinate of the bounding rectangle's left side.</param>
\r
316 <param name="y1">The y-coordinate of the bounding rectangle's top side.</param>
\r
317 <param name="x2">The x-coordinate of the bounding rectangle's right side.</param>
\r
318 <param name="y2">The y-coordinate of the bounding rectangle's bottom side.</param>
\r
319 <param name="color">The color for the line.</param>
\r
321 <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
323 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
324 Uses a different parameter representation than DrawEllipse().
\r
326 <param name="bmp">The WriteableBitmap.</param>
\r
327 <param name="xc">The x-coordinate of the ellipses center.</param>
\r
328 <param name="yc">The y-coordinate of the ellipses center.</param>
\r
329 <param name="xr">The radius of the ellipse in x-direction.</param>
\r
330 <param name="yr">The radius of the ellipse in y-direction.</param>
\r
331 <param name="color">The color for the line.</param>
\r
333 <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
335 A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf
\r
336 Uses a different parameter representation than DrawEllipse().
\r
338 <param name="bmp">The WriteableBitmap.</param>
\r
339 <param name="xc">The x-coordinate of the ellipses center.</param>
\r
340 <param name="yc">The y-coordinate of the ellipses center.</param>
\r
341 <param name="xr">The radius of the ellipse in x-direction.</param>
\r
342 <param name="yr">The radius of the ellipse in y-direction.</param>
\r
343 <param name="color">The color for the line.</param>
\r
345 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Clear(System.Windows.Media.Imaging.WriteableBitmap,System.Windows.Media.Color)">
\r
347 Fills the whole WriteableBitmap with a color.
\r
349 <param name="bmp">The WriteableBitmap.</param>
\r
350 <param name="color">The color used for filling.</param>
\r
352 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Clear(System.Windows.Media.Imaging.WriteableBitmap)">
\r
354 Fills the whole WriteableBitmap with an empty color (0).
\r
356 <param name="bmp">The WriteableBitmap.</param>
\r
358 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.Clone(System.Windows.Media.Imaging.WriteableBitmap)">
\r
360 Clones the specified WriteableBitmap.
\r
362 <param name="bmp">The WriteableBitmap.</param>
\r
363 <returns>A copy of the WriteableBitmap.</returns>
\r
365 <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
367 Applies the given function to all the pixels of the bitmap in
\r
368 order to set their color.
\r
370 <param name="bmp">The WriteableBitmap.</param>
\r
371 <param name="func">The function to apply. With parameters x, y and a color as a result</param>
\r
373 <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
375 Applies the given function to all the pixels of the bitmap in
\r
376 order to set their color.
\r
378 <param name="bmp">The WriteableBitmap.</param>
\r
379 <param name="func">The function to apply. With parameters x, y, source color and a color as a result</param>
\r
381 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Byte,System.Byte,System.Byte)">
\r
383 Sets the color of the pixel using a precalculated index (faster).
\r
385 <param name="bmp">The WriteableBitmap.</param>
\r
386 <param name="index">The coordinate index.</param>
\r
387 <param name="r">The red value of the color.</param>
\r
388 <param name="g">The green value of the color.</param>
\r
389 <param name="b">The blue value of the color.</param>
\r
391 <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
393 Sets the color of the pixel.
\r
395 <param name="bmp">The WriteableBitmap.</param>
\r
396 <param name="x">The x coordinate (row).</param>
\r
397 <param name="y">The y coordinate (column).</param>
\r
398 <param name="r">The red value of the color.</param>
\r
399 <param name="g">The green value of the color.</param>
\r
400 <param name="b">The blue value of the color.</param>
\r
402 <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
404 Sets the color of the pixel including the alpha value and using a precalculated index (faster).
\r
406 <param name="bmp">The WriteableBitmap.</param>
\r
407 <param name="index">The coordinate index.</param>
\r
408 <param name="a">The alpha value of the color.</param>
\r
409 <param name="r">The red value of the color.</param>
\r
410 <param name="g">The green value of the color.</param>
\r
411 <param name="b">The blue value of the color.</param>
\r
413 <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
415 Sets the color of the pixel including the alpha value.
\r
417 <param name="bmp">The WriteableBitmap.</param>
\r
418 <param name="x">The x coordinate (row).</param>
\r
419 <param name="y">The y coordinate (column).</param>
\r
420 <param name="a">The alpha value of the color.</param>
\r
421 <param name="r">The red value of the color.</param>
\r
422 <param name="g">The green value of the color.</param>
\r
423 <param name="b">The blue value of the color.</param>
\r
425 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Windows.Media.Color)">
\r
427 Sets the color of the pixel using a precalculated index (faster).
\r
429 <param name="bmp">The WriteableBitmap.</param>
\r
430 <param name="index">The coordinate index.</param>
\r
431 <param name="color">The color.</param>
\r
433 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Windows.Media.Color)">
\r
435 Sets the color of the pixel.
\r
437 <param name="bmp">The WriteableBitmap.</param>
\r
438 <param name="x">The x coordinate (row).</param>
\r
439 <param name="y">The y coordinate (column).</param>
\r
440 <param name="color">The color.</param>
\r
442 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Byte,System.Windows.Media.Color)">
\r
444 Sets the color of the pixel using an extra alpha value and a precalculated index (faster).
\r
446 <param name="bmp">The WriteableBitmap.</param>
\r
447 <param name="index">The coordinate index.</param>
\r
448 <param name="a">The alpha value of the color.</param>
\r
449 <param name="color">The color.</param>
\r
451 <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
453 Sets the color of the pixel using an extra alpha value.
\r
455 <param name="bmp">The WriteableBitmap.</param>
\r
456 <param name="x">The x coordinate (row).</param>
\r
457 <param name="y">The y coordinate (column).</param>
\r
458 <param name="a">The alpha value of the color.</param>
\r
459 <param name="color">The color.</param>
\r
461 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixeli(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32)">
\r
463 Sets the color of the pixel using a precalculated index (faster).
\r
465 <param name="bmp">The WriteableBitmap.</param>
\r
466 <param name="index">The coordinate index.</param>
\r
467 <param name="color">The color.</param>
\r
469 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.SetPixel(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32)">
\r
471 Sets the color of the pixel.
\r
473 <param name="bmp">The WriteableBitmap.</param>
\r
474 <param name="x">The x coordinate (row).</param>
\r
475 <param name="y">The y coordinate (column).</param>
\r
476 <param name="color">The color.</param>
\r
478 <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
480 Draws a cubic Beziér spline defined by start, end and two control points.
\r
482 <param name="bmp">The WriteableBitmap.</param>
\r
483 <param name="x1">The x-coordinate of the start point.</param>
\r
484 <param name="y1">The y-coordinate of the start point.</param>
\r
485 <param name="cx1">The x-coordinate of the 1st control point.</param>
\r
486 <param name="cy1">The y-coordinate of the 1st control point.</param>
\r
487 <param name="cx2">The x-coordinate of the 2nd control point.</param>
\r
488 <param name="cy2">The y-coordinate of the 2nd control point.</param>
\r
489 <param name="x2">The x-coordinate of the end point.</param>
\r
490 <param name="y2">The y-coordinate of the end point.</param>
\r
491 <param name="color">The color.</param>
\r
493 <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
495 Draws a cubic Beziér spline defined by start, end and two control points.
\r
497 <param name="bmp">The WriteableBitmap.</param>
\r
498 <param name="x1">The x-coordinate of the start point.</param>
\r
499 <param name="y1">The y-coordinate of the start point.</param>
\r
500 <param name="cx1">The x-coordinate of the 1st control point.</param>
\r
501 <param name="cy1">The y-coordinate of the 1st control point.</param>
\r
502 <param name="cx2">The x-coordinate of the 2nd control point.</param>
\r
503 <param name="cy2">The y-coordinate of the 2nd control point.</param>
\r
504 <param name="x2">The x-coordinate of the end point.</param>
\r
505 <param name="y2">The y-coordinate of the end point.</param>
\r
506 <param name="color">The color.</param>
\r
508 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawBeziers(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Windows.Media.Color)">
\r
510 Draws a series of cubic Beziér splines each defined by start, end and two control points.
\r
511 The ending point of the previous curve is used as starting point for the next.
\r
512 Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point).
\r
514 <param name="bmp">The WriteableBitmap.</param>
\r
515 <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
516 <param name="color">The color for the spline.</param>
\r
518 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawBeziers(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Int32)">
\r
520 Draws a series of cubic Beziér splines each defined by start, end and two control points.
\r
521 The ending point of the previous curve is used as starting point for the next.
\r
522 Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point).
\r
524 <param name="bmp">The WriteableBitmap.</param>
\r
525 <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
526 <param name="color">The color for the spline.</param>
\r
528 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Single,System.Int32)">
\r
530 Draws a Cardinal spline (cubic) defined by four control points.
\r
532 <param name="bmp">The WriteableBitmap.</param>
\r
533 <param name="x1">The x-coordinate of the 1st control point.</param>
\r
534 <param name="y1">The y-coordinate of the 1st control point.</param>
\r
535 <param name="x2">The x-coordinate of the 2nd control point.</param>
\r
536 <param name="y2">The y-coordinate of the 2nd control point.</param>
\r
537 <param name="x3">The x-coordinate of the 3rd control point.</param>
\r
538 <param name="y3">The y-coordinate of the 3rd control point.</param>
\r
539 <param name="x4">The x-coordinate of the 4th control point.</param>
\r
540 <param name="y4">The y-coordinate of the 4th control point.</param>
\r
541 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
542 <param name="color">The color.</param>
\r
544 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Windows.Media.Color)">
\r
546 Draws a Cardinal spline (cubic) defined by a point collection.
\r
547 The cardinal spline passes through each point in the collection.
\r
549 <param name="bmp">The WriteableBitmap.</param>
\r
550 <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
551 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
552 <param name="color">The color for the spline.</param>
\r
554 <member name="M:System.Windows.Media.Imaging.WriteableBitmapExtensions.DrawCurve(System.Windows.Media.Imaging.WriteableBitmap,System.Int32[],System.Single,System.Int32)">
\r
556 Draws a Cardinal spline (cubic) defined by a point collection.
\r
557 The cardinal spline passes through each point in the collection.
\r
559 <param name="bmp">The WriteableBitmap.</param>
\r
560 <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
561 <param name="tension">The tension of the curve defines the shape. Usually between 0 and 1. 0 would be a straight line.</param>
\r
562 <param name="color">The color for the spline.</param>
\r
564 <member name="T:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode">
\r
569 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.AlphaBlend">
\r
571 Alpha blendiing uses the alpha channel to combine the source and destination.
\r
574 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Additive">
\r
576 Additive blending adds the colors of the source and the destination.
\r
579 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Subtractive">
\r
581 Subtractive blending subtracts the source color from the destination.
\r
584 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Mask">
\r
586 Uses the source color as a mask.
\r
589 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.Multiply">
\r
591 Multiplies the source color with the destination color.
\r
594 <member name="F:System.Windows.Media.Imaging.WriteableBitmapExtensions.BlendMode.None">
\r
596 No blending just copies the pixels from the source.
\r