> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/new-udimage.md).

# New-UDImage

New-UDImage muestra una imagen en un panel de PowerShell Universal desde una URL o una ruta de fichero local, con altura, anchura y clase CSS configurables.

### Sinopsis

Un componente de imagen.

### Sintaxis

```powershell
New-UDImage [-Id <String>] [-Url <String>] [-Height <Int32>] [-Width <Int32>] [-Attributes <Hashtable>] [-ClassName <String>] [<CommonParameters>]

New-UDImage [-Id <String>] [-Path <String>] [-Height <Int32>] [-Width <Int32>] [-Attributes <Hashtable>] [-ClassName <String>] [<CommonParameters>]
```

### Descripción

Un componente de imagen.

### Parámetros

#### -Id

El ID de este componente.

```
Required?                    false
Position?                    named
Default value                ([Guid]::NewGuid())
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Url

La URL de la imagen.

```
Required?                    false
Position?                    named
Default value                https://cdnweb.devolutions.net/web/common/logos/powershell-universal-logo.svg
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Path

La ruta a una imagen local.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Height

La altura en píxeles.

```
Required?                    false
Position?                    named
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Width

La anchura en píxeles.

```
Required?                    false
Position?                    named
Default value                0
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -Attributes

Atributos adicionales que aplicar a la etiqueta img.

```
Required?                    false
Position?                    named
Default value                @{}
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### -ClassName

Una clase CSS que aplicar a la imagen.

```
Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false
```

#### Parámetros comunes

Este cmdlet admite los parámetros comunes: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable y OutVariable. Para obtener más información, consulte [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

### Salidas

### Ejemplos

#### Ejemplo 1: imagen básica

```powershell
New-UDImage -Url "https://cdnweb.devolutions.net/web/common/logos/powershell-universal-logo.svg"
```

Muestra una imagen.

#### Ejemplo 2: imagen local

```powershell
$Image = Get-ChildItem "$PSScriptRoot\*.png" | Select-Object -First 1
New-UDImage -Path ($Image.FullName)
```

Muestra una imagen local.

#### Ejemplo 3: imagen con altura y anchura

```powershell
New-UDImage -Url "https://cdnweb.devolutions.net/web/common/logos/powershell-universal-logo.svg" -Height 100 -Width 100
```

Muestra una imagen con una altura y una anchura.

#### Ejemplo 4: imagen con estilo

```powershell
New-UDImage -Url "https://cdnweb.devolutions.net/web/common/logos/powershell-universal-logo.svg" -Attributes @{
   style = @{
       borderRadius = '50%'
   }
}
```

Muestra una imagen con un atributo de estilo.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.devolutions.net/powershell-universal/es/comandos-de-powershell/new-udimage.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
