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
)
<ExtensionAttribute>
Public Shared Function ResizeImage (
stream As Stream,
targetWidth As Integer,
targetHeight As Integer
) As Stream
public:
[ExtensionAttribute]
static Stream^ ResizeImage(
Stream^ stream,
int targetWidth,
int targetHeight
)
[<ExtensionAttribute>]
static member ResizeImage :
stream : Stream *
targetWidth : int *
targetHeight : int -> Stream
Parameters
- stream
- Type: System.IOStream
Stream containing the image. - targetWidth
- Type: SystemInt32
Target width - targetHeight
- Type: SystemInt32
Target height
Return Value
Type:
StreamResized 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