pub fn alpha_channel(&self) -> Image {
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).alpha_channel)(obj_data);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Image::new_from_rc(t);
            } else {
                ret_val = Image::new_from_owned(t);
            }
            ret_val
        }
    }
///
/// Returns the alpha channel of the image as a new grayscale QImage in which
/// each pixel's red, green, and blue values are given the alpha value of the
/// original image. The color depth of the returned image is 8-bit.
///
/// You can see an example of use of this function in QPixmap's
/// [alphaChannel()](QPixmap::)
/// , which works in the same way as
/// this function on QPixmaps.
///
/// Most usecases for this function can be replaced with QPainter and
/// using composition modes.
///
/// Note this returns a color-indexed image if you want the alpha channel in
/// the alpha8 format instead use convertToFormat(Format_Alpha8) on the source
/// image.
///
/// **Warning**: This is an expensive function.
///
/// **See also:** [`set_alpha_channel()`]
/// [`has_alpha_channel()`]
/// [`convert_to_format()`]
/// {QPixmap#Pixmap Information}{Pixmap}
/// {QImage#Image Transformations}{Image Transformations}
Returns the alpha channel of the image as a new grayscale QImage in which
each pixel's red, green, and blue values are given the alpha value of the
original image. The color depth of the returned image is 8-bit.

You can see an example of use of this function in QPixmap's
[alphaChannel()](QPixmap::)
, which works in the same way as
this function on QPixmaps.

Most usecases for this function can be replaced with QPainter and
using composition modes.

Note this returns a color-indexed image if you want the alpha channel in
the alpha8 format instead use convertToFormat(Format_Alpha8) on the source
image.

Warning**: This is an expensive function.


Returns the alpha channel of the image as a new grayscale QImage in which each pixel ' s red green and blue values are given the alpha value of the original image . The color depth of the returned image is 8 - bit . You can see an example of use of this function in QPixmap ' s [ alphaChannel () ] ( QPixmap :: ) which works in the same way as this function on QPixmaps . Most usecases for this function can be replaced with QPainter and using composition modes . Note this returns a color - indexed image if you want the alpha channel in the alpha8 format instead use convertToFormat ( Format_Alpha8 ) on the source image . Warning ** : This is an expensive function .
pub fn alpha_channel(&self) -> Image {
        let (obj_data, funcs) = self.get_image_obj_funcs();
        unsafe {
            let ret_val = ((*funcs).alpha_channel)(obj_data);
            let t = ret_val;
            let ret_val;
            if t.host_data != ::std::ptr::null() {
                ret_val = Image::new_from_rc(t);
            } else {
                ret_val = Image::new_from_owned(t);
            }
            ret_val
        }
    }
pub fn alpha_channel ( & self ) -> Image { let ( obj_data , funcs ) = self . get_image_obj_funcs ( ) ; unsafe { let ret_val = ( ( * funcs ) . alpha_channel ) ( obj_data ) ; let t = ret_val ; let ret_val ; if t . host_data != :: std :: ptr :: null ( ) { ret_val = Image :: new_from_rc ( t ) ; } else { ret_val = Image :: new_from_owned ( t ) ; } ret_val } }
Returns the alpha channel of the image as a new grayscale QImage in which
each pixel's red, green, and blue values are given the alpha value of the
original image.
Returns the alpha channel of the image as a new grayscale QImage in which each pixel ' s red green and blue values are given the alpha value of the original image .
&self
&self