Method: FPDF#Rect
- Defined in:
- lib/fpdf.rb
#Rect(x, y, w, h, style = '') ⇒ Object
400 401 402 403 404 405 406 407 408 409 410 |
# File 'lib/fpdf.rb', line 400 def Rect(x, y, w, h, style='') # Draw a rectangle if style=='F' op='f' elsif style=='FD' or style=='DF' op='B' else op='S' end out(sprintf('%.2f %.2f %.2f %.2f re %s', x*@k,(@h-y)*@k,w*@k,-h*@k,op)) end |