FOYDALANILGAN ADABIYOTLAR RO’YXATI
Ilm-fan yutuqlari – taraqqiyotning muhim omili : [O‘zbekiston Respublikasi Prezidenti Shavkat MirziyoyevYangi yil arafasida – 2016 yil 30 dekabr kuni mamlakatimizning yetakchi ilm-fan namoyondalari bilan uchrashdi] // Xalq so‘zi. – 2016. – 31 dek. – B.1. 2017
2. Rogers, D. & Adams, A. (-). Mathematical elements for computer graphics. Second Edition. (Перевод Москва: издательство “Мир” 2001)
3. ISO/IEC 2000. (2000). ISO/IEC 18004 Automatic identification and data capture techniques - Bar code symbology - QR code
4. Катербарг Глеб Юрьевич "Алгоритм детектирования QR-кода на видео потоке с апробацией" Санкт-Петербург 2016
5. Морелос-Сарагоса, Р. (2006). Исскусство помехоустойчивого кодирования. Методы, алгоритмы, применение. Москва: Техносфера.[25]
6. N. Otsu (1979). «A threshold selection method from gray-level histograms». IEEE Trans. Sys., Man., Cyber. 9: 62-66.
7. https://www.pqscan.com
8. Eby, Carolyn. (2012). QR Code Tutorial. Retrieved January 20, 2013, from Thonky website: http://www.thonky.com/qr-code-tutorial/part-3-mask-pattern/
9. Lowe, D. (2004). Distinctive Image Features from Scale-Invariant Keypoints. Vancouver: University of British Columbia.
10. Bay, H. & Tuytelaars, T & Van Gool L. (-). SURF: Speeded Up Robust Features. Zurich: Katholieke Universiteit Leuven
11. http://ziyonet.uz/
12. DENSO WAVE. Version capacity table. Retrieved February 9, 2013, from DENSO WAVE website: http://www.qrcode.com/en/vertable1.html
ILOVALAR
QR-kod generator dasturi
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PQScan.BarcodeCreator;
using System.IO;
using System.Drawing.Imaging;
namespace Borcode
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
void QR(int x,string kod)
{
try
{
if (pictureBox1.Image != null)
pictureBox1.Image.Dispose();
File.Delete("qrcode.jpeg");
barcode.BarType = BarCodeType.QRCode;
barcode.Data = kod;
barcode.Width = x;
barcode.Height = x;
barcode.BarcodeColor = Color.Black;
barcode.BackgroundColor = Color.White;
barcode.PictureFormat = ImageFormat.Jpeg;
barcode.CreateBarcode("qrcode.jpeg");
label1.Text = "QR-kod yaratildi " + DateTime.Now.ToString();
}
catch
{
label1.Text = "Xatolik bor QR-kod yaratishda xatolik yuz berdi";
}
}
private void button1_Click(object sender, EventArgs e)
{
try
{
string s = s = comboBox1.SelectedItem.ToString();
s = s[0].ToString() + s[1] + s[2];
int x = 200; ;
x = Convert.ToInt32(s);
string kod = "QR-cod dasturi";
if (tabControl1.SelectedIndex == 0)
{
kod = "http://" + textBox13.Text;
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
else
if (tabControl1.SelectedIndex == 1)
{
kod = richTextBox2.Text;
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
else
if (tabControl1.SelectedIndex == 2)
{
kod = textBox1.Text + ":" + richTextBox3.Text;
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
else
if (tabControl1.SelectedIndex == 3)
{
kod = textBox2.Text;
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
else
if (tabControl1.SelectedIndex == 4)
{
richTextBox1.Text = textBox3.Text.Trim() + ";" + textBox4.Text.Trim() +
"\nORG:" + textBox5.Text.Trim() + textBox6.Text.Trim() + "\nURL: \n" +
"TEL;TYPE=CELL: " + textBox8.Text.Trim() + "\nTEL: " + textBox7.Text.Trim() + "\nTEL;TYPE=FAX: " +
textBox9.Text.Trim() + "\nADR;HOME:;;;;;; \nEND:VCARD";
kod = richTextBox1.Text;
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
else
if (tabControl1.SelectedIndex == 5)
{
kod = textBox10.Text;
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
else
if (tabControl1.SelectedIndex == 6)
{
kod = textBox11.Text+";P:"+textBox12.Text+" ";
QR(x, kod);
pictureBox1.Image = Image.FromFile("qrcode.jpeg");
}
}
catch
{
label1.Text = "Xatolik bor QR-kod yaratishda xatolik yuz berdi";
}
}
private void Form1_Load(object sender, EventArgs e)
{
radioButton1.Checked=true;
comboBox1.SelectedIndex = 0;
}
private void button2_Click(object sender, EventArgs e)
{
try
{
Image img = new Bitmap(pictureBox1.Width, pictureBox1.Height);
Graphics g = Graphics.FromImage(img);
g.CopyFromScreen(PointToScreen(pictureBox1.Location), new Point(0, 0), new Size(pictureBox1.Width, pictureBox1.Height));
Clipboard.SetImage(img);
g.Dispose();
label1.Text = "QR-koddan nusxa olindi " + DateTime.Now.ToString();
}
catch
{
label1.Text = "QR-koddan nusxa olishda xatolik yuz berdi " + DateTime.Now.ToString();
}
}
private void button3_Click(object sender, EventArgs e)
{
try{
SaveFileDialog sfd = new SaveFileDialog();
sfd.Filter = "Images|*.png;*.bmp;*.jpg";
ImageFormat format = ImageFormat.Png;
if (sfd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string ext = System.IO.Path.GetExtension(sfd.FileName);
switch (ext)
{
case ".jpg":
format = ImageFormat.Jpeg;
break;
case ".bmp":
format = ImageFormat.Bmp;
break;
case ".png":
format = ImageFormat.Png;
break;
}
pictureBox1.Image.Save(sfd.FileName, format);
label1.Text = "QR-kod xotiraga saqlandi " + DateTime.Now.ToString();
}
}
catch
{
label1.Text = "QR-kod xotiraga saqlash vaqtida xatolik yuz berdi " + DateTime.Now.ToString();
}
}
Do'stlaringiz bilan baham: |