rmagick 1.9.1 → 1.9.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rmagick might be problematic. Click here for more details.
- data/ChangeLog +5 -0
- data/README.html +8 -8
- data/README.txt +6 -6
- data/configure +89 -23
- data/configure.ac +19 -3
- data/doc/ilist.html +44 -19
- data/doc/image1.html +29 -29
- data/doc/image3.html +42 -35
- data/doc/imageattrs.html +113 -12
- data/ext/RMagick/MANIFEST +1 -1
- data/ext/RMagick/rmagick.h +10 -5
- data/ext/RMagick/rmagick_config.h.in +4 -1
- data/ext/RMagick/rmimage.c +73 -29
- data/ext/RMagick/rmmain.c +16 -2
- data/ext/RMagick/rmutil.c +341 -461
- data/lib/RMagick.rb +15 -8
- data/rmagick.gemspec +1 -1
- metadata +2 -2
data/lib/RMagick.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# $Id: RMagick.rb,v 1.
|
1
|
+
# $Id: RMagick.rb,v 1.33 2005/09/13 23:37:21 rmagick Exp $
|
2
2
|
#==============================================================================
|
3
3
|
# Copyright (C) 2005 by Timothy P. Hunter
|
4
4
|
# Name: RMagick.rb
|
@@ -764,12 +764,12 @@ class Image
|
|
764
764
|
attr_accessor :dirty
|
765
765
|
|
766
766
|
def initialize(img, x, y, width, height)
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
767
|
+
if width <= 0 || height <= 0
|
768
|
+
raise ArgumentError, "invalid geometry (#{width}x#{height}+#{x}+#{y})"
|
769
|
+
end
|
770
|
+
if x < 0 || y < 0 || (x+width) > img.columns || (y+height) > img.rows
|
771
|
+
raise RangeError, "geometry (#{width}x#{height}+#{x}+#{y}) exceeds image boundary"
|
772
|
+
end
|
773
773
|
@view = img.get_pixels(x, y, width, height)
|
774
774
|
@img = img
|
775
775
|
@x = x
|
@@ -1422,11 +1422,18 @@ public
|
|
1422
1422
|
# Set same delay for all images
|
1423
1423
|
def delay=(d)
|
1424
1424
|
if Integer(d) < 0
|
1425
|
-
raise ArgumentError, "delay must be greater than 0"
|
1425
|
+
raise ArgumentError, "delay must be greater than or equal to 0"
|
1426
1426
|
end
|
1427
1427
|
each { |f| f.delay = Integer(d) }
|
1428
1428
|
end
|
1429
1429
|
|
1430
|
+
def ticks_per_second=(t)
|
1431
|
+
if Integer(t) < 0
|
1432
|
+
raise ArgumentError, "ticks_per_second must be greater than or equal to 0"
|
1433
|
+
end
|
1434
|
+
each { |f| f.ticks_per_second = Integer(t) }
|
1435
|
+
end
|
1436
|
+
|
1430
1437
|
def dup
|
1431
1438
|
ditto = self.class.new
|
1432
1439
|
each {|img| ditto << img}
|
data/rmagick.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'date'
|
2
2
|
Gem::Specification.new do |s|
|
3
3
|
s.name = %q{rmagick}
|
4
|
-
s.version = "1.9.
|
4
|
+
s.version = "1.9.2"
|
5
5
|
s.date = Date.today.to_s
|
6
6
|
s.summary = %q{RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.}
|
7
7
|
s.description =<<DESCRIPTION
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.3
|
|
3
3
|
specification_version: 1
|
4
4
|
name: rmagick
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.9.
|
7
|
-
date: 2005-09-
|
6
|
+
version: 1.9.2
|
7
|
+
date: 2005-09-15
|
8
8
|
summary: RMagick is an interface between the Ruby programming language and the ImageMagick and GraphicsMagick image processing libraries.
|
9
9
|
require_paths:
|
10
10
|
- lib
|