Jpeg2000WriterWrite Method (Uri, CartographicExtent, CartographicExtent, Jpeg2000CompressionProfile, Int32, Uri, Boolean, Color) |
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 can be defined as an input parameter if necessary.
Namespace:
AGI.Foundation.Graphics.Imaging
Assembly:
AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.2.419.0 (24.2.419.0)
Syntax public static void Write(
Uri imageUri,
CartographicExtent extent,
CartographicExtent subExtent,
Jpeg2000CompressionProfile compressionProfile,
int compressionRate,
Uri jpeg2000Uri,
bool overwriteExistingFile,
Color transparentColor
)
Public Shared Sub Write (
imageUri As Uri,
extent As CartographicExtent,
subExtent As CartographicExtent,
compressionProfile As Jpeg2000CompressionProfile,
compressionRate As Integer,
jpeg2000Uri As Uri,
overwriteExistingFile As Boolean,
transparentColor As Color
)
public:
static void Write(
Uri^ imageUri,
CartographicExtent^ extent,
CartographicExtent^ subExtent,
Jpeg2000CompressionProfile compressionProfile,
int compressionRate,
Uri^ jpeg2000Uri,
bool overwriteExistingFile,
Color transparentColor
)
static member Write :
imageUri : Uri *
extent : CartographicExtent *
subExtent : CartographicExtent *
compressionProfile : Jpeg2000CompressionProfile *
compressionRate : int *
jpeg2000Uri : Uri *
overwriteExistingFile : bool *
transparentColor : Color -> unit
Parameters
- imageUri
- Type: SystemUri
The image filename to be converted. Only file URIs are supported. - extent
- Type: AGI.Foundation.CoordinatesCartographicExtent
The extent of the image. The extent can be null if the image defines the extent as with a GeoTIFF image. If specified and the image defines an extent, this will override the image defined extent. - subExtent
- Type: AGI.Foundation.CoordinatesCartographicExtent
If a sub-extent is specified, only part of the image defined by the sub-extent is converted. - compressionProfile
- Type: AGI.Foundation.Graphics.ImagingJpeg2000CompressionProfile
The compression profile. - compressionRate
- Type: SystemInt32
A higher compression rate results in smaller JPEG 2000 files. Use 1 for no compression. Valid values are 1 to 65535. - jpeg2000Uri
- Type: SystemUri
The JPEG 2000 filename. Only file URIs are supported. - overwriteExistingFile
- Type: SystemBoolean
If true and the JPEG 2000 file already exists, the file will be overwritten during the conversion. - transparentColor
- Type: System.DrawingColor
Any color in the image that matches the transparent color will be made transparent.
See Also