class DYI::Shape::Image
@since 1.0.0
Attributes
file_path[R]
Public Class Methods
new(left_top, width, height, file_path, options={})
click to toggle source
@param [Coordinate] left_top a left-top coordinate of the image @param [Length] width width of the image @param [Length] heigth heigth of the image @param [String] file_path
a file path of the image @option options [Painting] :painting painting status of this shape @option options [String] :description the description of this shape @option options [String] :title the title of this shape
Calls superclass method
DYI::Shape::Rectangle::new
# File lib/dyi/shape/base.rb, line 748 def initialize(left_top, width, height, file_path, options={}) super(left_top, width, height, options) @file_path = file_path end
Public Instance Methods
has_uri_reference?()
click to toggle source
@return [Boolean] whether the element has a URI reference
# File lib/dyi/shape/base.rb, line 754 def has_uri_reference? true end
write_as(formatter, io=$>)
click to toggle source
# File lib/dyi/shape/base.rb, line 758 def write_as(formatter, io=$>) formatter.write_image(self, io, &(block_given? ? Proc.new : nil)) end