GSKEditFrameViewController

Objective-C

@interface GSKEditFrameViewController : UIViewController

Swift

class GSKEditFrameViewController : UIViewController

The GSKEditFrameViewController lets the user change a quadrangle.

The quadrangle is a drawn as an overlay over an image. This typically lets the user edit the edges of a document to crop it more accurately.

  • Declaration

    Objective-C

    - (nonnull instancetype)initWithImage:(nonnull UIImage *)image
                               quadrangle:(nonnull GSKQuadrangle *)quadrangle;

    Swift

    init(image: UIImage, quadrangle: GSKQuadrangle)

    Parameters

    image

    the image on which to draw the quadrangle. This is typically your original photo from the camera.

    quadrangle

    the initial quadrangle

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil NS_UNAVAILABLE;
  • The image on which the quadrangle is overlaid.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIImage *_Nonnull image;

    Swift

    var image: UIImage { get set }
  • Used to set the quadrangle to display in the view controller, and to retrieve the new quadrangle edited by the user.

    Declaration

    Objective-C

    @property (nonatomic) GSKQuadrangle *_Nonnull quadrangle;

    Swift

    unowned(unsafe) var quadrangle: GSKQuadrangle { get set }
  • The view on which the quadrangle is drawn.

    Declaration

    Objective-C

    @property (nonatomic, readonly) GSKEditFrameView *_Nonnull frameView;

    Swift

    var frameView: GSKEditFrameView { get }
  • Deprecated

    Deprecated in favor of frameView.imageSelection.insideShadeColor].

    Customize the color of the shade within the quadrangle.

    Declaration

    Objective-C

    @property (nonatomic, copy) DEPRECATED_MSG_ATTRIBUTE( "Deprecated in favor of frameView.imageSelection.insideShadeColor].") UIColor *shadeColor;

    Swift

    @NSCopying var shadeColor: UIColor { get set }
  • Customize the color of the line used to draw the quadrangle.

    Declaration

    Objective-C

    @property (nonatomic, copy) UIColor *_Nonnull lineColor;

    Swift

    @NSCopying var lineColor: UIColor { get set }