MapServiceExtensionsCreateImage Method (Size, Color) |
Renders an image filled with a given color.
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 Image CreateImage(
this Size size,
Color color
)
<ExtensionAttribute>
Public Shared Function CreateImage (
size As Size,
color As Color
) As Image
public:
[ExtensionAttribute]
static Image^ CreateImage(
Size size,
Color color
)
[<ExtensionAttribute>]
static member CreateImage :
size : Size *
color : Color -> Image
Parameters
- size
- Type: System.DrawingSize
Size of the image to return. - color
- Type: System.DrawingColor
Color to fill the image with.
Return Value
Type:
ImageRendered image.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Size. 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