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
image
The image to use.
mode
The scaling mode. Defaults to .scaleAspectFill.
alpha
The opacity of the image. Defaults to 1.
allowTransparent
Whether to allow transparent pixels. Defaults to false.