mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-05-02 05:51:28 +08:00
添加项目文件。
This commit is contained in:
54
zxing.core/xx/renderer/IBarcodeRenderer.cs
Normal file
54
zxing.core/xx/renderer/IBarcodeRenderer.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2012 ZXing.Net authors
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
using ZXing.Common;
|
||||
|
||||
namespace ZXing.Rendering
|
||||
{
|
||||
#if !(WINDOWS_PHONE || WindowsCE)
|
||||
/// <summary>
|
||||
/// Interface for a class to convert a BitMatrix to an output image format
|
||||
/// </summary>
|
||||
public interface IBarcodeRenderer<out TOutput>
|
||||
#else
|
||||
/// <summary>
|
||||
/// Interface for a class to convert a BitMatrix to an output image format
|
||||
/// </summary>
|
||||
public interface IBarcodeRenderer<TOutput>
|
||||
#endif
|
||||
{
|
||||
/// <summary>
|
||||
/// Renders the specified matrix to its graphically representation
|
||||
/// </summary>
|
||||
/// <param name="matrix">The matrix.</param>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <param name="content">The encoded content of the barcode which should be included in the image.
|
||||
/// That can be the numbers below a 1D barcode or something other.</param>
|
||||
/// <returns></returns>
|
||||
TOutput Render(BitMatrix matrix, BarcodeFormat format, string content);
|
||||
|
||||
/// <summary>
|
||||
/// Renders the specified matrix to its graphically representation
|
||||
/// </summary>
|
||||
/// <param name="matrix">The matrix.</param>
|
||||
/// <param name="format">The format.</param>
|
||||
/// <param name="content">The encoded content of the barcode which should be included in the image.
|
||||
/// That can be the numbers below a 1D barcode or something other.</param>
|
||||
/// <param name="options">The options.</param>
|
||||
/// <returns></returns>
|
||||
TOutput Render(BitMatrix matrix, BarcodeFormat format, string content, EncodingOptions options);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user