Click or drag to resize

ImageExtensionsResizeImage Method

Resizes an image to a specific size.

Namespace:  Ptv.XServer.Controls.Map.Tools
Assembly:  Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax
public static Stream ResizeImage(
	this Stream stream,
	int targetWidth,
	int targetHeight
)

Parameters

stream
Type: System.IOStream
Stream containing the image.
targetWidth
Type: SystemInt32
Target width
targetHeight
Type: SystemInt32
Target height

Return Value

Type: Stream
Resized image.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Stream. 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