# ImageProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-imageprops/

**trait** · [`ferroui-view`](/docs/0.5.0/api/ferroui-view/) · v0.5.0

```rust
trait ImageProps: ElementBuilder
```

The properties and routed events of `Image`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4384)

## Members

- [`source`](#function-source)
- [`blend_mode`](#function-blend_mode)
- [`stretch`](#function-stretch)
- [`stretch_direction`](#function-stretch_direction)

<a id="function-source"></a>

### source

```rust
fn source<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::IImage>>, M>) -> Self
```

Sets `Image::source_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4386)

<a id="function-blend_mode"></a>

### blend_mode

```rust
fn blend_mode<M>(self: Self, value: impl IntoProp<ferroui_base::media::imaging::BitmapBlendingMode, M>) -> Self
```

Sets `Image::blend_mode_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4391)

<a id="function-stretch"></a>

### stretch

```rust
fn stretch<M>(self: Self, value: impl IntoProp<ferroui_base::media::Stretch, M>) -> Self
```

Sets `Image::stretch_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4396)

<a id="function-stretch_direction"></a>

### stretch_direction

```rust
fn stretch_direction<M>(self: Self, value: impl IntoProp<ferroui_base::media::StretchDirection, M>) -> Self
```

Sets `Image::stretch_direction_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4401)

## Trait implementations

- [`ImageProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-imageprops/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
