Table of Contents

TTMSFNCWXQRCodeSettings Class

Collects the visual settings that control how a QR code is rendered: module and timing colors, dot scaling, quiet-zone size, title and subtitle styling, logo placement, and automatic background-aware coloring.

API unit family: TMSFNCWXQRCode Inherits from: TPersistent

Syntax

TTMSFNCWXQRCodeSettings = class(TPersistent)

Properties

Name Description
AutoColorDark Color blended over the dark modules when BackgroundAutoColor is enabled.
AutoColorDarkAlpha Opacity of AutoColorDark when automatic coloring is enabled.
AutoColorLight Color blended over the light modules when BackgroundAutoColor is enabled.
AutoColorLightAlpha Opacity of AutoColorLight when automatic coloring is enabled.
BackgroundAutoColor When True, the module colors are derived automatically from the background image instead of using the fixed dark and light colors.
BackgroundImageAlpha Opacity of the background image, where 0.0 is fully transparent and 1.0 fully opaque.
ColorDark Color of the dark modules (the data dots) of the code.
ColorLight Color of the light modules (the background dots) of the code.
DotScale Relative size of the data modules, where 1.0 fills each module cell completely.
DotScaleAlignInner Relative size of the inner modules of the alignment patterns.
DotScaleAlignOuter Relative size of the outer modules of the alignment patterns.
DotScaleTimingHorizontal Relative size of the modules along the horizontal timing pattern.
DotScaleTimingVertical Relative size of the modules along the vertical timing pattern.
LogoBackgroundColor Fill color drawn behind the logo image.
LogoBackgroundTransparent When True, the area behind the logo is left transparent instead of filled with a solid color.
LogoHeight Height in pixels of the logo image overlaid on the code.
LogoMaxHeight Maximum height in pixels the logo image may occupy.
LogoMaxWidth Maximum width in pixels the logo image may occupy.
LogoWidth Width in pixels of the logo image overlaid on the code.
PositionColor Colors of the three corner position-detection patterns.
QuietZone Width in pixels of the empty margin (quiet zone) drawn around the code.
QuietZoneColor Fill color of the quiet-zone margin around the code.
SubTitleFont Font used to render the subtitle text shown with the code.
SubTitleTop Vertical offset in pixels of the subtitle text within the title area.
TimingHorizonalColor Color of the horizontal timing pattern that runs between the position patterns.
TimingVerticalColor Color of the vertical timing pattern that runs between the position patterns.
TitleBackgroundColor Background color drawn behind the title and subtitle area.
TitleFont Font used to render the title text shown with the code.
TitleHeight Height in pixels reserved for the title and subtitle area above the code.
TitleTop Vertical offset in pixels of the title text within the title area.

Events

Name Description
OnChanged Occurs whenever any setting changes, allowing the owner to re-render the QR code.