Elight.Utility/Files/DataMatrix/DmtxImageDecoder.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
using System.Text;
namespace DataMatrix.net
{
// Token: 0x02000006 RID: 6
public class DmtxImageDecoder
{
// Token: 0x06000071 RID: 113 RVA: 0x00003154 File Offset: 0x00001354
public List<string> DecodeImage(Bitmap image)
{
return this.DecodeImage(image, int.MaxValue, TimeSpan.MaxValue);
}
// Token: 0x06000072 RID: 114 RVA: 0x00003178 File Offset: 0x00001378
public List<string> DecodeImage(Bitmap image, TimeSpan timeSpan)
{
return this.DecodeImage(image, int.MaxValue, timeSpan);
}
// Token: 0x06000073 RID: 115 RVA: 0x00003198 File Offset: 0x00001398
public List<string> DecodeImageMosaic(Bitmap image)
{
return this.DecodeImageMosaic(image, int.MaxValue, TimeSpan.MaxValue);
}
// Token: 0x06000074 RID: 116 RVA: 0x000031BC File Offset: 0x000013BC
public List<string> DecodeImageMosaic(Bitmap image, int maxResultCount, TimeSpan timeOut)
{
return this.DecodeImage(image, maxResultCount, timeOut, true);
}
// Token: 0x06000075 RID: 117 RVA: 0x000031D8 File Offset: 0x000013D8
public List<string> DecodeImageMosaic(Bitmap image, TimeSpan timeSpan)
{
return this.DecodeImage(image, int.MaxValue, timeSpan);
}
// Token: 0x06000076 RID: 118 RVA: 0x000031F8 File Offset: 0x000013F8
public List<string> DecodeImage(Bitmap image, int maxResultCount, TimeSpan timeOut)
{
return this.DecodeImage(image, maxResultCount, timeOut, false);
}
// Token: 0x06000077 RID: 119 RVA: 0x00003214 File Offset: 0x00001414
private List<string> DecodeImage(Bitmap image, int maxResultCount, TimeSpan timeOut, bool isMosaic)
{
List<string> list = new List<string>();
int num;
byte[] pxl = this.ImageToByteArray(image, out num);
DmtxDecode dmtxDecode = new DmtxDecode(new DmtxImage(pxl, image.Width, image.Height, DmtxPackOrder.DmtxPack24bppRGB)
{
RowPadBytes = num % 3
}, 1);
Stopwatch stopwatch = new Stopwatch();
后面还有 45 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。