Table of Contents

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()

Remarks
Parameters

GeoImage(String)

Remarks
Parameters

GeoImage(Stream)

Remarks
Parameters

GeoImage(Int32,Int32)

Remarks
Parameters

Protected Constructors

Public Methods

GetImageStream(GeoCanvas)

Remarks
Return Value
Parameters

GetWidth()

Remarks
Return Value
Parameters

GetHeight()

Remarks
Return Value
Parameters

Close()

Remarks
Return Value
Parameters

Dispose()

Remarks
Return Value
Parameters

ToString()

Remarks
Return Value
Parameters

Equals(Object)

Remarks
Return Value
Parameters

GetHashCode()

Remarks
Return Value
Parameters

GetType()

Remarks
Return Value
Parameters

Protected Methods

OnStreamLoading(StreamLoadingEventArgs)

Remarks
Return Value
Parameters

GetImageStreamCore(GeoCanvas)

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

Opacity

N/A

Remarks

N/A

Return Value

PathFilename

This property returns the path and filename of the image you want to represent.

Remarks

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.

Remarks

None

Return Value

FileName

This property returns the filename part of the PathFileName.

Remarks

None

Return Value

CanvasImageFormat

This property returns the image format.

Remarks

None

Return Value

Protected Properties

NativeImage

N/A

Remarks

N/A

Return Value

Public Events

StreamLoading This event allows you to pass in your own stream to represent the GeoImage.

Remarks

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