Skip to content

Latest commit

 

History

History
29 lines (17 loc) · 783 Bytes

CropPlugin.md

File metadata and controls

29 lines (17 loc) · 783 Bytes

CropPlugin

Plugin provides API for saving or cropping of currently displayed frame.

Usage

        Player player,
        Element cropContainerEl,
        Callback1<VGCropPluginView, VGCropPlugin> onCropRequested);

Callbacks

Methods

Canvas getCroppedCanvas()

Usually called when crop frame defined and results have to be saved somewhere. Returns HTMLCanvas object with full scaled captured and cropped frame.

Callback1<VGCropPlugin>

Called when Capture Frame Icon clicked. Stops playback. This can be used to open crop UI and do actual cropping.