EFStyleImageParamsImage
public class EFStyleImageParamsImage
Image configuration for module filling in image-based QR codes.
This class defines how an image is used to fill QR code modules.
## Usage
let imageParams = EFStyleImageParamsImage(
image: myImage,
mode: .scaleAspectFill
)
-
Creates image configuration for module filling.
Declaration
Swift
public init( image: EFStyleParamImage, mode: EFImageMode = .scaleAspectFill, alpha: CGFloat = 1, allowTransparent: Bool = false )Parameters
imageThe image to use.
modeThe scaling mode. Defaults to .scaleAspectFill.
alphaThe opacity of the image. Defaults to 1.
allowTransparentWhether to allow transparent pixels. Defaults to false.
View on GitHub
Install in Dash