IImage
Description
- Derived from
- Extended by
-
Image abstract
The IImage interface is a descriptor for 2D raster images.
An image descriptor encapsulates the information that is needed to create an IImageReader via ReadImage1, which incrementally reads image content, one pixel row after another. The ReadImageInfo1 method may be used to obtain image metadata (see IImageInfo), without reading the image content in the first place.
Some images represent GPU texture data (see TexelBuffer) in a binary format that may directly be used by a GPU. In these cases, reading the image content first and then encoding texture data would be redundant. Instead, the ReadTexture method may be used to read the texture data directly, bypassing the read/encode step if redundant.
To write an image file using the image content of an IImage, the Write method may be used. The image format is defined by the given IImageWriter object, which will consume the image content of the image descriptor.
Public / Methods
ReadImage
2 overloads
Creates an IImageReader object that reads the image content of this image descriptor using the ReadImageFlags.Data flag.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If validation of the resulting IImageReader has failed, for example because of an unsupported file format feature.
Creates an IImageReader object that reads the image content of this image descriptor.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If validation of the resulting IImageReader has failed, for example because of an unsupported file format feature.
- GeorefException
-
If the image contains unsupported geo-referencing metadata.
ReadImageInfo
2 overloads
Returns the image metadata of this image descriptor using the ReadImageFlags.Info flag.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If validation of the resulting IImageReader has failed, for example because of an unsupported file format feature.
Returns the image metadata of this image descriptor.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If validation of the resulting IImageReader has failed, for example because of an unsupported file format feature.
- GeorefException
-
If the image contains unsupported geo-referencing metadata.
ReadTexture
Reads the texture data of this image descriptor.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If validation of the resulting IImageReader has failed, for example because of an unsupported file format feature.
Write
Outputs the image content of this image descriptor using the given image writer in.
The operation inherits the active geo registry from the calling thread, see GeoRegistry.CurrentInherit.
- See also
Extensions
ImportPixels
Returns an operation that imports image pixels into a PXB
image file or a rectangular HGT
heightmap dataset.
The output format can be chosen by using the corresponding file suffix for the path opt parameter. If no path is given, a heightmap dataset will be created if the IImageInfo.Layer of the input image has been set (i.e. it has a value other than HeightmapLayer.None).
The operation inherits the active geo registry from the calling thread, see GeoRegistry.CurrentInherit.
ProjectPixels
Returns an operation that projects image pixels onto a cubemap HGT
heightmap dataset.
The operation inherits the active geo registry from the calling thread, see GeoRegistry.CurrentInherit.
ReadImageInfoNull
Delegates to IImage.ReadImageInfo2 to create an IImageReader object that reads the image metadata of this image descriptor.
ReadImageNull
Delegates to IImage.ReadImage2 to create an IImageReader object that reads the image content of this image descriptor.
WriteFile
Outputs the pixels of this image to the given image file, using default options.
This method delegates to IImage.Write, passing a temporary IImageWriter object that has been obtained via ImageFormat.WriteImage of ImageFormat.Any.
- IOException
-
If this image format does not support writing (i.e. IFileFormat.CanWrite would return
false
).
- See also