UtilIconLibCreateIcon Method
Creates a icon object from the specified image file.
Namespace: DevCase.ThirdParty.IconLibAssembly: DevCase.net48.ThirdParty.IconLib (in DevCase.net48.ThirdParty.IconLib.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static SingleIcon CreateIcon(
string filepath,
IconOutputFormat format = 127
)
Public Shared Function CreateIcon (
filepath As String,
Optional format As IconOutputFormat = 127
) As SingleIcon
Dim filepath As String
Dim format As IconOutputFormat
Dim returnValue As SingleIcon
returnValue = UtilIconLib.CreateIcon(filepath,
format)
public:
static SingleIcon^ CreateIcon(
String^ filepath,
IconOutputFormat format = 127
)
static member CreateIcon :
filepath : string *
?format : IconOutputFormat
(* Defaults:
let _format = defaultArg format 127
*)
-> SingleIcon
No code example is currently available or this language may not be supported.
- filepath String
-
The source image filepath.
- format IconOutputFormat (Optional)
-
The icon format.
SingleIcon
The resulting
SingleIcon.
This is a code example.
No code example is currently available or this language may not be supported.
Dim iconFile As IconLib.SingleIcon = CreateIcon("C:\Image.ico", IconLib.IconOutputFormat.All)
For Each iconLayer As IconLib.IconImage In iconFile
PictureBox1.BackgroundImage = iconLayer.Icon.ToBitmap()
Debug.WriteLine(iconLayer.Icon.Size.ToString())
Application.DoEvents()
Threading.Thread.Sleep(750)
Next iconLayer
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.