CrImage::RGBAImage
Inherits CrImage::Format::WebP < CrImage::Format::JPEG < CrImage::Operation::MaskApply < CrImage::Format::Save < CrImage::Operation::VerticalBlur < CrImage::Operation::Pad < CrImage::Operation::Rotate < CrImage::Operation::HorizontalBlur < CrImage::Operation::HistogramEqualize < CrImage::Operation::GaussianBlur < CrImage::Operation::Draw < CrImage::Operation::Crop < CrImage::Operation::Contrast < CrImage::Operation::ChannelSwap < CrImage::Operation::Brightness < CrImage::Operation::BoxBlur < CrImage::Operation::BilinearResize < CrImage::Format::PNG < CrImage::Format::PPM < CrImage::Image < Reference < Object
An image with red, green, blue, and alpha color channels (i.e. a color image). This image type is likely the one read from and written to file (or IO).
Constructors
Read image_data as JPEG encoded bytes
Construct an Image from reading in bytes from io
Read image_data and PNG encoded bytes
Construct an Image by reading bytes from io
Read image_data as PPM encoded bytes
Read bytes from io as PPM encoded
Read image_data as WebP encoded bytes
Read bytes from io as WebP encoded
Instance methods
Return the channel corresponding to channel_type
Set the corresponding channel_type with channel
Run provided block with the ChannelType::Red, ChannelType::Green, and ChannelType::Blue channels.
Run provided block with the ChannelType::Red, ChannelType::Green, and ChannelType::Blue channels.
Convert color image to GrayscaleImage, using the NTSC formula as default values.
Becomes