embedBasicPatterns static method

void embedBasicPatterns(
  1. Version version,
  2. ByteMatrix matrix
)

Implementation

static void embedBasicPatterns(Version version, ByteMatrix matrix) {
  // Let's get started with embedding big squares at corners.
  _embedPositionDetectionPatternsAndSeparators(matrix);
  // Then, embed the dark dot at the left bottom corner.
  _embedDarkDotAtLeftBottomCorner(matrix);

  // Position adjustment patterns appear if version >= 2.
  _maybeEmbedPositionAdjustmentPatterns(version, matrix);
  // Timing patterns should be embedded after position adj. patterns.
  _embedTimingPatterns(matrix);
}