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
GeoImage(Object)
Parameters
nativeImage
Type:Object
Description:N/A
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
Save(Stream)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
Save(Stream,GeoImageFormat)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
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
Create(Stream)
Return Value
Type:Object
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
CreateCore(Stream)
Return Value
Type:Object
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
Create(Single,Single)
Return Value
Type:Object
Description:N/A
Parameters
width
Type:Single
Description:N/A
height
Type:Single
Description:N/A
CreateCore(Single,Single)
Return Value
Type:Object
Description:N/A
Parameters
width
Type:Single
Description:N/A
height
Type:Single
Description:N/A
GetWidth(GeoImage)
Return Value
Type:Int32
Description:N/A
Parameters
GetWidthCore(GeoImage)
Return Value
Type:Int32
Description:N/A
Parameters
GetHeight(GeoImage)
Return Value
Type:Int32
Description:N/A
Parameters
GetHeightCore(GeoImage)
Return Value
Type:Int32
Description:N/A
Parameters
SetPixel(GeoImage,Int32,Int32,GeoColor)
Return Value
Type:Void
Description:N/A
Parameters
x
Type:Int32
Description:N/A
y
Type:Int32
Description:N/A
SetPixelCore(GeoImage,Int32,Int32,GeoColor)
Return Value
Type:Void
Description:N/A
Parameters
x
Type:Int32
Description:N/A
y
Type:Int32
Description:N/A
Clone(GeoImage)
Return Value
Parameters
CloneCore(GeoImage)
Return Value
Parameters
GetPixel(GeoImage,Int32,Int32)
Return Value
Parameters
x
Type:Int32
Description:N/A
y
Type:Int32
Description:N/A
GetPixelCore(GeoImage,Int32,Int32)
Return Value
Parameters
j
Type:Int32
Description:N/A
i
Type:Int32
Description:N/A
Dispose(Object)
Return Value
Type:Void
Description:N/A
Parameters
concrete
Type:Object
Description:N/A
DisposeCore(Object)
Return Value
Type:Void
Description:N/A
Parameters
concrete
Type:Object
Description:N/A
Save(GeoImage,Stream,ImageCodecInfo,EncoderParameters)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
jpegCodecInfo
Type:ImageCodecInfo
Description:N/A
encoderParameters
Type:EncoderParameters
Description:N/A
SaveCore(GeoImage,Stream,Guid,Guid,Int64)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
jpegCodecInfo
Type:Guid
Description:N/A
encoderParameters
Type:Guid
Description:N/A
jpegQuality
Type:Int64
Description:N/A
Save(GeoImage,Stream,GeoImageFormat)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
SaveCore(GeoImage,Stream,GeoImageFormat)
Return Value
Type:Void
Description:N/A
Parameters
streamSource
Type:Stream
Description:N/A
SetResolution(GeoImage,Single,Single)
Return Value
Type:Void
Description:N/A
Parameters
xDpi
Type:Single
Description:N/A
yDpi
Type:Single
Description:N/A
SetResolutionCore(GeoImage,Single,Single)
Return Value
Type:Void
Description:N/A
Parameters
xDpi
Type:Single
Description:N/A
yDpi
Type:Single
Description:N/A
Save(GeoImage,String)
Return Value
Type:Void
Description:N/A
Parameters
filename
Type:String
Description:N/A
GetImageHeight(Stream)
Return Value
Type:Single
Description:N/A
Parameters
imageStream
Type:Stream
Description:N/A
GetImageHeightCore(Stream)
Return Value
Type:Single
Description:N/A
Parameters
imageStream
Type:Stream
Description:N/A
GetImageWidth(Stream)
Return Value
Type:Single
Description:N/A
Parameters
imageStream
Type:Stream
Description:N/A
GetImageWidthCore(Stream)
Return Value
Type:Single
Description:N/A
Parameters
imageStream
Type:Stream
Description:N/A
OnStreamLoading(StreamLoadingEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
GetImageStream()
Return Value
Type:Stream
Description:N/A
Parameters
GetImageStreamCore(GeoCanvas)
Return Value
Parameters
Clone()
Return Value
Parameters
SetPixel(Int32,Int32,GeoColor)
Return Value
Type:Void
Description:N/A
Parameters
x
Type:Int32
Description:N/A
y
Type:Int32
Description:N/A
Save(String)
Return Value
Type:Void
Description:N/A
Parameters
filename
Type:String
Description:N/A
Save(String,GeoImageFormat)
Return Value
Type:Void
Description:N/A
Parameters
filePath
Type:String
Description:N/A
Save(Stream,ImageCodecInfo,EncoderParameters)
Return Value
Type:Void
Description:N/A
Parameters
stream
Type:Stream
Description:N/A
jpegCodecInfo
Type:ImageCodecInfo
Description:N/A
encoderParameters
Type:EncoderParameters
Description:N/A
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters

FromStream(Stream)
Return Value
Parameters
stream
Type:Stream
Description:N/A
Public Properties
NativeImage
Return Value
PathFilename
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
Return Value
FileName
Return Value
CanvasImageFormat
Return Value
Protected Properties
Width
Return Value
Height
Return Value
Public Events
StreamLoading
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