←Select platform

ApplyViewPerspective Method

Summary

Rotates and/or flips this SvgDocument.

Syntax
C#
Objective-C
C++/CLI
Python
public void ApplyViewPerspective( 
   RasterViewPerspective viewPerspective, 
   bool apply 
) 
- (BOOL)applyViewPerspective:(LTRasterViewPerspective)viewPerspective apply:(BOOL)apply error:(NSError **)error NS_SWIFT_NAME(applyViewPerspective(_:apply:)); 
public:  
   void ApplyViewPerspective( 
      RasterViewPerspective^ viewPerspective, 
      bool apply 
   ) 
def ApplyViewPerspective(self,viewPerspective,apply): 

Parameters

viewPerspective

The rotate and/or flip value to apply.

apply

true to apply the rotate and/or flip value specified in viewPerspective, otherwise; false to apply the operations in the reverse order.

Remarks

Use this method to quickly rotate and/or flip an SVG document. The following table lists the values of viewPerspective and how it will affect the SVG document. Note that all rotation and/or flipping is performed around the SVG center.

View perspective Value of apply Result
TopLeft true No change
TopLeft false No change
BottomLeft true Flipped vertically then horizontally
BottomLeft false Flipped horizontally then vertically
TopRight true Flipped horizontally
TopRight false Flipped horizontally
BottomRight true Flipped vertically
BottomRight false Flipped vertically
RightTop true Rotated clockwise by 90 degrees
RightTop false Rotated clockwise by -90 degrees
LeftBottom true Rotate clockwise by 270 degrees
LeftBottom false Rotate clockwise by -270 degrees
LeftTop true Flipped vertically then horizontally then rotated clockwise by 90 degrees
LeftTop false Rotated clockwise by 90 degrees then flipped horizontally then flipped vertically
RightBottom true Flipped vertically then horizontally then rotated clockwise by 270 degrees
RightBottom false Rotated clockwise by 270 degrees then flipped horizontally then flipped vertically
Requirements

Target Platforms

Help Version 23.0.2024.5.23
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Svg Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.