Skip to main content

set_crop

Function set_crop 

Source
pub fn set_crop(
    project: RwSignal<Option<EditProject>>,
    history: StoredValue<Option<History>>,
    rect: CropRect,
)
Expand description

Set the crop rectangle (a full-frame rect clears the crop). The op sanitizes the rect to a valid in-frame sub-rect.