class Pluto::RGBAImage
- Pluto::RGBAImage
- Pluto::Image
- Reference
- Object
Included Modules
- Pluto::Format::JPEG
- Pluto::Format::PNG
- Pluto::Format::PPM
- Pluto::Format::WebP
- Pluto::Operation::BilinearResize
- Pluto::Operation::BoxBlur
- Pluto::Operation::Brightness
- Pluto::Operation::ChannelSwap
- Pluto::Operation::Contrast
- Pluto::Operation::Crop
- Pluto::Operation::GaussianBlur
- Pluto::Operation::HorizontalBlur
- Pluto::Operation::VerticalBlur
Defined in:
pluto/rgba_image.crConstructors
-
.from_jpeg(image_data : Bytes) : self
This is the preferred, most performant JPEG overload with the least memory consumption.
-
.from_jpeg(io : IO) : self
This is a less preferred JPEG overload.
-
.from_png(image_data : Bytes) : self
This is the preferred, most performant PNG overload with the least memory consumption.
-
.from_png(io : IO) : self
This is a less preferred PNG overload.
- .from_ppm(image_data : Bytes) : self
- .from_ppm(io : IO) : self
-
.from_webp(image_data : Bytes) : self
This is the preferred, most performant WebP overload with the least memory consumption.
-
.from_webp(io : IO) : self
This is a less preferred WebP overload.
- .new(red : Array(UInt8), green : Array(UInt8), blue : Array(UInt8), alpha : Array(UInt8), width : Int32, height : Int32)
Instance Method Summary
- #[](channel_type : ChannelType) : Array(UInt8)
- #[]=(channel_type : ChannelType, channel : Array(UInt8)) : Array(UInt8)
- #alpha : Array(UInt8)
- #alpha=(alpha : Array(UInt8))
- #blue : Array(UInt8)
- #blue=(blue : Array(UInt8))
- #clone : RGBAImage
- #each_channel(&) : Nil
- #green : Array(UInt8)
- #green=(green : Array(UInt8))
- #height : Int32
- #height=(height : Int32)
- #red : Array(UInt8)
- #red=(red : Array(UInt8))
- #size : Int32
-
#to_gray(red_multiplier : Float = 0.299, green_multiplier : Float = 0.587, blue_multiplier : Float = 0.114) : GrayscaleImage
Convert color image to grayscale one, using the NTSC formula as default values.
- #width : Int32
- #width=(width : Int32)
Instance methods inherited from module Pluto::Operation::Crop
crop(x : Int32, y : Int32, new_width : Int32, new_height : Int32) : self
crop,
crop!(x : Int32, y : Int32, new_width : Int32, new_height : Int32) : self
crop!
Instance methods inherited from module Pluto::Operation::VerticalBlur
vertical_blur(value : Int32) : self
vertical_blur,
vertical_blur!(value : Int32) : self
vertical_blur!
Instance methods inherited from module Pluto::Operation::HorizontalBlur
horizontal_blur(value : Int32) : self
horizontal_blur,
horizontal_blur!(value : Int32) : self
horizontal_blur!
Instance methods inherited from module Pluto::Operation::GaussianBlur
gaussian_blur(value : Int32) : self
gaussian_blur,
gaussian_blur!(value : Int32) : self
gaussian_blur!
Instance methods inherited from module Pluto::Operation::Contrast
contrast(value : Float64) : self
contrast,
contrast!(value : Float64) : self
contrast!
Instance methods inherited from module Pluto::Operation::ChannelSwap
channel_swap(a : ChannelType, b : ChannelType) : self
channel_swap,
channel_swap!(a : ChannelType, b : ChannelType) : self
channel_swap!
Instance methods inherited from module Pluto::Operation::Brightness
brightness(value : Float64) : self
brightness,
brightness!(value : Float64) : self
brightness!
Instance methods inherited from module Pluto::Operation::BoxBlur
box_blur(value : Int32) : self
box_blur,
box_blur!(value : Int32) : self
box_blur!
Instance methods inherited from module Pluto::Operation::BilinearResize
bilinear_resize(width : Int32, height : Int32) : self
bilinear_resize,
bilinear_resize!(width : Int32, height : Int32) : self
bilinear_resize!
Instance methods inherited from module Pluto::Format::WebP
check_webp(*args, **options)check_webp(*args, **options, &) check_webp, to_webp(io : IO) : Nil to_webp
Instance methods inherited from module Pluto::Format::PPM
to_ppm(io : IO) : Nil
to_ppm
Instance methods inherited from module Pluto::Format::PNG
check_png(*args, **options)check_png(*args, **options, &) check_png, to_png(io : IO) : Nil to_png
Instance methods inherited from module Pluto::Format::JPEG
check_jpeg(*args, **options)check_jpeg(*args, **options, &) check_jpeg, to_jpeg(io : IO, quality : Int32 = 100) : Nil to_jpeg
Instance methods inherited from class Pluto::Image
[](channel_type : ChannelType) : Array(UInt8)
[],
[]=(channel_type : ChannelType, channel : Array(UInt8)) : Array(UInt8)
[]=,
alpha : Array(UInt8)
alpha,
blue : Array(UInt8)
blue,
each_channel(& : Array(UInt8), ChannelType -> Nil) : Nil
each_channel,
green : Array(UInt8)
green,
height : Int32
height,
red : Array(UInt8)
red,
size : Int32
size,
width : Int32
width
Constructor Detail
This is the preferred, most performant JPEG overload with the least memory consumption.
This is the preferred, most performant PNG overload with the least memory consumption.
This is the preferred, most performant WebP overload with the least memory consumption.
Instance Method Detail
Convert color image to grayscale one, using the NTSC formula as default values.