class CrImage::BlackView(T)

Overview

An implementation of Window, where the value of a point in the window that is off the edge of the underlying Map resolves to zero (or black)

Defined in:

cr-image/window_view.cr

Constructors

Instance Method Summary

Instance methods inherited from class CrImage::Window(T)

[](x : Int32, y : Int32) : T [], half_height : Int32 half_height, half_width : Int32 half_width, height : Int32 height, map : Map(T) map, map_x : Int32 map_x, map_y : Int32 map_y, mean : Float64 mean, size : Int32 size, sum : Float64
sum(& : T, Int32, Int32, self -> T) : Float64
sum
, width : Int32 width

Constructor methods inherited from class CrImage::Window(T)

new(width : Int32, height : Int32, map : CrImage::Map(T), map_x : Int32, map_y : Int32) new

Constructor Detail

def self.new(width, height, map, map_x, map_y) #

[View source]

Instance Method Detail

def [](x : Int32, y : Int32) : T #

[View source]