Version

DrawZoomedImage Method

Renders and scales the specified image in the center of the graphics object.
Syntax
'Declaration
 
Public Sub DrawZoomedImage( _
   ByVal image As Image, _
   ByVal rect As Rectangle, _
   ByVal imgAttributes As ImageAttributes, _
   ByVal zoomFactor As Double _
) 
public void DrawZoomedImage( 
   Image image,
   Rectangle rect,
   ImageAttributes imgAttributes,
   double zoomFactor
)

Parameters

image
Image to render
rect
Rectangle into which the image should be rendered
imgAttributes
ImageAttributes instance or null
zoomFactor
The ZoomFactor that will be applied to the UIElement
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also