ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
ThinkGeo Cloud
ThinkGeo UI Controls
ThinkGeo Open Source
Help and Support
External Resources
This is an old revision of the document!
<!– Class –> This class represents an image you want to use on the GeoCanvas.
This class was designed so that it can be used for any type of stream while still being easy to use. For example, you can specify a path and filename in the constructor and the class will hold this. When the GeoCanvas needs the image, it will get its stream and then pass it off for drawing. After drawing, it disposes of the stream so there are no wasted resources.
You can also pass in a path and filename that does not actually exist on disk. In that case we will raise an event where you can provide a stream on demand. With this function, you can use compressed streams, isolated storage and many other stream-related storage machanisms.
*System.Object **ThinkGeo.MapSuite.PortableCore.GeoImage
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | This is the constructor used to create a new GeoImage. | ||
![]() | String | This is the constructor to create a new GeoImage | |
![]() | Stream | This is the constructor to create a new GeoImage. | |
![]() | Int32, Int32 | This is the constructor to create a new GeoImage | |
![]() | Object |
Name | Parameters | DeclaringType | Summary |
---|
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | This method closes the GeoImage. It is the same as calling the Dispose. | ||
![]() | This is the Dispose for the class. | ||
![]() | Object | Object | |
![]() | Object | ||
![]() | This method gets the height (in pixels) of this image. | ||
![]() | GeoCanvas | This method returns the stream of the GeoImage. | |
![]() | Object | ||
![]() | This method gets the width (in pixels) of this image. | ||
![]() | Stream, GeoImageFormat | ||
![]() | Stream | ||
![]() | Object |
Name | Parameters | DeclaringType | Summary |
---|---|---|---|
![]() | GeoImage | ||
![]() | Stream | ||
![]() | Single, Single | ||
![]() | Object | ||
![]() | Object(overriden) | This is the Dispose method for the class. | |
![]() | GeoImage | ||
![]() | Stream | ||
![]() | GeoCanvas | This method returns the stream of the GeoImage. | |
![]() | Stream | ||
![]() | GeoImage, Int32, Int32 | ||
![]() | GeoImage | ||
![]() | Object | ||
![]() | StreamLoadingEventArgs | This method raises the StreamLoading event, allowing you to specify your own stream. | |
![]() | GeoImage, Stream, GeoImageFormat | ||
![]() | GeoImage, Stream, Guid, Guid, Int64 | ||
![]() | GeoImage, Int32, Int32, GeoColor | ||
![]() | GeoImage, Single, Single |
Name | Return | DeclaringType | Summary |
---|---|---|---|
![]() | Guid | This property returns the image format. | |
![]() | String | This property returns the filename part of the PathFileName. | |
![]() | Object | ||
![]() | String | This property returns the path and filename of the image you want to represent. | |
![]() | String | This property returns the path part of the PathFileName. |
Name | Return | DeclaringType | Summary |
---|
Name | Event Arguments | DeclaringType | Summary |
---|---|---|---|
![]() | StreamLoadingEventArgs | This event allows you to pass in your own stream to represent the GeoImage. |
This is the constructor used to create a new GeoImage.
This constructor allows you to create a drawing image without specifying a PathFileName.
You need to set the PathFileName if you intend to use this constructor.
Name | Type | Description |
---|
This is the constructor to create a new GeoImage
This constructor allows you to create a drawing image by specifying a 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.
Name | Type | Description |
---|---|---|
pathFileName | String<!– System.String –> | The path and filename of the image file. Note that this need not actually exisit on the file system; see remarks below. |
This is the constructor to create a new GeoImage.
This overload allows you to pass in a stream, as long as it is in TIFF format.
If you have a stream or an image in TIFF format, you can use this constructor to create a GeoImage from it.
Name | Type | Description |
---|---|---|
imageStream | Stream<!– System.IO.Stream –> | This parameter must be a stream in TIFF format. |
This is the constructor to create a new GeoImage
This constructor allows you to create a GeoImage by specifying a width, height and a GeoCanvas.
You can use this overload when you want to create a new GeoImage and only want to specify the width and height. You also need to pass in a GeoCanvas that will be used to create the GeoImage.
Name | Type | Description |
---|---|---|
width | Int32<!– System.Int32 –> | This parameter is the width in pixels for the new GeoImage. |
height | Int32<!– System.Int32 –> | This parameter is the height in pixels for the new GeoImage. |
Name | Type | Description |
---|---|---|
nativeImage | Object<!– System.Object –> |
This method closes the GeoImage. It is the same as calling the Dispose.
This method closes the GeoImage. It is the same as calling the Dispose.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This is the Dispose for the class.
This overload will dispose of the stream in the GeoImage and release its resources.
This overload will dispose of the stream in the GeoImage and release its resources.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Boolean<!– System.Boolean –> |
Name | Type | Description |
---|---|---|
obj | Object<!– System.Object –> |
<!– System.Object –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method gets the height (in pixels) of this image.
Return Type | Description |
---|---|
Int32<!– System.Int32 –> | This method returns the height (in pixels) of this image. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This method returns the stream of the GeoImage.
This method will raise the event that allows the user to supply their own stream. The event is also raised if they do not attempt to open the file specified in the PathFileName property.
Return Type | Description |
---|---|
Stream<!– System.IO.Stream –> | This method returns the stream of the GeoImage. |
Name | Type | Description |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.PortableCore.GeoCanvas –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Type<!– System.Type –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method gets the width (in pixels) of this image.
Return Type | Description |
---|---|
Int32<!– System.Int32 –> | This method returns the width (in pixels) of this image. |
Name | Type | Description |
---|
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
stream | Stream<!– System.IO.Stream –> | |
geoImageFormat | GeoImageFormat<!– ThinkGeo.MapSuite.Portable.GeoImageFormat –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
stream | Stream<!– System.IO.Stream –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
String<!– System.String –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
Return Type | Description |
---|---|
GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|---|---|
stream | Stream<!– System.IO.Stream –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|---|---|
width | Single<!– System.Single –> | |
height | Single<!– System.Single –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
concrete | Object<!– System.Object –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This is the Dispose method for the class.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|
<!– System.Object(overriden) –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Single<!– System.Single –> |
Name | Type | Description |
---|---|---|
imageStream | Stream<!– System.IO.Stream –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This method returns the stream of the GeoImage.
This method will raise the event that allows the user to supply their own stream. The event is also raised if they do not attempt to open the file specified in the PathFileName property.
Return Type | Description |
---|---|
Stream<!– System.IO.Stream –> | This method returns the stream of the GeoImage. |
Name | Type | Description |
---|---|---|
canvas | GeoCanvas<!– ThinkGeo.MapSuite.PortableCore.GeoCanvas –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Single<!– System.Single –> |
Name | Type | Description |
---|---|---|
imageStream | Stream<!– System.IO.Stream –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | |
j | Int32<!– System.Int32 –> | |
i | Int32<!– System.Int32 –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Int32<!– System.Int32 –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Object<!– System.Object –> |
Name | Type | Description |
---|
<!– System.Object –> Go Back
This method raises the StreamLoading event, allowing you to specify your own stream.
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
e | StreamLoadingEventArgs<!– ThinkGeo.MapSuite.PortableCore.StreamLoadingEventArgs –> | This parameter represents the event arguments for the StreamLoading event. |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | |
streamSource | Stream<!– System.IO.Stream –> | |
imageFormat | GeoImageFormat<!– ThinkGeo.MapSuite.Portable.GeoImageFormat –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | |
stream | Stream<!– System.IO.Stream –> | |
jpegCodecInfo | Guid<!– System.Guid –> | |
encoderParameters | Guid<!– System.Guid –> | |
jpegQuality | Int64<!– System.Int64 –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | |
x | Int32<!– System.Int32 –> | |
y | Int32<!– System.Int32 –> | |
color | GeoColor<!– ThinkGeo.MapSuite.PortableCore.GeoColor –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type | Description |
---|---|
Void<!– System.Void –> |
Name | Type | Description |
---|---|---|
image | GeoImage<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> | |
xDpi | Single<!– System.Single –> | |
yDpi | Single<!– System.Single –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This property returns the image format.
Return Type |
---|
Guid<!– System.Guid –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This property returns the filename part of the PathFileName.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
Return Type |
---|
Object<!– System.Object –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
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 Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
This property returns the path part of the PathFileName.
Return Type |
---|
String<!– System.String –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
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<!– ThinkGeo.MapSuite.PortableCore.StreamLoadingEventArgs –> |
<!– ThinkGeo.MapSuite.PortableCore.GeoImage –> Go Back
NOTOC MapSuitePortableCore ThinkGeo.MapSuite.PortableCore UpdateDocumentation