This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
thinkgeo.mapsuite.core.filebitmaptilecache [2015/09/18 05:41] admin |
thinkgeo.mapsuite.core.filebitmaptilecache [2017/03/16 21:59] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ThinkGeo.MapSuite.Core.FileBitmapTileCache ====== | ====== ThinkGeo.MapSuite.Core.FileBitmapTileCache ====== | ||
+ | |||
+ | {{section>upgrade_map_suite_to_10.0}} | ||
+ | |||
This class is a concrete class inherits from BitmapTileCache. In this class, the tiles will be saved in disk and can be viewed very conveniently. | This class is a concrete class inherits from BitmapTileCache. In this class, the tiles will be saved in disk and can be viewed very conveniently. | ||
===== Inheritance Hierarchy ===== | ===== Inheritance Hierarchy ===== | ||
Line 11: | Line 14: | ||
** {{wiki:PublicMethod.gif|}} FileBitmapTileCache() ** | ** {{wiki:PublicMethod.gif|}} FileBitmapTileCache() ** | ||
- | This is the default constructor. | + | * //This is the default constructor.// |
== Remarks == | == Remarks == | ||
- | If you use this constructor, you have to set the properties manually. | + | * //If you use this constructor, you have to set the properties manually.// |
== Parameters == | == Parameters == | ||
<div newline></div> | <div newline></div> | ||
** {{wiki:PublicMethod.gif|}} FileBitmapTileCache(String) ** | ** {{wiki:PublicMethod.gif|}} FileBitmapTileCache(String) ** | ||
- | This is the overloads constructor. | + | * //This is the overloads constructor.// |
== Remarks == | == Remarks == | ||
- | If you use this constructor, the other properties are set with default values. | + | * //If you use this constructor, the other properties are set with default values.// |
== Parameters == | == Parameters == | ||
* //cacheDirectory// | * //cacheDirectory// | ||
Line 29: | Line 32: | ||
** {{wiki:PublicMethod.gif|}} FileBitmapTileCache(String,String) ** | ** {{wiki:PublicMethod.gif|}} FileBitmapTileCache(String,String) ** | ||
- | This is the overloads constructor. | + | * //This is the overloads constructor.// |
== Remarks == | == Remarks == | ||
- | If you use this constructor, the other properties are set with default values. | + | * //If you use this constructor, the other properties are set with default values.// |
== Parameters == | == Parameters == | ||
* //cacheDirectory// | * //cacheDirectory// | ||
Line 44: | Line 47: | ||
** {{wiki:PublicMethod.gif|}} FileBitmapTileCache(String,String,TileImageFormat,TileMatrix) ** | ** {{wiki:PublicMethod.gif|}} FileBitmapTileCache(String,String,TileImageFormat,TileMatrix) ** | ||
- | This is the constructor with all the parameters needed passed in. | + | * //This is the constructor with all the parameters needed passed in.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Parameters == | == Parameters == | ||
* //cacheDirectory// | * //cacheDirectory// | ||
Line 69: | Line 72: | ||
** {{wiki:PublicMethod.gif|}} ClearCache(TimeSpan) ** | ** {{wiki:PublicMethod.gif|}} ClearCache(TimeSpan) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 85: | Line 88: | ||
** {{wiki:PublicMethod.gif|}} ClearCache(Double) ** | ** {{wiki:PublicMethod.gif|}} ClearCache(Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 101: | Line 104: | ||
** {{wiki:PublicMethod.gif|}} ClearCache(TimeSpan,Double) ** | ** {{wiki:PublicMethod.gif|}} ClearCache(TimeSpan,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 121: | Line 124: | ||
** {{wiki:PublicMethod.gif|}} GetTileImageFileNames(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} GetTileImageFileNames(RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 137: | Line 140: | ||
** {{wiki:PublicMethod.gif|}} GetTileImageFileName(Int64,Int64) ** | ** {{wiki:PublicMethod.gif|}} GetTileImageFileName(Int64,Int64) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 157: | Line 160: | ||
** {{wiki:PublicMethod.gif|}} GetTile(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} GetTile(RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 173: | Line 176: | ||
** {{wiki:PublicMethod.gif|}} GetTile(Int64,Int64) ** | ** {{wiki:PublicMethod.gif|}} GetTile(Int64,Int64) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 193: | Line 196: | ||
** {{wiki:PublicMethod.gif|}} GetTiles(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} GetTiles(RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 209: | Line 212: | ||
** {{wiki:PublicMethod.gif|}} GetHigherScaleTile(RectangleShape,Double) ** | ** {{wiki:PublicMethod.gif|}} GetHigherScaleTile(RectangleShape,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 229: | Line 232: | ||
** {{wiki:PublicMethod.gif|}} SaveTile(Tile) ** | ** {{wiki:PublicMethod.gif|}} SaveTile(Tile) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 245: | Line 248: | ||
** {{wiki:PublicMethod.gif|}} SaveTiles(Bitmap,RectangleShape,Boolean) ** | ** {{wiki:PublicMethod.gif|}} SaveTiles(Bitmap,RectangleShape,Boolean) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 269: | Line 272: | ||
** {{wiki:PublicMethod.gif|}} SaveTiles(Bitmap,RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} SaveTiles(Bitmap,RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 289: | Line 292: | ||
** {{wiki:PublicMethod.gif|}} DeleteTiles(RectangleShape) ** | ** {{wiki:PublicMethod.gif|}} DeleteTiles(RectangleShape) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 305: | Line 308: | ||
** {{wiki:PublicMethod.gif|}} DeleteTile(Tile) ** | ** {{wiki:PublicMethod.gif|}} DeleteTile(Tile) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 321: | Line 324: | ||
** {{wiki:PublicMethod.gif|}} ClearCache() ** | ** {{wiki:PublicMethod.gif|}} ClearCache() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 333: | Line 336: | ||
** {{wiki:PublicMethod.gif|}} ToString() ** | ** {{wiki:PublicMethod.gif|}} ToString() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 345: | Line 348: | ||
** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ** {{wiki:PublicMethod.gif|}} Equals(Object) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 361: | Line 364: | ||
** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ** {{wiki:PublicMethod.gif|}} GetHashCode() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 373: | Line 376: | ||
** {{wiki:PublicMethod.gif|}} GetType() ** | ** {{wiki:PublicMethod.gif|}} GetType() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 386: | Line 389: | ||
** {{wiki:ProtectedMethod.gif|}} GetTileCore(Int64,Int64) ** | ** {{wiki:ProtectedMethod.gif|}} GetTileCore(Int64,Int64) ** | ||
- | This method returns the BitmapTile corresponding to passed in row and column. | + | * //This method returns the BitmapTile corresponding to passed in row and column.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 406: | Line 409: | ||
** {{wiki:ProtectedMethod.gif|}} SaveTileCore(Tile) ** | ** {{wiki:ProtectedMethod.gif|}} SaveTileCore(Tile) ** | ||
- | This method will save the target tile passed in, you could override this API to create your own logic. | + | * //This method will save the target tile passed in, you could override this API to create your own logic.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 422: | Line 425: | ||
** {{wiki:ProtectedMethod.gif|}} DeleteTileCore(Tile) ** | ** {{wiki:ProtectedMethod.gif|}} DeleteTileCore(Tile) ** | ||
- | This method will delete the target tile passed in. | + | * //This method will delete the target tile passed in.// |
== Remarks == | == Remarks == | ||
- | This method will not take effect when the ReadOnly is set to true. | + | * //This method will not take effect when the ReadOnly is set to true.// |
== Return Value == | == Return Value == | ||
Line 436: | Line 439: | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} 8xU=(String) ** | + | ** {{wiki:ProtectedMethod.gif|}} CheckExpiration(String) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 452: | Line 455: | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}} 9BU=(Bitmap) ** | + | ** {{wiki:ProtectedMethod.gif|}} GetBinariesFromBitmap(Bitmap) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 470: | Line 473: | ||
** {{wiki:ProtectedMethod.gif|}} ClearCacheCore() ** | ** {{wiki:ProtectedMethod.gif|}} ClearCacheCore() ** | ||
- | This method will clear all the tiles in the tileCache. | + | * //This method will clear all the tiles in the tileCache.// |
== Remarks == | == Remarks == | ||
- | This method will not take effect when the ReadOnly is set to true. | + | * //This method will not take effect when the ReadOnly is set to true.// |
== Return Value == | == Return Value == | ||
Line 482: | Line 485: | ||
** {{wiki:ProtectedMethod.gif|}} GetHigherScaleTileCore(RectangleShape,Double) ** | ** {{wiki:ProtectedMethod.gif|}} GetHigherScaleTileCore(RectangleShape,Double) ** | ||
- | This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut. | + | * //This method overrides the logic in its base class BitmapTileCache. This method will return the HigherScale BitmapTile which is always used for preview effects when ZoomIn or ZoomOut.// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 502: | Line 505: | ||
** {{wiki:ProtectedMethod.gif|}} MergeBitmaps(IEnumerable<BitmapTile>,Double) ** | ** {{wiki:ProtectedMethod.gif|}} MergeBitmaps(IEnumerable<BitmapTile>,Double) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 522: | Line 525: | ||
** {{wiki:ProtectedMethod.gif|}} OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs) ** | ** {{wiki:ProtectedMethod.gif|}} OnGottenCacheImage(GottenCacheImageBitmapTileCacheEventArgs) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 538: | Line 541: | ||
** {{wiki:ProtectedMethod.gif|}} OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs) ** | ** {{wiki:ProtectedMethod.gif|}} OnGettingCacheImage(GettingCacheImageBitmapTileCacheEventArgs) ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 554: | Line 557: | ||
** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ** {{wiki:ProtectedMethod.gif|}} Finalize() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 566: | Line 569: | ||
** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ** {{wiki:ProtectedMethod.gif|}} MemberwiseClone() ** | ||
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 576: | Line 579: | ||
== Parameters == | == Parameters == | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} 9RU=(ImageFormat) ** | + | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} GetEncoder(ImageFormat) ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == | ||
Line 592: | Line 595: | ||
<div newline></div> | <div newline></div> | ||
- | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} /xU=() ** | + | ** {{wiki:ProtectedMethod.gif|}}{{wiki:Static.gif|}} GetTemporaryFolder() ** |
- | N/A | + | * //N/A// |
== Remarks == | == Remarks == | ||
- | N/A | + | * //N/A// |
== Return Value == | == Return Value == |