initial commit

This commit is contained in:
chi
2019-05-04 06:53:50 +09:00
commit cca9ed2bb4
277 changed files with 34473 additions and 0 deletions

44
data/QRCodeBitmapImage.cs Normal file
View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
namespace ThoughtWorks.QRCode.Codec.Data
{
public class QRCodeBitmapImage : QRCodeImage
{
Bitmap image;
/// <summary>
/// Constructor
/// </summary>
/// <param name="image">Bitmap image/param>
public QRCodeBitmapImage(Bitmap image)
{
this.image = image;
}
virtual public int Width
{
get
{
return image.Width;
}
}
virtual public int Height
{
get
{
return image.Height;
}
}
public virtual int getPixel(int x, int y)
{
return image.GetPixel(x, y).ToArgb();
}
}
}