User Tools

Site Tools


thinkgeo.mapsuite.core.gdiplusrasterlayer

This is an old revision of the document!


ThinkGeo.MapSuite.Core.GdiPlusRasterLayer

This class represents general image types to be drawn on the map, such as .BMP, .JPG, .PNG, etc.

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.Layer
      • ThinkGeo.MapSuite.Core.RasterLayer
        • ThinkGeo.MapSuite.Core.GdiPlusRasterLayer

Members Summary

Public Constructors

GdiPlusRasterLayer

  • Parameters:N/A
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

GdiPlusRasterLayer

  • Parameters:String
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

GdiPlusRasterLayer

  • Parameters:String,String
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

GdiPlusRasterLayer

  • Parameters:String,RectangleShape
  • DeclaringType:N/A
  • Summary:This is a constructor for the class.

Protected Constructors

Public Methods

CloneDeep

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

Close

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

Draw

Equals

  • Parameters:Object
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBox

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetHashCode

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetHorizontalResolution

GetProjectionText

GetThreadSafetyLevel

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

GetType

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetVerticalResolution

Open

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:TimeSpan
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

RequestDrawing

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

RequestDrawing

RequestDrawing

ToString

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

Protected Methods

CloneDeepCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

CloseCore

DrawAttributionCore

DrawCore

  • Parameters:GeoCanvas,Collection<SimpleCandidate>
  • DeclaringType:N/A
  • Summary:This method will draw the image from the GeoImage source based on the parameters provided.

DrawException

DrawExceptionCore

Finalize

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

GetBoundingBoxCore

GetThreadSafetyLevelCore

  • Parameters:N/A
  • DeclaringType:Layer
  • Summary:N/A

MemberwiseClone

  • Parameters:N/A
  • DeclaringType:Object
  • Summary:N/A

OnDrawingAttribution

OnDrawingException

OnDrawingProgressChanged

OnDrawnAttribution

OnDrawnException

OnRequestedDrawing

OnRequestingDrawing

OpenCore

Public Properties

Attribution

  • Return:String
  • Summary:N/A

BlueTranslation

  • Return:Single
  • Summary:N/A

DrawingExceptionMode

DrawingTime

  • Return:TimeSpan
  • Summary:N/A

GreenTranslation

  • Return:Single
  • Summary:N/A

HasBoundingBox

  • Return:Boolean
  • Summary:This property checks to see if a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs. In GdiPlusRasterLayer, we override this API and mark it as true.

HasProjectionText

  • Return:Boolean
  • Summary:N/A

ImageSource

InterpolationMode

  • Return:InterpolationMode
  • Summary:Gets or sets the interpolation mode associated with this System.Drawing.Graphics.

IsGrayscale

  • Return:Boolean
  • Summary:N/A

IsNegative

  • Return:Boolean
  • Summary:N/A

IsOpen

  • Return:Boolean
  • Summary:N/A

IsVisible

  • Return:Boolean
  • Summary:N/A

KeyColors

  • Return:Collection<GeoColor>
  • Summary:N/A

LowerThreshold

  • Return:Double
  • Summary:N/A

Name

  • Return:String
  • Summary:N/A

PathFilename

  • Return:String
  • Summary:This property gets and sets the path and filename of the image file you want to use.

RedTranslation

  • Return:Single
  • Summary:N/A

RequestDrawingInterval

  • Return:TimeSpan
  • Summary:N/A

Transparency

  • Return:Single
  • Summary:N/A

UpperThreshold

  • Return:Double
  • Summary:N/A

Protected Properties

IsOpenCore

  • Return:Boolean
  • Summary:N/A

Public Events

DrawingAttribution

DrawingException

DrawingProgressChanged

DrawnAttribution

DrawnException

RequestedDrawing

RequestingDrawing

StreamLoading

  • Event Arguments:StreamLoadingEventArgs
  • Summary:This event allows you to pass in your own stream to represent the image.

Public Constructors

GdiPlusRasterLayer()

This is a constructor for the class.

Remarks

If you use this constructor, then you need to set the PathFileName property manually before using the layer.

Parameters

GdiPlusRasterLayer(String)

This is a constructor for the class.

Remarks

This constructor gets the layer ready to use.

Parameters

pathFilename

  • Type:String
  • Description:This parameter is the path and filename of the GDI+ image file you want to use. If you want to load a Tiff(.tif or .tiff) files, please use the GeoTiffRasterLayer instead for better performance. Go Back === GdiPlusRasterLayer(String,String) === This is a constructor for the class. ==== Remarks ==== This constructor gets the layer ready to use. ==== Parameters ==== pathFilename * Type:String * Description:This parameter is the path and filename of the GDI+ image file you want to use. If you want to load a Tiff(.tif or .tiff) files, please use the GeoTiffRasterLayer instead for better performance.

worldfilePathFilename

  • Type:String
  • Description:This parameter is the world file path and filename for the GDI+ image you want to use. Go Back === GdiPlusRasterLayer(String,RectangleShape) === This is a constructor for the class. ==== Remarks ==== This constructor gets the layer ready to use. ==== Parameters ==== pathFilename * Type:String * Description:This parameter is the path and filename of the GDI+ image file you want to use. If you want to load a Tiff(.tif or .tiff) files, please use the GeoTiffRasterLayer instead for better performance.

imageExtent

  • Description:This parameter is the image extent of GDI+ image file you want to use. Go Back ===== Protected Constructors ===== ===== Public Methods ===== === CloneDeep() === N/A ==== Remarks ==== N/A Return Value * Return Type:Layer * Description:N/A ==== Parameters ==== Go Back === Close() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === Draw(GeoCanvas,Collection<SimpleCandidate>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:N/A Go Back === Equals(Object) === N/A ==== Remarks ==== N/A Return Value * Return Type:Boolean * Description:N/A ==== Parameters ==== obj * Type:Object * Description:N/A Go Back === GetBoundingBox() === N/A ==== Remarks ==== N/A Return Value * Return Type:RectangleShape * Description:N/A ==== Parameters ==== Go Back === GetHashCode() === N/A ==== Remarks ==== N/A Return Value * Return Type:Int32 * Description:N/A ==== Parameters ==== Go Back === GetHorizontalResolution() === N/A ==== Remarks ==== N/A Return Value * Return Type:Single * Description:N/A ==== Parameters ==== Go Back === GetProjectionText() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back === GetThreadSafetyLevel() === N/A ==== Remarks ==== N/A Return Value * Return Type:ThreadSafetyLevel * Description:N/A ==== Parameters ==== Go Back === GetType() === N/A ==== Remarks ==== N/A Return Value * Return Type:Type * Description:N/A ==== Parameters ==== Go Back === GetVerticalResolution() === N/A ==== Remarks ==== N/A Return Value * Return Type:Single * Description:N/A ==== Parameters ==== Go Back === Open() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === RequestDrawing(RectangleShape,TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentToRefresh * Type:RectangleShape * Description:N/A bufferTime * Type:TimeSpan * Description:N/A Go Back === RequestDrawing(IEnumerable<RectangleShape>,TimeSpan,RequestDrawingBufferTimeType) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentsToRefresh * Type:IEnumerable<RectangleShape> * Description:N/A bufferTime * Type:TimeSpan * Description:N/A bufferTimeType * Type:RequestDrawingBufferTimeType * Description:N/A Go Back === RequestDrawing(TimeSpan,RequestDrawingBufferTimeType) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== bufferTime * Type:TimeSpan * Description:N/A bufferTimeType * Type:RequestDrawingBufferTimeType * Description:N/A Go Back === RequestDrawing(TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== bufferTime * Type:TimeSpan * Description:N/A Go Back === RequestDrawing(IEnumerable<RectangleShape>) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentsToRefresh * Type:IEnumerable<RectangleShape> * Description:N/A Go Back === RequestDrawing(RectangleShape) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentToRefresh * Type:RectangleShape * Description:N/A Go Back === RequestDrawing() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === RequestDrawing(RectangleShape,TimeSpan,RequestDrawingBufferTimeType) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentToRefresh * Type:RectangleShape * Description:N/A bufferTime * Type:TimeSpan * Description:N/A bufferTimeType * Type:RequestDrawingBufferTimeType * Description:N/A Go Back === RequestDrawing(IEnumerable<RectangleShape>,TimeSpan) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== extentsToRefresh * Type:IEnumerable<RectangleShape> * Description:N/A bufferTime * Type:TimeSpan * Description:N/A Go Back === ToString() === N/A ==== Remarks ==== N/A Return Value * Return Type:String * Description:N/A ==== Parameters ==== Go Back ===== Protected Methods ===== === CloneDeepCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:Layer * Description:N/A ==== Parameters ==== Go Back === CloseCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === DrawAttributionCore(GeoCanvas,String) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A attribution * Type:String * Description:N/A Go Back === DrawCore(GeoCanvas,Collection<SimpleCandidate>) === This method will draw the image from the GeoImage source based on the parameters provided. ==== Remarks ==== The DrawCore method will be called when the layer is being drawn. It will determine if the image is within the extent and the threshold defined. If these parameters are met, it will query the RasterSource for an image and then apply the other various properties (such as transparency, etc.) on the image. Lastly, it will draw the image on the GeoImage or native image passed into the method. Return Value * Return Type:Void * Description:None ==== Parameters ==== canvas * Type:GeoCanvas * Description:This parameter is the GeoCanvas used to Draw the RasterLayer. labelsInAllLayers * Type:Collection<SimpleCandidate> * Description:This parameter is not used for ImageLayers. Go Back === DrawException(GeoCanvas,Exception) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A e * Type:Exception * Description:N/A Go Back === DrawExceptionCore(GeoCanvas,Exception) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== canvas * Type:GeoCanvas * Description:N/A e * Type:Exception * Description:N/A Go Back === Finalize() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back === GetBoundingBoxCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:RectangleShape * Description:N/A ==== Parameters ==== Go Back === GetThreadSafetyLevelCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:ThreadSafetyLevel * Description:N/A ==== Parameters ==== Go Back === MemberwiseClone() === N/A ==== Remarks ==== N/A Return Value * Return Type:Object * Description:N/A ==== Parameters ==== Go Back === OnDrawingAttribution(DrawingAttributionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== args * Type:DrawingAttributionLayerEventArgs * Description:N/A Go Back === OnDrawingException(DrawingExceptionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:DrawingExceptionLayerEventArgs * Description:N/A Go Back === OnDrawingProgressChanged(DrawingProgressChangedEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:DrawingProgressChangedEventArgs * Description:N/A Go Back === OnDrawnAttribution(DrawnAttributionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== args * Type:DrawnAttributionLayerEventArgs * Description:N/A Go Back === OnDrawnException(DrawnExceptionLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== e * Type:DrawnExceptionLayerEventArgs * Description:N/A Go Back === OnRequestedDrawing(RequestedDrawingLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== eventArgs * Type:RequestedDrawingLayerEventArgs * Description:N/A Go Back === OnRequestingDrawing(RequestingDrawingLayerEventArgs) === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== eventArgs * Type:RequestingDrawingLayerEventArgs * Description:N/A Go Back === OpenCore() === N/A ==== Remarks ==== N/A Return Value * Return Type:Void * Description:N/A ==== Parameters ==== Go Back ===== Public Properties ===== === Attribution === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === BlueTranslation === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === DrawingExceptionMode === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:DrawingExceptionMode Go Back === DrawingTime === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TimeSpan Go Back === GreenTranslation === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === HasBoundingBox === This property checks to see if a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs. In GdiPlusRasterLayer, we override this API and mark it as true. ==== Remarks ==== The default implementation in the base class returns false. ==== Return Value ==== Return Type:Boolean Go Back === HasProjectionText === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === ImageSource === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:RasterSource Go Back === InterpolationMode === Gets or sets the interpolation mode associated with this System.Drawing.Graphics. ==== Remarks ==== N/A ==== Return Value ==== Return Type:InterpolationMode Go Back === IsGrayscale === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsNegative === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsOpen === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === IsVisible === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back === KeyColors === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Collection<GeoColor> Go Back === LowerThreshold === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Double Go Back === Name === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:String Go Back === PathFilename === This property gets and sets the path and filename of the image file you want to use. ==== Remarks ==== This should be a complete path and filename for the image file. ==== Return Value ==== Return Type:String Go Back === RedTranslation === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === RequestDrawingInterval === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:TimeSpan Go Back === Transparency === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Single Go Back === UpperThreshold === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Double Go Back ===== Protected Properties ===== === IsOpenCore === N/A ==== Remarks ==== N/A ==== Return Value ==== Return Type:Boolean Go Back ===== Public Events ===== === DrawingAttribution === N/A ==== Remarks ==== N/A Event Arguments:DrawingAttributionLayerEventArgs Go Back === DrawingException === N/A ==== Remarks ==== N/A Event Arguments:DrawingExceptionLayerEventArgs Go Back === DrawingProgressChanged === N/A ==== Remarks ==== N/A Event Arguments:DrawingProgressChangedEventArgs Go Back === DrawnAttribution === N/A ==== Remarks ==== N/A Event Arguments:DrawnAttributionLayerEventArgs Go Back === DrawnException === N/A ==== Remarks ==== N/A Event Arguments:DrawnExceptionLayerEventArgs Go Back === RequestedDrawing === N/A ==== Remarks ==== N/A Event Arguments:RequestedDrawingLayerEventArgs Go Back === RequestingDrawing === N/A ==== Remarks ==== N/A Event Arguments:RequestingDrawingLayerEventArgs Go Back === 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

Go Back

thinkgeo.mapsuite.core.gdiplusrasterlayer.1442485752.txt.gz · Last modified: 2015/09/17 10:29 by admin