Video scaling in CreativeEditor SDK (CE.SDK) allows you to resize video elements proportionally or independently on each axis. This transformation is essential for fitting videos to specific layouts, emphasizing content, or creating dynamic size animations in your video projects.
You can scale videos both through the built-in user interface and programmatically using the SDK’s APIs, providing flexibility for different workflow requirements.
Launch Web DemoGet Started
Scaling Methods#
CE.SDK supports several approaches to video scaling:
- Uniform Scaling: Maintain aspect ratio while resizing proportionally
- Non-uniform Scaling: Scale width and height independently for stretching effects
- Anchor-based Scaling: Control the reference point for scaling operations
- Group Scaling: Scale multiple elements together while maintaining relationships
Applying Scaling#
UI-Based Scaling#
You can scale videos directly in the CE.SDK user interface using scaling handles. Users can drag corner handles for proportional scaling or edge handles for independent width/height adjustments, making it easy to resize content visually.
Programmatic Scaling#
Developers can apply scaling programmatically, using the SDK’s API. This allows for precise scale control, automated resizing based on container dimensions, and integration with responsive design systems.
Combining with Other Transforms#
Video scaling works seamlessly with other transformation operations like rotation, cropping, and positioning. You can chain multiple transformations to create complex layouts while maintaining video quality and performance.