sourcePath property
The absolute path of the specified image.
- You can use the absolute path of the local file (file://xxx) and the Asset path (asset://xxx).
- You can upload a .JPG, .PNG, or .JPEG file.
- The image with a resolution higher than 1080p(Full HD) will be rescaled proportionally to fit in the video.
- If the image's aspect ratio matches the video's, the image will be rescaled proportionally to fit in the video.
- If the image’s aspect ratio doesn't match the video's, the shortest side (either height or width) of the image will be stretched proportionally to match the video. Then the image will be cropped to fill in the video.
- The transparent area in the image will be filled with white color.
Implementation
String sourcePath;