WriteableBitmapExtensions Class Members
The following tables list the members exposed by WriteableBitmapExtensions.
Public Fields
Name | Description | |
---|---|---|
KernelGaussianBlur3x3 | Gaussian blur kernel with the size 3x3 | |
KernelGaussianBlur5x5 | Gaussian blur kernel with the size 5x5 | |
KernelSharpen3x3 | Sharpen kernel with the size 3x3 |
Public Methods
Name | Description | |
---|---|---|
AlphaBlend | Alpha blends 2 premultiplied colors with each other | |
Blit | Overloaded. Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this). | |
Clear | Overloaded. Fills the whole WriteableBitmap with a color. | |
Clone | Clones the specified WriteableBitmap. | |
ConvertColor | Overloaded. | |
Convolute | Overloaded. Creates a new filtered WriteableBitmap. | |
Crop | Overloaded. Creates a new cropped WriteableBitmap. | |
DrawBezier | Overloaded. Draws a cubic Beziér spline defined by start, end and two control points. | |
DrawBeziers | Overloaded. Draws a series of cubic Beziér splines each defined by start, end and two control points. The ending point of the previous curve is used as starting point for the next. Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point). | |
DrawCurve | Overloaded. Draws a Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection. | |
DrawCurveClosed | Overloaded. Draws a closed Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection. | |
DrawEllipse | Overloaded. A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf x2 has to be greater than x1 and y2 has to be greater than y1. | |
DrawEllipseCentered | Overloaded. A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf Uses a different parameter representation than DrawEllipse(). | |
DrawLine | Overloaded. Draws a colored line by connecting two points using an optimized DDA. | |
DrawLineAa | Overloaded. Draws an anti-aliased line, using an optimized version of Gupta-Sproull algorithm From http://nokola.com/blog/post/2010/10/14/Anti-aliased-Lines-And-Optimizing-Code-for-Windows-Phone-7e28093First-Look.aspx The WriteableBitmap. The x-coordinate of the start point. The y-coordinate of the start point. The x-coordinate of the end point. The y-coordinate of the end point. The color for the line. | |
DrawLineBresenham | Overloaded. Draws a colored line by connecting two points using the Bresenham algorithm. | |
DrawLineDDA | Overloaded. Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer). | |
DrawPixel | Sets the color of the pixel. For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop. | |
DrawPixelsVertically | Overloaded. | |
DrawPolyline | Overloaded. Draws a polyline. Add the first point also at the end of the array if the line should be closed. | |
DrawQuad | Overloaded. Draws a quad. | |
DrawRectangle | Overloaded. Draws a rectangle. x2 has to be greater than x1 and y2 has to be greater than y1. | |
DrawTriangle | Overloaded. Draws a triangle. | |
DrawWuLine | Draws an anti-aliased, alpha blended, colored line by connecting two points using Wu's antialiasing algorithm Uses the pixels array and the width directly for best performance. | |
FillBeziers | Overloaded. Draws a series of filled, cubic Bezier splines each defined by start, end and two control points. The ending point of the previous curve is used as starting point for the next. Therfore the inital curve needs four points and the subsequent 3 (2 control and 1 end point). | |
FillCurve | Overloaded. Draws a filled Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection. | |
FillCurveClosed | Overloaded. Draws a filled, closed Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection. | |
FillEllipse | Overloaded. A Fast Bresenham Type Algorithm For Drawing filled ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf x2 has to be greater than x1 and y2 has to be greater than y1. | |
FillEllipseCentered | Overloaded. A Fast Bresenham Type Algorithm For Drawing filled ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf Uses a different parameter representation than DrawEllipse(). | |
FillPolygon | Overloaded. Draws a filled polygon. Add the first point also at the end of the array if the line should be closed. | |
FillQuad | Overloaded. Draws a filled quad. | |
FillRectangle | Overloaded. Draws a filled rectangle. x2 has to be greater than x1 and y2 has to be greater than y1. | |
FillTriangle | Overloaded. Draws a filled triangle. | |
Flip | Flips (reflects the image) eiter vertical or horizontal. | |
ForEach | Overloaded. Applies the given function to all the pixels of the bitmap in order to set their color. | |
FromByteArray | Overloaded. Copies color information from an ARGB byte array into this WriteableBitmap starting at a specific buffer index. | |
FromContent | Loads an image from the applications content and returns a new WriteableBitmap. The passed WriteableBitmap is not used. | |
FromResource | Loads an image from the applications resource file and returns a new WriteableBitmap. The passed WriteableBitmap is not used. | |
FromStream | Loads the data from an image stream and returns a new WriteableBitmap. The passed WriteableBitmap is not used. | |
GetBrightness | Gets the brightness / luminance of the pixel at the x, y coordinate as byte. | |
GetPixel | Gets the color of the pixel at the x, y coordinate as a Color struct. For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop. | |
GetPixeli | Gets the color of the pixel at the x, y coordinate as integer. For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop. | |
Invert | Creates a new inverted WriteableBitmap and returns it. | |
Resize | Overloaded. Creates a new resized WriteableBitmap. | |
Rotate | Rotates the bitmap in 90° steps clockwise and returns a new rotated WriteableBitmap. | |
RotateFree | Rotates the bitmap in any degree returns a new rotated WriteableBitmap. | |
SetPixel | Overloaded. Sets the color of the pixel. For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop. | |
SetPixeli | Overloaded. Sets the color of the pixel using a precalculated index (faster). For best performance this method should not be used in iterative real-time scenarios. Implement the code directly inside a loop. | |
ToByteArray | Overloaded. Copies the Pixels from the WriteableBitmap into a ARGB byte array starting at a specific Pixels index. | |
WriteTga | Writes the WriteableBitmap as a TGA image to a stream. Used with permission from Nokola: http://nokola.com/blog/post/2010/01/21/Quick-and-Dirty-Output-of-WriteableBitmap-as-TGA-Image.aspx |
Extension Methods
Name | Description | |
---|---|---|
DebugFinalizer<T> | Notifies that finalizer has been invoked | |
ToDoubleArray | Overloaded. Converts an System.IComparable array to double array | |
ToEnumerable<T> | Yields a single item, converting it to System.Collections.IEnumerable. | |
ToStringArray2D<T> |
See Also