ZXing.Common.BitMatrix Unit

*************************************************************************** Delphi Sample Projects Copyright 1995-2024 Patrick Prémartin under AGPL 3.0 license. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. *************************************************************************** Set of projects demonstrating the features of the Delphi development environment, its libraries and its programming language. Some of the projects have been presented at conferences, on training courses or online coding sessions. The programs are up to date with the Community Edition and the commercial version of Delphi or RAD Studio. *************************************************************************** Author(s) : Patrick PREMARTIN Site : https://samples.developpeur-pascal.fr Project site : https://github.com/DeveloppeurPascal/Delphi-samples *************************************************************************** File last update : 2025-02-08T19:46:48.598+01:00 Signature : 40a183d2b886523d6201921d512a2c10990df9ae ***************************************************************************

Package: QRCodeReader_FMX
 NameDescription
TBitMatrix

Represents a 2D matrix of bits. In function arguments below, and throughout the common module, x is the column position, and y is the row position. The ordering is always x, y. The origin is at the top-left.

Internally the bits are represented in a 1-D array of 32-bit ints. However, each row begins with a new int. This is done intentionally so that we can copy out a row into a BitArray very efficiently.

The ordering of bits is row-major. Within each int, the least significant bits are used first, meaning they represent lower x values. This is compatible with BitArray's implementation.

Top