DrawingExtensionsDrawImage Method (Graphics, Image, Rect, Rect, HighBitScaleMode)

CVB.Net Documentation
Draw a Image object into a Graphics object.

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

public static void DrawImage(
	this Graphics dc,
	Image img,
	Rect sourceRect,
	Rect targetRect,
	HighBitScaleMode mode
)

Parameters

dc
Type: System.DrawingGraphics
Graphics object to paint to
img
Type: Stemmer.CvbImage
Image to paint
sourceRect
Type: Stemmer.CvbRect
Subsection of the image to paint
targetRect
Type: Stemmer.CvbRect
Rectangle in the target dc to paint to
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 Graphics. 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).
Exceptions

ExceptionCondition
ArgumentNullExceptionIf dc is null
See Also

Reference