    # File lib/RMagick.rb, line 117
        def to_s
            str = ''
            if @width > 0
              fmt = @width.truncate == @width ? "%d" : "%.2f"
              str << sprintf(fmt, @width)
              str << '%' if @flag == PercentGeometry
            end

            if (@width > 0 && @flag != PercentGeometry) || (@height > 0)
              str << 'x'
            end

            if @height > 0
              fmt = @height.truncate == @height ? "%d" : "%.2f"
              str << sprintf(fmt, @height)
              str << '%' if @flag == PercentGeometry
            end
            str << sprintf("%+d%+d", @x, @y) if (@x != 0 || @y != 0)
            if @flag != PercentGeometry
              str << FLAGS[@flag.to_i]
            end
            str
        end