# rmp::ui::Picture

> Anything rmp::ui can show.

Source: https://omardev29.github.io/rmp-docs/reference/classes/rmp-ui-Picture.html

struct `#include <rmp/ui.h>` [include/rmp/ui.h:181](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L181-L217)

struct Picture

Anything [`rmp::ui`](https://omardev29.github.io/rmp-docs/reference/namespaces/rmp-ui.html) can show. See above.

### `texture`, `sheet`, `source`

rmp::Texture texture

rmp::SpriteSheet sheet

Rectangle source{}

field [include/rmp/ui.h:184](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L184)

The pixels, and the part of them that is this picture. Normally you do not set these yourself: one of the constructors below does.

`texture`: A loose texture

`sheet`: Or an Aseprite sheet, which owns its texture

`source`: {0,0,0,0} = the whole texture

### `left`, `top`, `right`, `bottom`, `slice_scale`

float left = 0

float top = 0

float right = 0

float bottom = 0

float slice_scale = 0

field [include/rmp/ui.h:189](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L189)

Nine-slice margins, in source pixels, and the size of one source pixel in design units (0 = 1). All four 0: the picture simply stretches.

### `Picture`

Picture(rmp::Texture whole)

Picture(rmp::Texture atlas, Rectangle part)

Picture(const rmp::Sprite &sprite)

Picture(const NineSlice &nine)

function [include/rmp/ui.h:199](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L199)

The whole texture.

### `empty`

bool empty() const

function [include/rmp/ui.h:212](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L212)

True when there is nothing to draw: no texture, or one that did not load.

### `size`

Vector2 size() const

function [include/rmp/ui.h:214](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L214)

The size of the picture in source pixels: its part, or the whole texture.

### `sliced`

bool sliced() const

function [include/rmp/ui.h:216](https://github.com/omardev29/raylib_multiplatform/blob/982bf2a1e307c49776bff84211260703b8de6895/include/rmp/ui.h#L216)

True when it has nine-slice margins.
