private void DrawingContent(QrCodeCustom qrCodeCustom, EncoderOptions options)
        {
            List <QrBitmapMatrix> matrixs = options.BitMats.FindAll(f => f.Tag == qrCodeCustom.QrCodeTag);

            int offsetmudule = 1;
            int ModuleSize   = MudelSize / 7;

            for (int i = 0; i < matrixs.Count; i++)
            {
                int rowX    = matrixs[i].Point.X * ModuleSize;
                int columnY = matrixs[i].Point.Y * ModuleSize;

                if (matrixs[i].BoolVar)
                {
                    GraphicsCustom.FillRectangle(Brushes.Black, new Rectangle(rowX, columnY, ModuleSize, ModuleSize));
                    // GraphicsCustom.FillEllipse(new SolidBrush(qrCodeCustom.ColorBrush), new Rectangle(rowX, columnY, offset, offset));
                    GraphicsCustom.Flush();
                }
                //else
                //{
                //    GraphicsCustom.FillEllipse(Brushes.White, new Rectangle(rowX, columnY, offset, offset));
                //    GraphicsCustom.Flush();
                //    int b = Bitmap.GetPixel(rowX, columnY).B;
                //    int g = Bitmap.GetPixel(rowX, columnY).G;
                //    int r = Bitmap.GetPixel(rowX, columnY).R;
                //    int rgb = (b + g + r) / 3;
                //    if (rgb < 128)
                //    {
                //        GraphicsCustom.FillEllipse(Brushes.White, new Rectangle(rowX, columnY, offset, offset));
                //        GraphicsCustom.Flush();
                //    }
                //}
            }
        }
        private void DrawTagExSquareCircle(QrCodeCustom custom, List <QrBitmapMatrix> qrBitmaps)
        {
            List <QrBitmapMatrix> matrices = qrBitmaps.FindAll(f => f.Tag == custom.QrCodeTag);

            if (matrices.Count > 0)
            {
                Rectangle rect = matrices[0].Rectangle;

                Rectangle Ellipserect = new Rectangle()
                {
                    X      = rect.X,
                    Y      = rect.Y,
                    Width  = rect.Width * 7,
                    Height = rect.Height * 7
                };
                Rectangle Ellipserect2 = new Rectangle()
                {
                    X      = rect.X + rect.Width,
                    Y      = rect.Y + rect.Width,
                    Width  = rect.Width * 5,
                    Height = rect.Height * 5
                };
                Rectangle Ellipserect3 = new Rectangle()
                {
                    X      = rect.X + rect.Width * 2,
                    Y      = rect.Y + rect.Width * 2,
                    Width  = rect.Width * 3,
                    Height = rect.Height * 3
                };
                for (int i = 0; i < 3; i++)
                {
                    if (i == 0)
                    {
                        GraphicsCustom.FillEllipse(new SolidBrush(custom.ColorBrush), Ellipserect);
                    }
                    if (i == 1)
                    {
                        GraphicsCustom.FillRectangle(Brushes.White, Ellipserect2);
                    }
                    if (i == 2)
                    {
                        GraphicsCustom.FillRectangle(new SolidBrush(custom.ColorBrush), Ellipserect3);
                    }
                }
            }

            GraphicsCustom.Flush();
        }
 private void DrawTagSquare(QrCodeCustom custom, List <QrBitmapMatrix> qrBitmapMatrices)
 {
     if (qrBitmapMatrices.Count > 0)
     {
         for (int i = 0; i < qrBitmapMatrices.Count; i++)
         {
             Rectangle rect = qrBitmapMatrices[i].Rectangle;
             if (qrBitmapMatrices[i].BoolVar)
             {
                 GraphicsCustom.FillRectangle(new SolidBrush(custom.ColorBrush), rect);
             }
             else
             {
                 GraphicsCustom.FillRectangle(Brushes.White, rect);
             }
         }
         GraphicsCustom.Flush();
     }
 }