- Enclosing class:
- VdPreview
public static class VdPreview.TargetSize
extends java.lang.Object
This encapsulates the information used to determine the preview image size.
The reason we have different ways here is that both Studio UI and build process need
to use this common code path to generate images for vectordrawable.
When mUseWidth
is true, use mImageMaxDimension
as the maximum
dimension value while keeping the aspect ratio.
Otherwise, use mImageScale
to scale the image based on the XML's size information.