Browse Source

Comment fixes

pull/1762/head
Benedikt Schroeder 8 years ago
parent
commit
5b5971aff3
  1. 2
      src/Avalonia.Visuals/Media/DrawingContext.cs
  2. 2
      src/Avalonia.Visuals/Media/Immutable/ImmutableTileBrush.cs
  3. 2
      src/Avalonia.Visuals/Platform/IDrawingContextImpl.cs
  4. 6
      src/Avalonia.Visuals/Rendering/SceneGraph/ImageNode.cs
  5. 2
      src/Windows/Avalonia.Direct2D1/Media/DrawingContextImpl.cs

2
src/Avalonia.Visuals/Media/DrawingContext.cs

@ -69,7 +69,7 @@ namespace Avalonia.Media
/// <param name="opacity">The opacity to draw with.</param>
/// <param name="sourceRect">The rect in the image to draw.</param>
/// <param name="destRect">The rect in the output to draw to.</param>
/// <param name="bitmapInterpolationMode"></param>
/// <param name="bitmapInterpolationMode">The bitmap interpolation mode.</param>
public void DrawImage(IBitmap source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode = default)
{
Contract.Requires<ArgumentNullException>(source != null);

2
src/Avalonia.Visuals/Media/Immutable/ImmutableTileBrush.cs

@ -22,7 +22,7 @@ namespace Avalonia.Media.Immutable
/// How the source rectangle will be stretched to fill the destination rect.
/// </param>
/// <param name="tileMode">The tile mode.</param>
/// <param name="bitmapInterpolationMode">Controls the quality of interpolation.</param>
/// <param name="bitmapInterpolationMode">The bitmap interpolation mode.</param>
protected ImmutableTileBrush(
AlignmentX alignmentX,
AlignmentY alignmentY,

2
src/Avalonia.Visuals/Platform/IDrawingContextImpl.cs

@ -32,7 +32,7 @@ namespace Avalonia.Platform
/// <param name="opacity">The opacity to draw with.</param>
/// <param name="sourceRect">The rect in the image to draw.</param>
/// <param name="destRect">The rect in the output to draw to.</param>
/// <param name="bitmapInterpolationMode">Controls</param>
/// <param name="bitmapInterpolationMode">The bitmap interpolation mode.</param>
void DrawImage(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode = default);
/// <summary>

6
src/Avalonia.Visuals/Rendering/SceneGraph/ImageNode.cs

@ -21,7 +21,7 @@ namespace Avalonia.Rendering.SceneGraph
/// <param name="opacity">The draw opacity.</param>
/// <param name="sourceRect">The source rect.</param>
/// <param name="destRect">The destination rect.</param>
/// <param name="bitmapInterpolationMode">The bitmap scaling mode.</param>
/// <param name="bitmapInterpolationMode">The bitmap interpolation mode.</param>
public ImageNode(Matrix transform, IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode)
: base(destRect, transform, null)
{
@ -59,7 +59,7 @@ namespace Avalonia.Rendering.SceneGraph
public Rect DestRect { get; }
/// <summary>
/// Gets the bitmap scaling mode.
/// Gets the bitmap interpolation mode.
/// </summary>
/// <value>
/// The scaling mode.
@ -74,7 +74,7 @@ namespace Avalonia.Rendering.SceneGraph
/// <param name="opacity">The opacity of the other draw operation.</param>
/// <param name="sourceRect">The source rect of the other draw operation.</param>
/// <param name="destRect">The dest rect of the other draw operation.</param>
/// <param name="bitmapInterpolationMode">The bitmap scaling mode.</param>
/// <param name="bitmapInterpolationMode">The bitmap interpolation mode.</param>
/// <returns>True if the draw operations are the same, otherwise false.</returns>
/// <remarks>
/// The properties of the other draw operation are passed in as arguments to prevent

2
src/Windows/Avalonia.Direct2D1/Media/DrawingContextImpl.cs

@ -103,7 +103,7 @@ namespace Avalonia.Direct2D1.Media
/// <param name="opacity">The opacity to draw with.</param>
/// <param name="sourceRect">The rect in the image to draw.</param>
/// <param name="destRect">The rect in the output to draw to.</param>
/// <param name="bitmapInterpolationMode"></param>
/// <param name="bitmapInterpolationMode">The bitmap interpolation mode.</param>
public void DrawImage(IRef<IBitmapImpl> source, double opacity, Rect sourceRect, Rect destRect, BitmapInterpolationMode bitmapInterpolationMode)
{
using (var d2d = ((BitmapImpl)source.Item).GetDirect2DBitmap(_renderTarget))

Loading…
Cancel
Save