MapServiceExtensionsStreamPng Method |
Encodes an image as a PNG returning the PNG data stream.
Namespace:
Ptv.XServer.Controls.Map.Tools.Reprojection
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static MemoryStream StreamPng(
this Image image
)
<ExtensionAttribute>
Public Shared Function StreamPng (
image As Image
) As MemoryStream
public:
[ExtensionAttribute]
static MemoryStream^ StreamPng(
Image^ image
)
[<ExtensionAttribute>]
static member StreamPng :
image : Image -> MemoryStream
Parameters
- image
- Type: System.DrawingImage
Image to encode as PNG.
Return Value
Type:
MemoryStreamPNG data stream.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Image. 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