This document is archived and information here might be outdated.  Recommended version.


IAffineTransformation2D.DefineFromEnvelopes Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

IAffineTransformation2D.DefineFromEnvelopes Method

Defines a transformation that maps a point relative to one envelope to a similar position relative to another envelope.

[Visual Basic .NET]
Public Sub DefineFromEnvelopes ( _
    ByVal from As IEnvelope, _
    ByVal to As IEnvelope _
)
[C#]
public void DefineFromEnvelopes (
    IEnvelope from,
    IEnvelope to
);
[C++]
HRESULT DefineFromEnvelopes(
  IEnvelope* from,
  IEnvelope* to
);
[C++]

Parameters from
from is a parameter of type IEnvelope to
to is a parameter of type IEnvelope

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The IAffineTransformation2D::DefineFromEnvelopes allows to define an AffineTransformation based on two envelopes. This method can be used to create a quick adjustment containing only translation and scale. Since envelope cannot be rotated, it doesn't allow defining a rotation.

See Also

IAffineTransformation2D Interface