Свойство | Тип | Описание | |
---|---|---|---|
FindByScale | |||
FindBySize | |||
GetResources | IEnumerable |
Метод | Описание | |
---|---|---|
FromResource ( string resourceName, |
Loads an icon from an embedded resource of the specified assembly
|
|
FromResource ( string resourceName, |
Loads an icon from a resource in the same assembly as the specified type
|
|
GetFrame ( float scale, Eto.Drawing.Size fittingSize = null ) : |
Gets the frame with the specified scale that can fit into the fittingSize if specified. This can be used to determine which frame should be used to draw to the screen, based on the desired logical pixel scale and final drawn size of the icon. |
|
Icon ( ) : System |
Initializes a new instance of the Eto.Drawing.Icon class with the specified frames. This is used when you want to create an icon with specific bitmap frames at different scales or sizes. |
|
Icon ( IEnumerable |
Initializes a new instance of the Eto.Drawing.Icon class with the specified frames. This is used when you want to create an icon with specific bitmap frames at different scales or sizes. |
|
Icon ( IHandler handler ) : System |
Initializes a new instance of the Icon class with the specified handler
|
|
Icon ( Stream stream ) : System |
Initializes a new instance of the Icon class with the contents of the specified stream
|
|
Icon ( float scale, |
Initializes a new instance of the Eto.Drawing.Icon class with the specified bitmap. This is used when you want to create an icon with a single bitmap frame with the specified logical scale. |
|
Icon ( string fileName ) : System |
Intitializes a new instanc of the Icon class with the contents of the specified fileName
|
Метод | Описание | |
---|---|---|
FindByScale ( float scale ) : |
find based on scale alone, we don't know the final render size
|
|
FindBySize ( float scale, Eto.Drawing.Size fittingSize ) : |
Find based on the fitting pixel size
|
|
GetResources ( string resourceName, |
public static FromResource ( string resourceName, |
||
resourceName | string | Fully qualified name of the resource to load |
assembly | Assembly to load the resource from | |
Результат |
public static FromResource ( string resourceName, |
||
resourceName | string | Full name of the resource in the type's assembly. |
type | Type of the assembly to get the resource. | |
Результат |
public GetFrame ( float scale, Eto.Drawing.Size fittingSize = null ) : |
||
scale | float | Logical scale to find for, 1 for normal size, 2 for retina, etc. |
fittingSize | Eto.Drawing.Size | Fitting size that the icon will be drawn to, if known. |
Результат |
public Icon ( IEnumerable |
||
frames | IEnumerable |
Frames for the icon. |
Результат | System |
public Icon ( IHandler handler ) : System | ||
handler | IHandler | Handler for the icon backend |
Результат | System |
public Icon ( Stream stream ) : System | ||
stream | Stream | Stream to load the content from |
Результат | System |
public Icon ( float scale, |
||
scale | float | Logical pixel scale of the specified bitmap. |
bitmap | Bitmap for the frame. | |
Результат | System |
public Icon ( string fileName ) : System | ||
fileName | string | Name of the file to loat the content from |
Результат | System |