SVGBuilderExtensions.SetPreserveAspectRatio
SVGBuilderExtensions.SetPreserveAspectRatio<TBuilder> method
Sets the ‘preserveAspectRatio’ attribute for an SVG element.
public static TBuilder SetPreserveAspectRatio<TBuilder>(this TBuilder builder,
AspectRatioAlign align, AspectRatioScaling meetOrSlice = AspectRatioScaling.Meet)
where TBuilder : ISVGElementBuilder, IPreserveAspectRatioAttributeSetter
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder. |
builder | The builder instance. |
align | The alignment setting for the aspect ratio. |
meetOrSlice | Specifies how an aspect ratio is preserved (default is ‘Meet’). |
Return Value
The builder instance for chaining.
See Also
- enum AspectRatioAlign
- enum AspectRatioScaling
- interface ISVGElementBuilder
- interface IPreserveAspectRatioAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG