Imlib2::Filter (Class)

In: imlib2.c  (CVS)
Parent: Object

Methods

alpha   blue   constants   divisors   green   new   new   red   set   set_alpha   set_blue   set_green   set_red  

Public Class methods

Constructor for Imlib2::Filter

Currently just a placeholder.

Return a new Imlib2::Filter

Example:

  filter = Imlib2::Filter.new

Public Instance methods

Set the alpha filter color value and x, y

Example:

  filter.set_alpha x, y, Imlib2::Color::RgbaColor.new 0, 0, 0, 128

Set the blue filter color value and x, y

Example:

  filter.set_blue x, y, Imlib2::Color::RgbaColor.new 0, 0, 64, 128

Set filter constants.

Example:

  filter.set_constants RgbaColor.new 32, 32, 32, 32

Set filter divisors.

Example:

  filter.set_divisors RgbaColor.new 0, 32, 0, 32

Set the green filter color value and x, y

Example:

  filter.set_green x, y, Imlib2::Color::RgbaColor.new 0, 128, 0, 128
red(...)

Set the filter color value and x, y

Example:

  filter.set x, y, Imlib2::Color::RED

Set the alpha filter color value and x, y

Example:

  filter.set_alpha x, y, Imlib2::Color::RgbaColor.new 0, 0, 0, 128

Set the blue filter color value and x, y

Example:

  filter.set_blue x, y, Imlib2::Color::RgbaColor.new 0, 0, 64, 128

Set the green filter color value and x, y

Example:

  filter.set_green x, y, Imlib2::Color::RgbaColor.new 0, 128, 0, 128
set_red(...)

[Validate]