UtilIconProCreateIcon(Image, Boolean, Int32) Method

Creates a icon from the specified Image.

Definition

Namespace: DevCase.ThirdParty.IconPro
Assembly: 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 MemoryStream CreateIcon(
	Image img,
	bool usePngCompression,
	params int[] squareSizes
)

Parameters

img  Image
The source Image.
usePngCompression  Boolean
If set to , use PNG compression.
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.

Return Value

MemoryStream
A MemoryStream that contains the raw icon data. Save the stream to disk to create a icon file.

Remarks

Note: Some functionalities of this assembly may require to install one or all of the listed libraries:

https://github.com/HerbertLausmann/HL.IconPro/releases

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also