Struct iup::image::Image
[−]
[src]
pub struct Image(_);
A one-channel image which each pixel is a byte index to a pallet of RGB colors.
The image is meant to be shown on a label, button, toggle, or as a cursor.
See the IUP Image Documentation.
Methods
impl Image
fn set_colors<U>(&mut self, colors: U) -> Image where U: AsRef<[(u8, u8, u8)]>
Sets the pallet of colors to be used by the pixels.
This is a shortcut to the 0
, 1
, 2
, ..., i
attributes.
Panics
Panics if the length of the colors pallet is greater than 256.