User Tools

Site Tools


thinkgeo.mapsuite.core.unsafehelper

ThinkGeo.MapSuite.Core.UnsafeHelper

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 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.txt · Last modified: 2017/03/16 21:59 (external edit)