# WriteableBitmapRef

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-xaml-interactions-custom/struct-writeablebitmapref/

**struct** · [`ferroui-xaml-interactions-custom`](/docs/0.5.0/api/ferroui-xaml-interactions-custom/) · v0.5.0

```rust
struct WriteableBitmapRef
```

A writeable bitmap held by a property.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_ref.rs#L17)

## Members

- [`0`](#struct_field-0)
- [`new`](#function-new)
- [`get`](#function-get)
- [`as_image`](#function-as_image)

<a id="struct_field-0"></a>

### 0

```rust
0: std::rc::Rc<ferroui_base::media::imaging::WriteableBitmap>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_ref.rs#L17)

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

### new

```rust
fn new(bitmap: WriteableBitmap) -> Self
```

The handle of `bitmap`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_ref.rs#L21)

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

### get

```rust
fn get(self: &Self) -> &Rc<WriteableBitmap>
```

The shared bitmap.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_ref.rs#L26)

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

### as_image

```rust
fn as_image(self: &Self) -> Rc<dyn IImage>
```

The bitmap as an image (the source of an image control).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Behaviors/FerroUI.Xaml.Interactions.Custom/writeable_bitmap/writeable_bitmap_ref.rs#L31)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`
- `PartialEq`
- `From<Rc<WriteableBitmap>>`
- `Debug`

## Availability

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