WriteableBitmapExtensions Class Methods

For a list of all members of this type, see WriteableBitmapExtensions members.

Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic) Alpha blends 2 premultiplied colors with each other  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Copies (blits) the pixels from the WriteableBitmap source to the destination WriteableBitmap (this).  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Fills the whole WriteableBitmap with a color.  
Public Methodstatic (Shared in Visual Basic) Clones the specified WriteableBitmap.  
Public Methodstatic (Shared in Visual Basic)Overloaded.   
Public Methodstatic (Shared in Visual Basic)Overloaded.  Creates a new filtered WriteableBitmap.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Creates a new cropped WriteableBitmap.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a cubic Beziér spline defined by start, end and two control points.  
Public Methodstatic (Shared in Visual Basic)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).  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a closed Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection.  
Public Methodstatic (Shared in Visual Basic)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.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  A Fast Bresenham Type Algorithm For Drawing Ellipses http://homepage.smc.edu/kennedy_john/belipse.pdf Uses a different parameter representation than DrawEllipse().  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a colored line by connecting two points using an optimized DDA.  
Public Methodstatic (Shared in Visual Basic)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.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a colored line by connecting two points using the Bresenham algorithm.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a colored line by connecting two points using a DDA algorithm (Digital Differential Analyzer).  
Public Methodstatic (Shared in Visual Basic) 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.  
Public Methodstatic (Shared in Visual Basic)Overloaded.   
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a polyline. Add the first point also at the end of the array if the line should be closed.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a quad.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a rectangle. x2 has to be greater than x1 and y2 has to be greater than y1.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a triangle.  
Public Methodstatic (Shared in Visual Basic) 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.  
Public Methodstatic (Shared in Visual Basic)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).  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a filled Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a filled, closed Cardinal spline (cubic) defined by a point collection. The cardinal spline passes through each point in the collection.  
Public Methodstatic (Shared in Visual Basic)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.  
Public Methodstatic (Shared in Visual Basic)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().  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a filled polygon. Add the first point also at the end of the array if the line should be closed.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a filled quad.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a filled rectangle. x2 has to be greater than x1 and y2 has to be greater than y1.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Draws a filled triangle.  
Public Methodstatic (Shared in Visual Basic) Flips (reflects the image) eiter vertical or horizontal.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Applies the given function to all the pixels of the bitmap in order to set their color.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Copies color information from an ARGB byte array into this WriteableBitmap starting at a specific buffer index.  
Public Methodstatic (Shared in Visual Basic) Loads an image from the applications content and returns a new WriteableBitmap. The passed WriteableBitmap is not used.  
Public Methodstatic (Shared in Visual Basic) Loads an image from the applications resource file and returns a new WriteableBitmap. The passed WriteableBitmap is not used.  
Public Methodstatic (Shared in Visual Basic) Loads the data from an image stream and returns a new WriteableBitmap. The passed WriteableBitmap is not used.  
Public Methodstatic (Shared in Visual Basic) Gets the brightness / luminance of the pixel at the x, y coordinate as byte.  
Public Methodstatic (Shared in Visual Basic) 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.  
Public Methodstatic (Shared in Visual Basic) 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.  
Public Methodstatic (Shared in Visual Basic) Creates a new inverted WriteableBitmap and returns it.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Creates a new resized WriteableBitmap.  
Public Methodstatic (Shared in Visual Basic) Rotates the bitmap in 90° steps clockwise and returns a new rotated WriteableBitmap.  
Public Methodstatic (Shared in Visual Basic) Rotates the bitmap in any degree returns a new rotated WriteableBitmap.  
Public Methodstatic (Shared in Visual Basic)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.  
Public Methodstatic (Shared in Visual Basic)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.  
Public Methodstatic (Shared in Visual Basic)Overloaded.  Copies the Pixels from the WriteableBitmap into a ARGB byte array starting at a specific Pixels index.  
Public Methodstatic (Shared in Visual Basic) 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  
Top
Extension Methods
 NameDescription
Public Extension Method Notifies that finalizer has been invoked
Public Extension MethodOverloaded. Converts an System.IComparable array to double array
Public Extension MethodYields a single item, converting it to System.Collections.IEnumerable.
Public Extension Method
Top
See Also