mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
996 B
37 lines
996 B
// Copyright (c) Six Labors and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
|
|
using System;
|
|
using SixLabors.ImageSharp.PixelFormats;
|
|
|
|
namespace SixLabors.ImageSharp.Processing
|
|
{
|
|
/// <summary>
|
|
/// Interface representing a Pen
|
|
/// </summary>
|
|
/// <typeparam name="TPixel">The type of the color.</typeparam>
|
|
public interface IPen<TPixel> : IPen
|
|
where TPixel : struct, IPixel<TPixel>
|
|
{
|
|
/// <summary>
|
|
/// Gets the stroke fill.
|
|
/// </summary>
|
|
IBrush<TPixel> StrokeFill { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Interface representing the pattern and size of the stroke to apply with a Pen.
|
|
/// </summary>
|
|
public interface IPen
|
|
{
|
|
/// <summary>
|
|
/// Gets the width to apply to the stroke
|
|
/// </summary>
|
|
float StrokeWidth { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the stoke pattern.
|
|
/// </summary>
|
|
ReadOnlySpan<float> StrokePattern { get; }
|
|
}
|
|
}
|
|
|