ImageExtensionsGetRegionInclude Method
Gets a region from the specified Image.
Namespace: DevCase.Extensions.ImageExtensionsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[EditorBrowsableAttribute(EditorBrowsableState.Always)]
public static Region GetRegionInclude(
this Image sender,
Color[] colors
)
<ExtensionAttribute>
<EditorBrowsableAttribute(EditorBrowsableState.Always)>
Public Shared Function GetRegionInclude (
sender As Image,
colors As Color()
) As Region
Dim sender As Image
Dim colors As Color()
Dim returnValue As Region
returnValue = sender.GetRegionInclude(colors)
public:
[ExtensionAttribute]
[EditorBrowsableAttribute(EditorBrowsableState::Always)]
static Region^ GetRegionInclude(
Image^ sender,
array<Color>^ colors
)
[<ExtensionAttribute>]
[<EditorBrowsableAttribute(EditorBrowsableState.Always)>]
static member GetRegionInclude :
sender : Image *
colors : Color[] -> Region
No code example is currently available or this language may not be supported.
- sender Image
-
The source Image.
- colors Color
-
The colors to include.
Region
The resulting
Region.
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).
This is a code example that demonstrates how to make a shape transparent Form.
No code example is currently available or this language may not be supported.
Public Class Form1 : Inherits Form
Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Needed to make a custom shaped Form.
Me.FormBorderStyle = FormBorderStyle.None
Me.Width = Me.BackgroundImage.Width
Me.Height = Me.BackgroundImage.Height
' Shape the Form
Dim colors As Color() = {Color.FromArgb(0, 0, 0, 0)}
Me.Region = Me.BackgroundImage.GetRegionInclude(colors)
End Sub
End Class
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.