Represents an raster image of particular format which may be added to the map. More...
Public Member Functions | |
| bool | _pushSchemetkRaster (GridColorScheme cScheme) |
| Sets color scheme to use in process of generation of the image representation of the grid. | |
| void | BufferToProjection (int BufferX, int BufferY, out double projX, out double projY) |
| Converts the position of pixel in image buffer to the map coordinates. | |
| bool | BuildOverviews (tkGDALResamplingMethod ResamplingMethod, int NumOverviews, Array OverviewList) |
| Builds overviews for GDAL image. | |
| bool | Clear (uint CanvasColor, ICallback cBack) |
| Clears the image using the specified canvas color as the new color for every pixel in the image. | |
| bool | Close () |
| Closes the image. | |
| bool | CreateNew (int NewWidth, int NewHeight) |
| Creates a new image with specified width and height. | |
| void | Deserialize (string newVal) |
| Restores the properties of the image object from the serialized string. | |
| string | get_ErrorMsg (int ErrorCode) |
| Retrieves the error message associated with the specified error code. | |
| int | get_Value (int Row, int col) |
| Gets the value of a pixel in the image. | |
| bool | GetImageBitsDC (int hdc) |
| Gets the data from the image and puts it into the selected bitmap in the specified device context. | |
| double | GetOriginal_dX () |
| Gets or sets the number of map units per image pixel for x axis. | |
| double | GetOriginal_dY () |
| Gets or sets the number of map units per image pixel for y axis. | |
| int | GetOriginalHeight () |
| Returns the height of the image. | |
| int | GetOriginalWidth () |
| Returns the width of the image. | |
| double | GetOriginalXllCenter () |
| Returns the x coordinate of center of the lower left corner of the images. | |
| double | GetOriginalYllCenter () |
| Returns the y coordinate of the center of lower left corner of the images. | |
| string | GetProjection () |
| Retrieves projection string from the associated .prj file. | |
| bool | GetRow (int Row, ref int Vals) |
| Gets a row of pixels from the image. | |
| int | GetUniqueColors (double MaxBufferSizeMB, out object Colors, out object Frequencies) |
| Returns the arrays with the unique colors of the image and their frequences. | |
| void | ImageToProjection (int ImageX, int ImageY, out double projX, out double projY) |
| Converts coordinates of image's pixel to the screen coordinates. | |
| bool | LoadBuffer (double maxBufferSize) |
| Loads the whole image in the memory buffer of specified size. Applicable for GDAL images only. | |
| bool | Open (string ImageFileName, ImageType fileType, bool InRam, ICallback cBack) |
| Opens an image from file. | |
| void | ProjectionToBuffer (double projX, double projY, out int BufferX, out int BufferY) |
| Returns the coodinates of pixel in image buffer which correspond to the given point on the map. | |
| void | ProjectionToImage (double projX, double projY, out int ImageX, out int ImageY) |
| Returns the coodinates of image pixel which correspond to the given point on the map. | |
| bool | Resource (string newImgPath) |
| Changes the data source of the image object without the its closing. | |
| bool | Save (string ImageFileName, bool WriteWorldFile, ImageType fileType, ICallback cBack) |
| Saves the image to file. | |
| string | Serialize (bool SerializePixels) |
| Serializes the image properties to the string. | |
| void | set_Value (int Row, int col, int pVal) |
| Sets the value of a pixel in the image. | |
| bool | SetImageBitsDC (int hdc) |
| This function uses a bitmap selected in the specified device context handle as the data to copy into the image for which the function is called. | |
| void | SetNoDataValue (double Value, ref bool Result) |
| Sets no-data value for the image. Applicable for GDAL images only. | |
| bool | SetProjection (string Proj4) |
| Sets projection string for the image. | |
| void | SetVisibleExtents (double newMinX, double newMinY, double newMaxX, double newMaxY, int newPixelsInView, float transPercent) |
| Reloads the image buffer to represent the specified map extents. Applicable for GDAL images only. | |
Properties | |
| bool | AllowHillshade [get, set] |
| Indicate whether hillshade algorithm will be used for generation of image representation of the grid. | |
| int | BufferSize [get, set] |
| Gets or sets the size of image buffer in percents. | |
| bool | 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 | CdlgFilter [get] |
| Returns the common dialog filter containing all supported file extensions in string format. | |
| bool | ClearGDALCache [get, set] |
| Clears the cache of GDAL library which can be used for faster display. | |
| tkInterpolationMode | DownsamplingMode [get, set] |
| The interpolation mode for images which are displayed with the resolution higher than original, i.e. after zoom in (down). | |
| int | DrawingMethod [get, set] |
| Gets or sets the drawing method of image. | |
| double | dX [get, set] |
| Gets or sets the number of map units per pixel of image buffer for x axis. | |
| double | dY [get, set] |
| Gets or sets the number of map units per pixel of image buffer for y axis. | |
| Extents | Extents [get] |
| Returns the extents of the image. | |
| int | FileHandle [get] |
| Returns file handle fro bmp image. For inner use only. | |
| string | Filename [get] |
| The filename associated with the object. | |
| ICallback | GlobalCallback [get, set] |
| The global callback is the interface used by MapWinGIS to pass progress and error events to interested applications. | |
| bool | HasColorTable [get] |
| Returns a boolean value which indicates whether an image has a color table. Applicable for GDAL images only. | |
| int | Height [get] |
| Gets the height of the image in pixels. | |
| PredefinedColorScheme | ImageColorScheme [get, set] |
| Gets or sets the predefined color scheme for the image. Applicable for GDAL images only. | |
| ImageType | ImageType [get] |
| Gets the image object's image type. | |
| bool | 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 | Key [get, set] |
| The key may be used by the programmer to store any string data associated with the object. | |
| Labels | Labels [get, set] |
| Gets or sets instance of the labels class associated with the image. | |
| int | LastErrorCode [get] |
| Retrieves the last error generated in the object. | |
| int | NoBands [get] |
| Returns the nubmer of bands of GDAL image. | |
| int | NumOverviews [get] |
| Returns the number of overviews for GDAL image. | |
| double | OriginalDX [get, set] |
| Gets or sets the number of map units per image pixel for x axis. | |
| double | OriginalDY [get, set] |
| Gets or sets the number of map units per image pixel for y axis. | |
| int | OriginalHeight [get] |
| Gets the height of the image. | |
| int | OriginalWidth [get] |
| Gets the width of the image. | |
| double | OriginalXllCenter [get, set] |
| Gets or sets the x coordinate of the center of lower left pixel of the image in map units. | |
| double | OriginalYllCenter [get, set] |
| Gets or sets the y coordinate of the center of lower left pixel of the image in map units. | |
| string | PaletteInterpretation [get] |
| Gets the type of pallete interpretation. Applicable for GDAL images only. | |
| stdole.IPictureDisp | Picture [get, set] |
| Gets or sets the picture object. | |
| bool | SetToGrey [get, set] |
| A boolean value which indicates whether an image will be displayed using a gray pallete. | |
| tkImageSourceType | SourceType [get] |
| The source type of the image. | |
| uint | TransparencyColor [get, set] |
| Gets or sets a color which is used as the transparency color for the image. | |
| uint | TransparencyColor2 [get, set] |
| Gets or sets a second color which is used as the transparency color for the image. | |
| double | TransparencyPercent [get, set] |
| Gets or sets the value which define alpha component of image colors (0.0-1.0). | |
| tkInterpolationMode | UpsamplingMode [get, set] |
| The interpolation mode for images which are displayed with the resolution lower than original, i.e. after zooming out (up). | |
| bool | UseHistogram [get, set] |
| Gets or sets a boolean value which indicates whether a histogram will be used. Aplicable for GDAL images only. | |
| bool | UseTransparencyColor [get, set] |
| Gets or sets whether or not the transparency color is being used when the image is displayed. | |
| int | Width [get] |
| Gets the width of the image in pixels. | |
| double | XllCenter [get, set] |
| Gets or sets the x coordinate of the center of the lower-left pixel in the image. | |
| double | YllCenter [get, set] |
| Gets or sets the y coordinate of the center of the lower-left pixel in the image. | |
Represents an raster image of particular format which may be added to the map.
Graph description Here is a giagram with groups of API members for Image class.
Some propeties and methods of the class are applicable to the GDAL images only.
1.7.6.1