iTextSharp.text.pdf.qrcode.ByteMatrix.Clear C# (CSharp) Метод

Clear() публичный Метод

public Clear ( sbyte value ) : void
value sbyte
Результат void
        public void Clear(sbyte value) {
            for (int y = 0; y < height; ++y) {
                for (int x = 0; x < width; ++x) {
                    bytes[y][x] = value;
                }
            }
        }

Usage Example

Пример #1
0
 // Set all cells to -1.  -1 means that the cell is empty (not set yet).
 //
 // JAVAPORT: We shouldn't need to do this at all. The code should be rewritten to begin encoding
 // with the ByteMatrix initialized all to zero.
 public static void ClearMatrix(ByteMatrix matrix)
 {
     matrix.Clear((sbyte)-1);
 }
All Usage Examples Of iTextSharp.text.pdf.qrcode.ByteMatrix::Clear