ImageExtensionsWriteImage Method (WriteableBitmap, Image, Rect, Rect, HighBitScaleMode)

CVB.Net Documentation
Copies the pixel data from the given sourceRect of the Imageimg.

Namespace:  Stemmer.Cvb.Wpf
Assembly:  Stemmer.Cvb.Wpf (in Stemmer.Cvb.Wpf.dll) Version: 14.0.0.0
Syntax

public static void WriteImage(
	this WriteableBitmap bm,
	Image img,
	Rect sourceRect,
	Rect targetRect,
	HighBitScaleMode mode
)

Parameters

bm
Type: System.Windows.Media.ImagingWriteableBitmap
The writeable bmData to copy to.
img
Type: Stemmer.CvbImage
The CVB image to copy from.
sourceRect
Type: Stemmer.CvbRect
Region to copy from in pixels.
targetRect
Type: Stemmer.CvbRect
Region to copy to in pixels.
mode
Type: Stemmer.CvbHighBitScaleMode
treatment for images with more than 8 bits per pixel

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WriteableBitmap. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also

Reference