{ * Copyright 2007 ZXing authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * Original Author: Sean Owen * Delphi Implementation by E. Spelt and K. Gossens } unit ZXing.QrCode.Internal.FinderPatternInfo; interface uses ZXing.QrCode.Internal.FinderPattern; type /// ///

Encapsulates information about finder patterns in an image, including the location of /// the three finder patterns, and their estimated module size.

///
TFinderPatternInfo = class sealed private FbottomLeft: IFinderPattern; FtopLeft: IFinderPattern; FtopRight: IFinderPattern; public /// /// Initializes a new instance of the class. /// /// The pattern centers. constructor Create(const patternCenters: TArray); /// /// Gets the bottom left. /// property bottomLeft : IFinderPattern read FbottomLeft; /// /// Gets the top left. /// property topLeft : IFinderPattern read FtopLeft; /// /// Gets the top right. /// property topRight : IFinderPattern read FtopRight; end; implementation constructor TFinderPatternInfo.Create(const patternCenters: TArray); begin FbottomLeft := patternCenters[0]; FtopLeft := patternCenters[1]; FtopRight := patternCenters[2] end; end.