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
Overview
Ruby/GD2 – Ruby binding for gd 2 graphics library
Copyright © 2005 Robert Leslie, 2010 J Smith
This file is part of Ruby/GD2.
Ruby/GD2 is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Defined Under Namespace
Modules: GD2FFI Classes: Canvas, Color, Font, Image, LibraryError, Palette
Constant Summary collapse
- VERSION =
'0.0.3'.freeze
- 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