ThinkGeo.MapSuite.Core.GeoImage
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
This class represents an image you want to use on the GeoCanvas.
Inheritance Hierarchy
Members Summary
Public Constructors
GeoImage()
Parameters
GeoImage(String)
When you specify the path and filename, it should be in the correct format as such; however, the file does not need to exist on the file system. This is to allow us to accept streams supplied by the developer at runtime. If you choose to provide a file that exists, then we will attempt to use it. If we cannot find it, then we will raise the SteamLoading event and allow you to supply the stream. For example, you can pass in “C:\NotARealPath\File1.ecw”, which does not exist on the file system. When we raise the event for you to supply a stream, we will pass to you the path and filename so you can differentiate the files.
Parameters
GeoImage(Stream)
Parameters
GeoImage(Int32,Int32)
Parameters
Protected Constructors
Public Methods
GetImageStream(GeoCanvas)
Return Value
Parameters
GetWidth()
Return Value
Parameters
GetHeight()
Return Value
Parameters
Close()
Return Value
Type:Void
Description:None
Parameters
Dispose()
Return Value
Type:Void
Description:None
Parameters
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters
Protected Methods
OnStreamLoading(StreamLoadingEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
GetImageStreamCore(GeoCanvas)
Return Value
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
Opacity
N/A
Return Value
PathFilename
This property returns the path and filename of the image you want to represent.
When you specify the path and filename, it should be in the correct format as such; however, the file does not need to exist on the file system. This is to allow us to accept streams supplied by the developer at runtime. If you choose to provide a file that exists, then we will attempt to use it. If we cannot find it, then we will raise the SteamLoading event and allow you to supply the stream. For example, you can pass in “C:\NotARealPath\File1.ecw”, which does not exist on the file system. When we raise the event for you to supply a stream, we will pass to you the path and filename so you can differentiate the files.
Return Value
PathName
This property returns the path part of the PathFileName.
Return Value
FileName
This property returns the filename part of the PathFileName.
Return Value
CanvasImageFormat
This property returns the image format.
Return Value
Protected Properties
NativeImage
N/A
Return Value
Public Events
StreamLoading
This event allows you to pass in your own stream to represent the GeoImage.
If you choose, you can pass in your own stream to represent the GeoImage. The stream can come from a variety of places, such as isolated storage, a compressed file, or an encrypted stream. When the GeoImage is finished with the stream it will dispose of it, so be sure to keep this in mind when passing the stream in. If you do not pass in an alternate stream, the GeoImage will attempt to load the file from the file system using the PathFileName property.
Event Arguments:StreamLoadingEventArgs