forked from Blendman974/faceclaw
Center the phone screen preview
This commit is contained in:
1 parent
f6201d8e41
commit
96e3bd95f7
18 files changed
+311
-24
No files matched your search
@@ -138,8 +138,8 @@ export class PreviewDisplayTarget implements DisplayTarget {
|
||||
return this.compositor.composite();
|
||||
}
|
||||
|
||||
getCompositePreview(green = false): ImageSource | null {
|
||||
return previewPixels(this.compositor.composite(), this.compositor.width, this.compositor.height, green);
|
||||
getCompositePreview(green = false, crop: { x: number; y: number; width: number; height: number } | null = null): ImageSource | null {
|
||||
return previewPixels(this.compositor.composite(), this.compositor.width, this.compositor.height, green, crop);
|
||||
}
|
||||
|
||||
/** Save the current composite as a 4-bit grayscale PNG under Documents; cropping is not supported on iOS. */
|
||||
|
||||
Reference in new issue
Block a user