OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
pass test: ResourcePicture.store
[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)]
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 format=(e)
32
end
33
34
def flip
35
self
36
end
37
38
def flop
39
self
40
end
41
42
def filesize
43
1024
44
end
45
end
46
47
end