Commit a4eb97c6 authored by heindlalex's avatar heindlalex Committed by mrbean-bremen
Browse files

Add additional "Draw" (to Graphics) without optional parameter.

the recently introduced optional size parameter is causing incompatibilities with our C++ application.
parent 8ee43595
......@@ -438,13 +438,23 @@ namespace Svg
this.Render(renderer);
}
/// <summary>
/// Renders the <see cref="SvgDocument"/> to the specified <see cref="Graphics"/>.
/// </summary>
/// <param name="graphics">The <see cref="Graphics"/> to be rendered to.</param>
/// <exception cref="ArgumentNullException">The <paramref name="graphics"/> parameter cannot be <c>null</c>.</exception>
public void Draw(Graphics graphics)
{
Draw(graphics, null);
}
/// <summary>
/// Renders the <see cref="SvgDocument"/> to the specified <see cref="Graphics"/>.
/// </summary>
/// <param name="graphics">The <see cref="Graphics"/> to be rendered to.</param>
/// <param name="size">The <see cref="SizeF"/> to render the document. If <c>null</c> document is rendered at the default document size.</param>
/// <exception cref="ArgumentNullException">The <paramref name="graphics"/> parameter cannot be <c>null</c>.</exception>
public void Draw(Graphics graphics, SizeF? size = null)
public void Draw(Graphics graphics, SizeF? size)
{
if (graphics == null)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment