UtilIconProCreateIconBitmapEncoder(Image, 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(
Image img,
params int[] squareSizes
)
Public Shared Function CreateIconBitmapEncoder (
img As Image,
ParamArray squareSizes As Integer()
) As IconBitmapEncoder
Dim img As Image
Dim squareSizes As Integer()
Dim returnValue As IconBitmapEncoder
returnValue = UtilIconPro.CreateIconBitmapEncoder(img,
squareSizes)
public:
static IconBitmapEncoder^ CreateIconBitmapEncoder(
Image^ img,
... array<int>^ squareSizes
)
static member CreateIconBitmapEncoder :
img : Image *
squareSizes : int[] -> IconBitmapEncoder
No code example is currently available or this language may not be supported.
- img Image
-
The source Image.
- 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 img 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 img As Image = Image.FromFile(imgPath)
Dim enc As IconBitmapEncoder = CreateIconBitmapEncoder(img, 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.