MBDPIBasedDewarpPolicy

Objective-C


@interface MBDPIBasedDewarpPolicy : MBDewarpPolicy

Swift

class MBDPIBasedDewarpPolicy : MBDewarpPolicy

DPI based dewarp policy. Dewarp height will be calculated based on actual physical size provided by the MBQuadWithSizeDetector and requested DPI (dots per inch).

This policy is usually best for processor groups that prepare image for output (e.g. MBImageReturnProcessor).

  • Default DPI that will be used with default constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    convenience init()
  • Declaration

    Objective-C

    - (nonnull instancetype)initWithDesiredDPI:(NSInteger)desiredDPI;

    Swift

    init(desiredDPI: Int)

    Parameters

    desiredDPI

    Desired DPI (dots per inch)

  • Returns the desired DPI as defined by this policy.

    Default: 250

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger desiredDPI;

    Swift

    var desiredDPI: Int { get }