class

CrImage::Image

Inherits Reference < Object

Common base class for GrayscaleImage and RGBAImage. All Images are readable and saveable to the filesystem or IO stream.

Instance methods

[](channel_type : ChannelType) : Array(UInt8)

Get the Array(UInt8) corresponding to channel_type)

Source
[]=(channel_type : ChannelType, channel : Array(UInt8)) : Array(UInt8)

Set the Array(UInt8) corresponding to channel_type) to channel

Source
alpha

Return the alpha channel

Source
blue

Return the blue channel

Source
each_channel

Run provided block on each channel supported by this image.

Source
each_color_channel

Run provided block on each channel supported by this image.

Source
green

Return the green channel

Source
height

Height of image

Source
red

Return the red channel

Source
size

Size (total pixels) in image (width * height)

Source
width

Width of image

Source

Macros

subsclasses_include(mod)
Source