Table of Contents

ThinkGeo.MapSuite.Core.GdiPlusRasterSource

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 allows you to view standard .NET GDI+ image types such as BMP, TIF, JPG, and PNG.

Inheritance Hierarchy

Members Summary

Public Constructors

GdiPlusRasterSource()

Remarks
Parameters

GdiPlusRasterSource(String)

Remarks
Parameters

GdiPlusRasterSource(String,String)

Remarks
Parameters

GdiPlusRasterSource(String,RectangleShape)

Remarks
Parameters

Protected Constructors

Public Methods

CloneDeep()

Remarks
Return Value
Parameters

GetWorldFileText()

Remarks
Return Value
Parameters

GetImageWidth()

Remarks
Return Value
Parameters

GetImageHeight()

Remarks
Return Value
Parameters

GetHorizontalResolution()

Remarks
Return Value
Parameters

GetVerticalResolution()

Remarks
Return Value
Parameters

GetBoundingBox()

Remarks
Return Value
Parameters

GetProjectionText()

Remarks
Return Value
Parameters

Open()

Remarks
Return Value
Parameters

Close()

Remarks
Return Value
Parameters

GetImage(RectangleShape,Int32,Int32)

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

GetImageWidthCore()

Remarks
Return Value
Parameters

GetImageHeightCore()

Remarks
Return Value
Parameters

OpenCore()

Remarks
Return Value
Parameters

CloseCore()

Remarks
Return Value
Parameters

GetImageCore(RectangleShape,Int32,Int32)

Remarks
Return Value
Parameters

GetBoundingBoxCore()

Remarks
Return Value
Parameters

OnOpeningRasterSource(OpeningRasterSourceEventArgs)

Remarks
Return Value
Parameters

OnOpenedRasterSource(OpenedRasterSourceEventArgs)

Remarks
Return Value
Parameters

OnClosingRasterSource(ClosingRasterSourceEventArgs)

Remarks
Return Value
Parameters

OnClosedRasterSource(ClosedRasterSourceEventArgs)

Remarks
Return Value
Parameters

CloneDeepCore()

Remarks
Return Value
Parameters

GetProjectionTextCore()

Remarks
Return Value
Parameters

GetWrappingImageLeft(RectangleShape,Double,Double,RectangleShape)

Remarks
Return Value
Parameters

GetWrappingImageRight(RectangleShape,Double,Double,RectangleShape)

Remarks
Return Value
Parameters

Finalize()

Remarks
Return Value
Parameters

MemberwiseClone()

Remarks
Return Value
Parameters

Public Properties

IsNegative

This property gets and sets whether the image shows as negative (inverted colors).

Remarks

You can set this property to show the negative of the image.

Return Value

IsGrayscale

This property gets and sets whether the image shows in grayscale.

Remarks

This property allows you to show the image in grayscale.

Return Value

FileName

This property returns the filename part of the PathFileName.

Remarks

None

Return Value

FilePath

This property returns the path part of the PathFileName.

Remarks

None

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 actually 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, 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.jpg” 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

Projection

N/A

Remarks

N/A

Return Value

Transparency

N/A

Remarks

N/A

Return Value

BlueTranslation

N/A

Remarks

N/A

Return Value

RedTranslation

N/A

Remarks

N/A

Return Value

GreenTranslation

N/A

Remarks

N/A

Return Value

IsOpen

N/A

Remarks

N/A

Return Value

HasProjectionText

N/A

Remarks

N/A

Return Value

Protected Properties

HasProjectionTextCore

N/A

Remarks

N/A

Return Value

Public Events

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

Remarks

If you wish, you can pass in your own stream to represent the image. The stream can come from a variety of places, including isolated storage, a compressed file, or an encrypted stream. When the image 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 class will attempt to load the file from the file system using the PathFileName property.

Event Arguments:StreamLoadingEventArgs

OpeningRasterSource N/A

Remarks

N/A

Event Arguments:OpeningRasterSourceEventArgs

OpenedRasterSource N/A

Remarks

N/A

Event Arguments:OpenedRasterSourceEventArgs

ClosingRasterSource N/A

Remarks

N/A

Event Arguments:ClosingRasterSourceEventArgs

ClosedRasterSource N/A

Remarks

N/A

Event Arguments:ClosedRasterSourceEventArgs