Module: GD2

Defined in:
lib/gd2/font.rb,
lib/gd2-ffij.rb,
lib/gd2/color.rb,
lib/gd2/image.rb,
lib/gd2/canvas.rb,
lib/gd2/palette.rb,
lib/gd2/version.rb

Overview

See COPYRIGHT for license details.

Defined Under Namespace

Modules: FFIStruct, GD2FFI Classes: AnimatedGif, Canvas, Color, Font, Image, LibraryError, Palette

Constant Summary collapse

CMP_IMAGE =

Bit flags for Image#compare

1
CMP_NUM_COLORS =

Actual image IS different

2
CMP_COLOR =

Number of Colours in pallette differ

4
CMP_SIZE_X =

Image colours differ

8
CMP_SIZE_Y =

Image width differs

16
CMP_TRANSPARENT =

Image heights differ

32
CMP_BACKGROUND =

Transparent colour

64
CMP_INTERLACE =

Background colour

128
CMP_TRUECOLOR =

Interlaced setting

256
FMT_RAW =

Format flags for Image#gd2

1
FMT_COMPRESSED =
2
MAX_COLORS =

Color constants

256
RGB_MAX =
255
ALPHA_MAX =
127
ALPHA_OPAQUE =
0
ALPHA_TRANSPARENT =
127
GD2_BASE =
File.join(File.dirname(__FILE__), 'gd2')
VERSION =
'0.4.0'.freeze