Module: Pikl

Defined in:
lib/pikl/version.rb,
lib/pikl.rb,
lib/pikl/ext.rb,
lib/pikl/color.rb,
lib/pikl/const.rb,
lib/pikl/image.rb,
lib/pikl/errors.rb,
lib/pikl/filter.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Ext, VERSION Classes: Color, Image, ImageProcessException, ParameterException

Constant Summary collapse

JPEG =
1
JPG =
JPEG
PNG =
2
BITMAP =
3
BMP =
BITMAP
ANGLE000 =
0
ANGLE090 =
1
ANGLE180 =
2
ANGLE270 =
3
SAMPLE_NN =

nearest neighbor

1
SAMPLE_BL =

bilinear

2
SAMPLE_BC =

bicubic

3
SAMPLE_PA =

pixcel average(reduce only)

4
SAMPLE_LZ =

lanczos

5
SAMPLES =
{
  :nearest_neighbor => SAMPLE_NN,
  :bilinear => SAMPLE_BL,
  :bicubic => SAMPLE_BC,
  :pixcel_averate => SAMPLE_PA,
  :lanczos => SAMPLE_LZ,
  :nn => SAMPLE_NN,
  :bl => SAMPLE_BL,
  :bc => SAMPLE_BC,
  :pa => SAMPLE_PA,
  :lz => SAMPLE_LZ,
}
ROTATE_ANGLE =
{
  0   => ANGLE000,
  90  => ANGLE090,
  180 => ANGLE180,
  270 => ANGLE270,
  360 => ANGLE000,
}
EXTENSIONS_FORMATS =
{
  "jpeg" => JPEG,
  "jpg"  => JPEG,
  "png"  => PNG,
  "bmp"  => BITMAP,
}
EXTENSIONS =
EXTENSIONS_FORMATS.keys
FORMATS =
EXTENSIONS_FORMATS.values.uniq
PIX_LIMIT =
6000
DEFAULT_IMAGE =

dummy image … umm

''
COLORSPACE =

COLORSPACE

{
  :GRAY => 2,
  :RGB  => 3,
  :CMYK => 6
}
COLORMODEL =

COLORMODEL

{
  :gray    => 0,
  :red     => 1,
  :green   => 2,
  :blue    => 3,
  :cyan    => 4,
  :magenta => 5,
  :yellow  => 6,
  :black   => 7
}
DITHER =

dither-type

{
  :non => 0,
  :floydsteinberg => 1,
  :stucci => 2,
  :sierra => 3,
  :jajuni => 4
}
FOCUS =

focus-type

{
  :detail => 0,
  :focus  => 1,
  :edges  => 2
}
EMBOSS =

emboss-type

{
  :emboss    => 0,
  :heavy     => 1,
  :light     => 2,
  :laplacian => 3
}
GRAY =

gray-type

{
  :nrm => 0,
  :med => 1,
  :ave => 2
}
WAVE =

wave-type

{
  :horz => 0,
  :vert => 1,
  :both => 2
}
PATTERN =

pattern-type

{
  :p_hexagon => 0,
  :p_diamond => 1,
  :p_circle  => 2,
  :p_brick   => 3
}
PAINT =

paint-type

{
  :line => 0,
  :ave  => 1
}
TILE =

tile-type

{
  :t_rect    => 0,
  :t_hexagon => 1,
  :t_diamond => 2,
  :t_circle  => 3,
  :t_brick   => 4
}