/// Read only layers that contain rgba channels. Skips any other channels in the layer.
/// The alpha channel will contain the value `1.0` if no alpha channel can be found in the image.
///
/// Using two closures, define how to store the pixels.
/// The first closure creates an image, and the second closure inserts a single pixel.
/// The type of the pixel can be defined by the second closure;
/// it must be a tuple containing four values, each being either `f16`, `f32`, `u32` or `Sample`.
///
/// Throws an error for images with deep data or subsampling.
/// Use `specific_channels` or `all_channels` if you want to read something other than rgba.
Read only layers that contain rgba channels. Skips any other channels in the layer.
The alpha channel will contain the value `1.0` if no alpha channel can be found in the image.

Using two closures, define how to store the pixels.
The first closure creates an image, and the second closure inserts a single pixel.

Throws an error for images with deep data or subsampling.
Use `specific_channels` or `all_channels` if you want to read something other than rgba.
Read only layers that contain rgba channels . Skips any other channels in the layer . The alpha channel will contain the value ` 1 . 0 ` if no alpha channel can be found in the image . Using two closures define how to store the pixels . The first closure creates an image and the second closure inserts a single pixel . Throws an error for images with deep data or subsampling . Use ` specific_channels ` or ` all_channels ` if you want to read something other than rgba .
pub fn rgba_channels<R,G,B,A, Create, Set, Pixels>(
        self, create_pixels: Create, set_pixel: Set
    ) -> CollectPixels<
        ReadOptionalChannel<ReadRequiredChannel<ReadRequiredChannel<ReadRequiredChannel<NoneMore, R>, G>, B>, A>,
        (R, G, B, A), Pixels, Create, Set
    >
        where
            R: FromNativeSample, G: FromNativeSample, B: FromNativeSample, A: FromNativeSample,
            Create: Fn(Vec2<usize>, &RgbaChannels) -> Pixels,
            Set: Fn(&mut Pixels, Vec2<usize>, (R,G,B,A)),
    {
        self.specific_channels()
            .required("R").required("G").required("B")
            .optional("A", A::from_f32(1.0))
            .collect_pixels(create_pixels, set_pixel)
    }
pub fn rgba_channels < R , G , B , A , Create , Set , Pixels > ( self , create_pixels : Create , set_pixel : Set ) -> CollectPixels < ReadOptionalChannel < ReadRequiredChannel < ReadRequiredChannel < ReadRequiredChannel < NoneMore , R > , G > , B > , A > , ( R , G , B , A ) , Pixels , Create , Set > where R : FromNativeSample , G : FromNativeSample , B : FromNativeSample , A : FromNativeSample , Create : Fn ( Vec2 < usize > , & RgbaChannels ) -> Pixels , Set : Fn ( & mut Pixels , Vec2 < usize > , ( R , G , B , A ) ) , { self . specific_channels ( ) . required ( " " ) . required ( " " ) . required ( " " ) . optional ( " " , A :: from_f32 ( 1.0 ) ) . collect_pixels ( create_pixels , set_pixel ) }
Read only layers that contain rgba channels.
Read only layers that contain rgba channels .
self
create_pixels
Create
set_pixel
Set