OSDN Git Service

import all source code
[pettanr/pettanr.git] / lib / DMagick.rb
diff --git a/lib/DMagick.rb b/lib/DMagick.rb
new file mode 100644 (file)
index 0000000..2745468
--- /dev/null
@@ -0,0 +1,41 @@
+module Magick
+  class Image
+    def initialize bindata
+      @bindata = bindata
+    end
+    
+    def self.from_blob bindata
+      [Magick::Image.new(bindata), Magick::Image.new(bindata)]
+    end
+    
+    def to_blob
+      @bindata
+    end
+    
+    def resize w,h
+      self
+    end
+    
+    def columns
+      100
+    end
+    
+    def rows
+      100
+    end
+    
+    def format
+      'png'
+    end
+    
+    def flip
+      self
+    end
+    
+    def flop
+      self
+    end
+    
+  end
+  
+end