UtilIconProCreateIconBitmapEncoder(Bitmap, Int32) Method
Creates a IconBitmapEncoder from the specified Image.
Namespace: DevCase.ThirdParty.IconProAssembly: DevCase.net48.ThirdParty.IconPro (in DevCase.net48.ThirdParty.IconPro.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IconBitmapEncoder CreateIconBitmapEncoder(
Bitmap bmp,
params int[] squareSizes
)
Public Shared Function CreateIconBitmapEncoder (
bmp As Bitmap,
ParamArray squareSizes As Integer()
) As IconBitmapEncoder
Dim bmp As Bitmap
Dim squareSizes As Integer()
Dim returnValue As IconBitmapEncoder
returnValue = UtilIconPro.CreateIconBitmapEncoder(bmp,
squareSizes)
public:
static IconBitmapEncoder^ CreateIconBitmapEncoder(
Bitmap^ bmp,
... array<int>^ squareSizes
)
static member CreateIconBitmapEncoder :
bmp : Bitmap *
squareSizes : int[] -> IconBitmapEncoder
No code example is currently available or this language may not be supported.
- bmp Bitmap
-
The source Bitmap.
- squareSizes Int32
-
The square sizes to include in the icon (eg. 16 = 16x16, 32 = 32x32, etc).
If no value is specified, the size of the source image specified at bmp will be used.
IconBitmapEncoder
The resulting
IconBitmapEncoder.
This is a code example.
No code example is currently available or this language may not be supported.
Dim imgPath As String = "C:\Image.png"
Dim bmp As Bitmap = DirectCast(Bitmap.FromFile(imgPath), Bitmap)
Dim enc As IconBitmapEncoder = CreateIconBitmapEncoder(bmp, 16, 24, 32, 48, 64, 96, 128, 256)
Using output As New FileStream("C:\New Icon.ico", FileMode.CreateNew, FileAccess.Write, FileShare.Read)
enc.Save(output)
End Using
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.