OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import all source code
[pettanr/pettanr.git]
/
lib
/
DMagick.rb
1
module Magick
2
class Image
3
def initialize bindata
4
@bindata = bindata
5
end
6
7
def self.from_blob bindata
8
[Magick::Image.new(bindata), Magick::Image.new(bindata)]
9
end
10
11
def to_blob
12
@bindata
13
end
14
15
def resize w,h
16
self
17
end
18
19
def columns
20
100
21
end
22
23
def rows
24
100
25
end
26
27
def format
28
'png'
29
end
30
31
def flip
32
self
33
end
34
35
def flop
36
self
37
end
38
39
end
40
41
end