Struct adi_gpu_base::Graphic [] [src]

pub struct Graphic { /* fields omitted */ }

A graphic (image)

Methods

impl Graphic
[src]

[src]

Convert self into a BGRA graphic.

[src]

Convert self into a RGBA graphic.

[src]

Get the graphic as a slice (w, h, [pixels])

[src]

Get the graphic as a slice (w, h, [r, g, b, a])

Trait Implementations

impl AsRef<Graphic> for Graphic
[src]

[src]

Performs the conversion.

impl Clone for Graphic
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Graphic

impl Sync for Graphic