EFQRCodeStyle25D
public class EFQRCodeStyle25D : EFQRCodeStyleBase
2.5D QR code implementation.
This class implements the 2.5D QR code rendering, creating QR codes with a three-dimensional appearance using shading and depth effects. The 2.5D style simulates depth by rendering each module with multiple faces using different colors.
## Features
- Three-dimensional appearance with depth simulation
- Multi-color shading for realistic 3D effect
- Customizable height for different module types
- Icon and backdrop support
- Sophisticated visual appearance
## Usage
let params = EFStyle25DParams(
dataHeight: 1.0,
positionHeight: 1.0,
topColor: .black,
leftColor: .darkGray,
rightColor: .lightGray
)
let style = EFQRCodeStyle25D(params: params)
-
Creates a 2.5D QR code with the specified parameters.
Declaration
Swift
public init(params: EFStyle25DParams)
Parameters
params
The 2.5D styling parameters.