# ResourceProvider.GetLargeIcon Method

> Gets a System.Windows.Media.Imaging.BitmapSource of the large icon that is associated with an item and specified by an identifier or Scalable Vector Graphics (SVG) stream parameter. The identifier can be the string conversion of an enumeration that is associated with an item (such as RibbonFormattingTab.RibbonItem.TXITEM_Paste). The size of the returned large icon depends on the resolution that is specified by the dpi parameter or a specific framework element. The source of the large image is based on a grid of 32x32 Pixel and a resolution of 96 dpi.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 27.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > ResourceProvider.GetLargeIcon Method
- **2270 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider/getlargeicon-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider/getlargeicon-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider/getlargeicon-method/llms-full.txt

---

### Description

Gets a `System.Windows.Media.Imaging.BitmapSource` of the large icon that is associated with an item and specified by an identifier or Scalable Vector Graphics (SVG) stream parameter. The identifier can be the string conversion of an enumeration that is associated with an item (such as [RibbonFormattingTab.RibbonItem.TXITEM\_Paste](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/ribbonformattingtab/ribbonitem-enumeration/llms-full.txt)). The size of the returned large icon depends on the resolution that is specified by the dpi parameter or a specific framework element. The source of the large image is based on a grid of 32x32 Pixel and a resolution of 96 dpi.

### Syntax

#### GetLargeIcon(string, double)

Gets a System.Windows.Media.Imaging.BitmapSource of the large icon that is associated with the specified identifier in a specific resolution.

```csharp
public static BitmapSource GetLargeIcon(string identifier, double dpi);
```

```vbnet
Public Shared Function GetLargeIcon(identifier As String, dpi As Double) As BitmapSource
```

| Parameter | Description |
|---|---|
| identifier | The identifier of the item that is associated with the requested large icon. |
| dpi | Specifies the resolution that is used to create the requested large icon. |

#### GetLargeIcon(string, double, ResourceProvider.ImageSourceSettings)

Gets a System.Windows.Media.Imaging.BitmapSource of the large icon that is associated with the specified identifier in a specific resolution and additional image source settings.

```csharp
public static BitmapSource GetLargeIcon(string identifier, double dpi, ResourceProvider.ImageSourceSettings settings);
```

```vbnet
Public Shared Function GetLargeIcon(identifier As String, dpi As Double, settings As ResourceProvider.ImageSourceSettings) As BitmapSource
```

| Parameter | Description |
|---|---|
| identifier | The identifier of the item that is associated with the requested large icon. |
| dpi | Specifies the resolution that is used to create the requested large icon. |
| settings | Specifies an [ImageSourceSettings](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider-imagesourcesettings/llms-full.txt) object with additional settings for receiving the large image. |

#### GetLargeIcon(Stream, float)

Gets a large System.Windows.Media.Imaging.BitmapSource icon that is created from a Scalable Vector Graphics (SVG) stream in a specific resolution.

```csharp
public static BitmapSource GetLargeIcon(Stream stream, float dpi);
```

```vbnet
Public Shared Function GetLargeIcon(stream As Stream, dpi As Single) As BitmapSource
```

| Parameter | Description |
|---|---|
| stream | Specifies the Scalable Vector Graphics (SVG) stream that is used to create the requested large icon. |
| dpi | Specifies the resolution that is used to create the requested large icon. |

#### GetLargeIcon(string, FrameworkElement)

Gets a System.Windows.Media.Imaging.BitmapSource of the large icon that is associated with the specified identifier in the resolution of a specific framework element.

```csharp
public static BitmapSource GetLargeIcon(string identifier, FrameworkElement frameworkElement);
```

```vbnet
Public Shared Function GetLargeIcon(identifier As String, frameworkElement As FrameworkElement) As BitmapSource
```

| Parameter | Description |
|---|---|
| identifier | The identifier of the item that is associated with the requested large icon. |
| frameworkElement | Specifies the framework element from where the resolution is determined that is used to create the requested large icon. |

#### GetLargeIcon(string, FrameworkElement, ResourceProvider.ImageSourceSettings)

Gets a System.Windows.Media.Imaging.BitmapSource of the large icon that is associated with the specified identifier in the resolution of a specific framework element and additional image source settings.

```csharp
public static BitmapSource GetLargeIcon(string identifier, FrameworkElement frameworkElement, ResourceProvider.ImageSourceSettings settings);
```

```vbnet
Public Shared Function GetLargeIcon(identifier As String, frameworkElement As FrameworkElement, settings As ResourceProvider.ImageSourceSettings) As BitmapSource
```

| Parameter | Description |
|---|---|
| identifier | The identifier of the item that is associated with the requested large icon. |
| frameworkElement | Specifies the framework element from where the resolution is determined that is used to create the requested large icon. |
| settings | Specifies an [ImageSourceSettings](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider-imagesourcesettings/llms-full.txt) object with additional settings for receiving the large image. |

#### GetLargeIcon(Stream, FrameworkElement)

Gets a large System.Windows.Media.Imaging.BitmapSource icon that is created from a Scalable Vector Graphics (SVG) stream in the resolution of the specified framework element.

```csharp
public static BitmapSource GetLargeIcon(Stream stream, FrameworkElement frameworkElement);
```

```vbnet
Public Shared Function GetLargeIcon(stream As Stream, frameworkElement As FrameworkElement) As BitmapSource
```

| Parameter | Description |
|---|---|
| stream | Specifies the Scalable Vector Graphics (SVG) stream that is used to create the requested large icon. |
| frameworkElement | Specifies the framework element from where the resolution is determined that is used to create the requested large icon. |

### Return Value

A bitmap of the large icon that is assigned to the item. If no large icon is associated with the item, the method returns null.

### Examples

The following example retrieves large icon from the resource provider.

```csharp
var result = TXTextControl.WPF.ResourceProvider.GetLargeIcon("Quarterly report", new System.Windows.FrameworkElement());
Console.WriteLine($"Get Large Icon result: {result}");
```

```vbnet
Dim result = TXTextControl.WPF.ResourceProvider.GetLargeIcon("Quarterly report", New System.Windows.FrameworkElement())
Console.WriteLine($"Get Large Icon result: {result}")
```

### Remarks

An exception is thrown if the instance of the specified `frameworkElement` parameter is not loaded.

---

## Nearby

- **Previous:** [ResourceProvider.GetKeyTip Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider/getkeytip-method/llms-full.txt)
- **Next:** [ResourceProvider.GetSmallIcon Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/resourceprovider/getsmallicon-method/llms-full.txt)
