# BitmapTypeConverter

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-markup-xaml/converters/struct-bitmaptypeconverter/

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

```rust
struct BitmapTypeConverter
```

Converts text to a bitmap: the path of a file or the URI of an asset,
which may be relative to the base URI of the document.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/bitmap_type_converter.rs#L15)

## Members

- [`new`](#function-new)
- [`as_type_converter`](#function-as_type_converter)

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

### new

```rust
fn new() -> ::std::rc::Rc<Self>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/bitmap_type_converter.rs#L67)

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

### as_type_converter

```rust
fn as_type_converter(self: &::std::rc::Rc<Self>) -> ::std::rc::Rc<dyn $crate::converters::TypeConverter>
```

The converter as the type converter contract.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Markup/FerroUI.Markup.Xaml/converters/bitmap_type_converter.rs#L67)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TypeConverter`](/docs/0.5.0/api/ferroui-markup-xaml/converters/trait-typeconverter/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- `PartialEq`

## Availability

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