AGI STK Graphics 11 Send comments on this topic.
InitializeWithString Method (IAgStkGraphicsRasterImageGlobeOverlayFactory)
See Also  Example
Uri
The String that represents the Uri that points to the raster file.
Extent
An array representing the Cartographic Extent of the overlay. The elements should be provided in the order west longitude, south latitude, east longitude, north latitude.





Description

Initializes a Raster Image Globe Overlay with the provided values.

Syntax

[Visual Basic .NET]
Public Function InitializeWithString( _
   ByVal Uri As String, _
   ByRef Extent As System.Array _
) As IAgStkGraphicsRasterImageGlobeOverlay

[C#]
public IAgStkGraphicsRasterImageGlobeOverlay InitializeWithString(
string Uri,
ref System.Array Extent
);

[Managed C++]
public: IAgStkGraphicsRasterImageGlobeOverlay^ InitializeWithString(
String __gc ^ Uri,
System::Array ^^ Extent
);

[Java]
public IAgStkGraphicsRasterImageGlobeOverlay initializeWithString(
String Uri,
Object[] Extent
);

[Unmanaged C++]
public: HRESULT InitializeWithString(
BSTR Uri,
SAFEARRAY ** Extent,
IAgStkGraphicsRasterImageGlobeOverlay ** ReturnValue
);

Parameters

Uri
The String that represents the Uri that points to the raster file.
Extent
An array representing the Cartographic Extent of the overlay. The elements should be provided in the order west longitude, south latitude, east longitude, north latitude.

Example

Shows the format of the Extent parameter when creating a raster imgae globe overlay.
[C#] Copy Code
Array extent = new object[] 

    90
    30
    -77
    39 
}; 
 
IAgStkGraphicsRasterImageGlobeOverlay overlay = sceneManager.Initializers.RasterImageGlobeOverlay.InitializeWithColor( 
    Color.Red, 
    ref extent); 
 

Shows the format of the Extent parameter when creating a raster imgae globe overlay.
[Visual Basic .NET] Copy Code
Dim extent As Array = New Object() {90, 30, -77, 39}

Dim overlay As IAgStkGraphicsRasterImageGlobeOverlay = sceneManager.Initializers.RasterImageGlobeOverlay.InitializeWithColor(Color.Red, extent)

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1