User Tools

Site Tools


thinkgeo.mapsuite.core.unsafehelper

This is an old revision of the document!


ThinkGeo.MapSuite.Core.UnsafeHelper

This static class is a wrapper contains unsafe native methods

Inheritance Hierarchy

  • System.Object
    • ThinkGeo.MapSuite.Core.UnsafeHelper

Members Summary

Public Constructors

Protected Constructors

Public Methods

ToString()

N/A

Remarks

N/A

Return Value
  • Type:String
  • Description:N/A
Parameters

Equals(Object)

N/A

Remarks

N/A

Return Value
  • Type:Boolean
  • Description:N/A
Parameters
  • obj
    • Type:Object
    • Description:N/A

GetHashCode()

N/A

Remarks

N/A

Return Value
  • Type:Int32
  • Description:N/A
Parameters

GetType()

N/A

Remarks

N/A

Return Value
  • Type:Type
  • Description:N/A
Parameters

CopyImage(Bitmap,Bitmap,Rectangle)

This method transfers pixels from source bitmap to destination bitmap within a specified rectangle.

Remarks

It will call GDI32.dll API CreateCompatibleDC and BitBlt.

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • source
    • Type:Bitmap
    • Description:source bitmap
  • target
    • Type:Bitmap
    • Description:target bitmap
  • r
    • Type:Rectangle
    • Description:the specified rectangle

CopyImage(Bitmap,Graphics,Rectangle,Rectangle,CopyPixelOperation)

This method transfers pixels from source bitmap with a specified source rectangle to destination a specified destination rectangle by specified CopyPixelOperation.

Remarks

It will call GDI32.dll API CreateCompatibleDC and BitBlt.

Return Value
  • Type:Void
  • Description:N/A
Parameters
  • source
    • Type:Bitmap
    • Description:source bitmap
  • target
    • Type:Graphics
    • Description:target graphics
  • sourceRectangle
    • Type:Rectangle
    • Description:the specified rectangle for source bitmap
  • targetRectangle
    • Type:Rectangle
    • Description:the specified rectangle for target graphics
  • copyPixelOperation
    • Type:CopyPixelOperation
    • Description:Specifies a raster-operation code.These codes define how the color data for the source rectangle is to be combined with the color data for the destination rectangle to achieve the final color.

IsKeyPressed(Keys)

Returns a value represents is a specified key pressed or not.

Remarks

It will call User32.dll API GetAsyncKeyState internally.

Return Value
  • Type:Boolean
  • Description:Returns a value represents is a specified key pressed or not.
Parameters
  • keys
    • Type:Keys
    • Description:An enum represents which key is pressed or not.

FastLoadImageFromFile(String)

N/A

Remarks

N/A

Return Value
  • Type:Bitmap
  • Description:N/A
Parameters
  • pathFileName
    • Type:String
    • Description:N/A

Protected Methods

Finalize()

N/A

Remarks

N/A

Return Value
  • Type:Void
  • Description:N/A
Parameters

MemberwiseClone()

N/A

Remarks

N/A

Return Value
  • Type:Object
  • Description:N/A
Parameters

Public Properties

Protected Properties

Public Events

thinkgeo.mapsuite.core.unsafehelper.1442555637.txt.gz ยท Last modified: 2015/09/18 05:53 by admin