abstract class CrImage::Image
 
  - CrImage::Image
- Reference
- Object
Overview
Common base class for GrayscaleImage and RGBAImage. All Images are readable and saveable
to the filesystem or IO stream.
Direct Known Subclasses
Defined in:
cr-image/image.crInstance Method Summary
- 
        #[](channel_type : ChannelType) : Array(UInt8)
        
          Get the Array(UInt8)corresponding tochannel_type)
- 
        #[]=(channel_type : ChannelType, channel : Array(UInt8)) : Array(UInt8)
        
          Set the Array(UInt8)corresponding tochannel_type) tochannel
- 
        #alpha : Array(UInt8)
        
          Return the alpha channel 
- 
        #blue : Array(UInt8)
        
          Return the blue channel 
- 
        #each_channel(& : Array(UInt8), ChannelType -> Nil) : Nil
        
          Run provided block on each channel supported by this image. 
- 
        #each_color_channel(& : Array(UInt8), ChannelType -> Nil) : Nil
        
          Run provided block on each channel supported by this image. 
- 
        #green : Array(UInt8)
        
          Return the green channel 
- 
        #height : Int32
        
          Height of image 
- 
        #red : Array(UInt8)
        
          Return the red channel 
- #size : Int32
- 
        #width : Int32
        
          Width of image 
Macro Summary
Instance Method Detail
        abstract 
        def [](channel_type : ChannelType) : Array(UInt8)
        #
      
      
        Get the Array(UInt8) corresponding to channel_type)
        abstract 
        def []=(channel_type : ChannelType, channel : Array(UInt8)) : Array(UInt8)
        #
      
      
        Set the Array(UInt8) corresponding to channel_type) to channel
        abstract 
        def each_channel(& : Array(UInt8), ChannelType -> Nil) : Nil
        #
      
      
        Run provided block on each channel supported by this image.
        abstract 
        def each_color_channel(& : Array(UInt8), ChannelType -> Nil) : Nil
        #
      
      
        Run provided block on each channel supported by this image.