Functions | |
| bool | Image.Clear (uint CanvasColor, ICallback cBack) |
| Clears the image using the specified canvas color as the new color for every pixel in the image. | |
| bool | Image.Close () |
| Closes the image. | |
| bool | Image.CreateNew (int NewWidth, int NewHeight) |
| Creates a new image with specified width and height. | |
| void | Image.Deserialize (string newVal) |
| Restores the properties of the image object from the serialized string. | |
| string | Image.get_ErrorMsg (int ErrorCode) |
| Retrieves the error message associated with the specified error code. | |
| bool | Image.Open (string ImageFileName, ImageType fileType, bool InRam, ICallback cBack) |
| Opens an image from file. | |
| bool | Image.Resource (string newImgPath) |
| Changes the data source of the image object without the its closing. | |
| bool | Image.Save (string ImageFileName, bool WriteWorldFile, ImageType fileType, ICallback cBack) |
| Saves the image to file. | |
| string | Image.Serialize (bool SerializePixels) |
| Serializes the image properties to the string. | |
Properties | |
| bool | Image.CanUseGrouping [get, set] |
| Gets or sets a boolean value which indicates how images with identical size and position on the map will be drawn. | |
| string | Image.CdlgFilter [get] |
| Returns the common dialog filter containing all supported file extensions in string format. | |
| int | Image.FileHandle [get] |
| Returns file handle fro bmp image. For inner use only. | |
| string | Image.Filename [get] |
| The filename associated with the object. | |
| ICallback | Image.GlobalCallback [get, set] |
| The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications. | |
| ImageType | Image.ImageType [get] |
| Gets the image object's image type. | |
| bool | Image.IsInRam [get] |
| Returns true when the image is loaded in RAM memory, and returns false when the image is not loaded in RAM memory. | |
| string | Image.Key [get, set] |
| The key may be used by the programmer to store any string data associated with the object. | |
| Labels | Image.Labels [get, set] |
| Gets or sets instance of the labels class associated with the image. | |
| int | Image.LastErrorCode [get] |
| Retrieves the last error generated in the object. | |
| tkImageSourceType | Image.SourceType [get] |
| The source type of the image. | |
Here is a list of methods and properties that are common for all images despite their source. The properties and methods described here belong to Image class.
| bool Image.Clear | ( | uint | CanvasColor, |
| ICallback | cBack | ||
| ) |
Clears the image using the specified canvas color as the new color for every pixel in the image.
| CanvasColor | The color to be used to as the new color of every pixel in the image. This is a UInt32 representation of an RGB value. |
| cBack | Optional. The ICallback object that will receive the progress and error events while the image is cleared. |
| bool Image.Close | ( | ) |
Closes the image.
| bool Image.CreateNew | ( | int | NewWidth, |
| int | NewHeight | ||
| ) |
Creates a new image with specified width and height.
| NewWidth | The width of the new image in pixels. |
| NewHeight | The height of the new image in pixels. |
| void Image.Deserialize | ( | string | newVal | ) |
Restores the properties of the image object from the serialized string.
| newVal | The serialized string generated by Image.Serialize() method. |
| string Image.get_ErrorMsg | ( | int | ErrorCode | ) |
Retrieves the error message associated with the specified error code.
| ErrorCode | The error code for which the error message is required. |
| bool Image.Open | ( | string | ImageFileName, |
| ImageType | fileType, | ||
| bool | InRam, | ||
| ICallback | cBack | ||
| ) |
Opens an image from file.
| ImageFileName | The filename of the image to be opened. |
| fileType | Optional. The type of image being opened. The default is "USE_FILE_EXTENSION". |
| InRam | Optional. A boolean value representing whether the image is stored in RAM memory while open. The deafult is true. |
| cBack | Optional. The ICallback object which will receive progress and error events while the image is being opened. |
| bool Image.Resource | ( | string | newImgPath | ) |
Changes the data source of the image object without the its closing.
| newImgPath | The new file to serve as a datasource for the image object. |
| bool Image.Save | ( | string | ImageFileName, |
| bool | WriteWorldFile, | ||
| ImageType | fileType, | ||
| ICallback | cBack | ||
| ) |
Saves the image to file.
| ImageFileName | The filename to use to save the image. |
| WriteWorldFile | Optional. A boolean value representing whether a world file is also written. The default is false. |
| fileType | Optional. The filetype to use to save the image. Default is "USE_FILE_EXTENSION". |
| cBack | Optional. The ICallback object which will receive the progress and error messages while the image is being saved. |
| string Image.Serialize | ( | bool | SerializePixels | ) |
Serializes the image properties to the string.
| SerializePixels | A boolean value which indicates whether image pixels should be serialized. |
bool Image.CanUseGrouping [get, set] |
Gets or sets a boolean value which indicates how images with identical size and position on the map will be drawn.
When set to true such images will be merged into a single bitmap. This may improve performace in case of low number of data pixels (those which differ from the transparent color). The default value is false.
string Image.CdlgFilter [get] |
Returns the common dialog filter containing all supported file extensions in string format.
int Image.FileHandle [get] |
Returns file handle fro bmp image. For inner use only.
string Image.Filename [get] |
The filename associated with the object.
ICallback Image.GlobalCallback [get, set] |
The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications.
ImageType Image.ImageType [get] |
Gets the image object's image type.
bool Image.IsInRam [get] |
Returns true when the image is loaded in RAM memory, and returns false when the image is not loaded in RAM memory.
string Image.Key [get, set] |
The key may be used by the programmer to store any string data associated with the object.
Labels Image.Labels [get, set] |
Gets or sets instance of the labels class associated with the image.
int Image.LastErrorCode [get] |
Retrieves the last error generated in the object.
The source type of the image.
Images start with istUninitialized state. After loading bmp images istDiskBased or istInMemory value will be set depending on the value of inMem parameter. For GDAL images istGDALBased will be set.
1.7.6.1