Trait gdk_pixbuf::PixbufExt [−][src]
pub trait PixbufExt { fn add_alpha(
&self,
substitute_color: bool,
r: u8,
g: u8,
b: u8
) -> Option<Pixbuf>; fn apply_embedded_orientation(&self) -> Option<Pixbuf>; fn composite(
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType,
overall_alpha: i32
); fn composite_color(
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType,
overall_alpha: i32,
check_x: i32,
check_y: i32,
check_size: i32,
color1: u32,
color2: u32
); fn composite_color_simple(
&self,
dest_width: i32,
dest_height: i32,
interp_type: InterpType,
overall_alpha: i32,
check_size: i32,
color1: u32,
color2: u32
) -> Option<Pixbuf>; fn copy(&self) -> Option<Pixbuf>; fn copy_area(
&self,
src_x: i32,
src_y: i32,
width: i32,
height: i32,
dest_pixbuf: &Pixbuf,
dest_x: i32,
dest_y: i32
); fn fill(&self, pixel: u32); fn flip(&self, horizontal: bool) -> Option<Pixbuf>; fn get_bits_per_sample(&self) -> i32; fn get_byte_length(&self) -> usize; fn get_colorspace(&self) -> Colorspace; fn get_has_alpha(&self) -> bool; fn get_height(&self) -> i32; fn get_n_channels(&self) -> i32; fn get_option(&self, key: &str) -> Option<String>; fn get_rowstride(&self) -> i32; fn get_width(&self) -> i32; fn new_subpixbuf(
&self,
src_x: i32,
src_y: i32,
width: i32,
height: i32
) -> Option<Pixbuf>; fn rotate_simple(&self, angle: PixbufRotation) -> Option<Pixbuf>; fn saturate_and_pixelate(
&self,
dest: &Pixbuf,
saturation: f32,
pixelate: bool
); fn scale(
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType
); fn scale_simple(
&self,
dest_width: i32,
dest_height: i32,
interp_type: InterpType
) -> Option<Pixbuf>; fn set_option(&self, key: &str, value: &str) -> bool; fn get_property_pixel_bytes(&self) -> Option<Bytes>; fn connect_property_bits_per_sample_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_colorspace_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_has_alpha_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_n_channels_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_pixel_bytes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_pixels_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_rowstride_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; fn connect_property_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Required Methods
fn add_alpha(
&self,
substitute_color: bool,
r: u8,
g: u8,
b: u8
) -> Option<Pixbuf>
&self,
substitute_color: bool,
r: u8,
g: u8,
b: u8
) -> Option<Pixbuf>
fn apply_embedded_orientation(&self) -> Option<Pixbuf>
fn composite(
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType,
overall_alpha: i32
)
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType,
overall_alpha: i32
)
fn composite_color(
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType,
overall_alpha: i32,
check_x: i32,
check_y: i32,
check_size: i32,
color1: u32,
color2: u32
)
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType,
overall_alpha: i32,
check_x: i32,
check_y: i32,
check_size: i32,
color1: u32,
color2: u32
)
fn composite_color_simple(
&self,
dest_width: i32,
dest_height: i32,
interp_type: InterpType,
overall_alpha: i32,
check_size: i32,
color1: u32,
color2: u32
) -> Option<Pixbuf>
&self,
dest_width: i32,
dest_height: i32,
interp_type: InterpType,
overall_alpha: i32,
check_size: i32,
color1: u32,
color2: u32
) -> Option<Pixbuf>
fn copy(&self) -> Option<Pixbuf>
fn copy_area(
&self,
src_x: i32,
src_y: i32,
width: i32,
height: i32,
dest_pixbuf: &Pixbuf,
dest_x: i32,
dest_y: i32
)
&self,
src_x: i32,
src_y: i32,
width: i32,
height: i32,
dest_pixbuf: &Pixbuf,
dest_x: i32,
dest_y: i32
)
fn fill(&self, pixel: u32)
fn flip(&self, horizontal: bool) -> Option<Pixbuf>
fn get_bits_per_sample(&self) -> i32
fn get_byte_length(&self) -> usize
fn get_colorspace(&self) -> Colorspace
fn get_has_alpha(&self) -> bool
fn get_height(&self) -> i32
fn get_n_channels(&self) -> i32
fn get_option(&self, key: &str) -> Option<String>
fn get_rowstride(&self) -> i32
fn get_width(&self) -> i32
fn new_subpixbuf(
&self,
src_x: i32,
src_y: i32,
width: i32,
height: i32
) -> Option<Pixbuf>
&self,
src_x: i32,
src_y: i32,
width: i32,
height: i32
) -> Option<Pixbuf>
fn rotate_simple(&self, angle: PixbufRotation) -> Option<Pixbuf>
fn saturate_and_pixelate(&self, dest: &Pixbuf, saturation: f32, pixelate: bool)
fn scale(
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType
)
&self,
dest: &Pixbuf,
dest_x: i32,
dest_y: i32,
dest_width: i32,
dest_height: i32,
offset_x: f64,
offset_y: f64,
scale_x: f64,
scale_y: f64,
interp_type: InterpType
)
fn scale_simple(
&self,
dest_width: i32,
dest_height: i32,
interp_type: InterpType
) -> Option<Pixbuf>
&self,
dest_width: i32,
dest_height: i32,
interp_type: InterpType
) -> Option<Pixbuf>
fn set_option(&self, key: &str, value: &str) -> bool
fn get_property_pixel_bytes(&self) -> Option<Bytes>
fn connect_property_bits_per_sample_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_colorspace_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_has_alpha_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_n_channels_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_pixel_bytes_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_pixels_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_rowstride_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId