AGI STK Graphics 11Send comments on this topic.
WriteString Method (IAgStkGraphicsJpeg2000WriterInitializer)
See Also 
ImageUri
The image filename to be converted. Only file URIs are supported.
CompressionProfile
The compression profile.
CompressionRate
A higher compression rate results in smaller JPEG 2000 files. Use 1 for no compression. Valid values are 1 to 65535.
Jpeg2000Uri
The JPEG 2000 filename. Only file URIs are supported.
OverwriteExistingFile
If true and the JPEG 2000 file already exists, the file will be overwritten during the conversion.
Windows






Windows & Linux

Description

Converts an image, such as a BMP, to a GeoJP2 file that can be used as an image globe overlay. The extent of the image must be in the image, as in a GeoTIFF.

Syntax

[Visual Basic .NET]
Public Sub WriteString( _
   ByVal ImageUri As String, _
   ByVal CompressionProfile As AgEStkGraphicsJpeg2000CompressionProfile, _
   ByVal CompressionRate As Integer, _
   ByVal Jpeg2000Uri As String, _
   ByVal OverwriteExistingFile As Boolean _
) 
[C#]
public void WriteString(
   string ImageUri,
   AgEStkGraphicsJpeg2000CompressionProfile CompressionProfile,
   int CompressionRate,
   string Jpeg2000Uri,
   bool OverwriteExistingFile
);
[Managed C++]
public: void WriteString(
   String __gc ^ ImageUri,
   AgEStkGraphicsJpeg2000CompressionProfile CompressionProfile,
   int CompressionRate,
   String __gc ^ Jpeg2000Uri,
   bool OverwriteExistingFile
);
[Java]
public  writeString(
   String ImageUri,
   AgEStkGraphicsJpeg2000CompressionProfile CompressionProfile,
   ppInteger CompressionRate,
   String Jpeg2000Uri,
   bool OverwriteExistingFile
);
[Unmanaged C++]
public: HRESULT WriteString(
   BSTR ImageUri,
   AgEStkGraphicsJpeg2000CompressionProfile CompressionProfile,
   int CompressionRate,
   BSTR Jpeg2000Uri,
   VARIANT_BOOL OverwriteExistingFile
);

Parameters

ImageUri
The image filename to be converted. Only file URIs are supported.
CompressionProfile
MemberValueDescription
eStkGraphicsJpeg2000CompressionProfileDefault0This is the default profile, which is recommended for those unfamiliar with the others.
eStkGraphicsJpeg2000CompressionProfileNITF_BIIF_NPJE1This profile is designed for U.S. and NATO military applications.
eStkGraphicsJpeg2000CompressionProfileNITF_BIIF_EPJE2This profile is designed for U.S. and NATO military applications. Based on NPJE, the profile is used for image exploitation, and improves image read times for lower resolutions in large images as compared to NPJE.
The compression profile.
CompressionRate
A higher compression rate results in smaller JPEG 2000 files. Use 1 for no compression. Valid values are 1 to 65535.
Jpeg2000Uri
The JPEG 2000 filename. Only file URIs are supported.
OverwriteExistingFile
If true and the JPEG 2000 file already exists, the file will be overwritten during the conversion.

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.