Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

功能:增加画面区域裁剪(非时长剪切) #25

Open
xueyongwei opened this issue Mar 5, 2024 · 0 comments
Open

功能:增加画面区域裁剪(非时长剪切) #25

xueyongwei opened this issue Mar 5, 2024 · 0 comments

Comments

@xueyongwei
Copy link

背景:
我看到了RenderLayer可以设置transform,来进行移动、旋转、缩放。

let renderLayer1 = RenderLayer(timeRange: timeRange, source: source)
var transform = Transform(center: center, rotation: 0, scale: 0.5)
renderLayer1.transform = transform

期望:
新增裁剪画面区域,比如:

et renderLayer1 = RenderLayer(timeRange: timeRange, source: source)
var transform = Transform(center: center, rotation: 0, scale: 0.5)
renderLayer1.transform = transform

/// ------
renderLayer1.cropFrame = CGRect(x: 0, y: 0, width: 300, height: 300) //< 新增裁剪方法
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant