Fixes transparency issue.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9974 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
823ac010c5
commit
6bf60e8c20
|
@ -2634,7 +2634,7 @@ class TCPDF
|
||||||
if (!info['trns'].nil? and info['trns'].kind_of?(Array))
|
if (!info['trns'].nil? and info['trns'].kind_of?(Array))
|
||||||
trns='';
|
trns='';
|
||||||
0.upto(info['trns'].length) do |i|
|
0.upto(info['trns'].length) do |i|
|
||||||
trns << info['trns'][i] + ' ' + info['trns'][i] + ' ';
|
trns << ("#{info['trns'][i]} " * 2);
|
||||||
end
|
end
|
||||||
out('/Mask [' + trns + ']');
|
out('/Mask [' + trns + ']');
|
||||||
end
|
end
|
||||||
|
@ -2975,8 +2975,8 @@ class TCPDF
|
||||||
elsif (ct==2)
|
elsif (ct==2)
|
||||||
trns = t[[1].unpack('C')[0], t[3].unpack('C')[0], t[5].unpack('C')[0]]
|
trns = t[[1].unpack('C')[0], t[3].unpack('C')[0], t[5].unpack('C')[0]]
|
||||||
else
|
else
|
||||||
pos=t.include?(0.chr);
|
pos=t.index(0.chr);
|
||||||
if (pos!=false)
|
unless (pos.nil?)
|
||||||
trns = [pos]
|
trns = [pos]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue