User Tools

Site Tools


thinkgeo.mapsuite.core.unsafehelper

This is an old revision of the document!


ThinkGeo.MapSuite.Core.UnsafeHelper

<!– Class –> This static class is a wrapper contains unsafe native methods

Inheritance Hierarchy

Members Summary

Public Constructors

Name Parameters DeclaringType Summary

Protected Constructors

Name Parameters DeclaringType Summary

Public Methods

Name Parameters DeclaringType Summary
Public MethodStatic MemberCopyImage Bitmap, Bitmap, Rectangle This method transfers pixels from source bitmap to destination bitmap within a specified rectangle.
Public MethodStatic MemberCopyImage 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.
Public MethodEquals Object Object
Public MethodStatic MemberFastLoadImageFromFile String
Public MethodGetHashCode Object
Public MethodGetType Object
Public MethodStatic MemberIsKeyPressed Keys Returns a value represents is a specified key pressed or not.
Public MethodToString Object

Protected Methods

Name Parameters DeclaringType Summary
Protected MethodFinalize Object
Protected MethodMemberwiseClone Object

Public Properties

Name Return DeclaringType Summary

Protected Properties

Name Return DeclaringType Summary

Public Events

Name Event Arguments DeclaringType Summary

Public Constructors

Protected Constructors

Public Methods

CopyImage(Bitmap, Bitmap, Rectangle)

<!– static –> 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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
source Bitmap<!– System.Drawing.Bitmap –> source bitmap
target Bitmap<!– System.Drawing.Bitmap –> target bitmap
r Rectangle<!– System.Drawing.Rectangle –> the specified rectangle

<!– ThinkGeo.MapSuite.Core.UnsafeHelper –> Go Back

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

<!– static –> 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

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description
source Bitmap<!– System.Drawing.Bitmap –> source bitmap
target Graphics<!– System.Drawing.Graphics –> target graphics
sourceRectangle Rectangle<!– System.Drawing.Rectangle –> the specified rectangle for source bitmap
targetRectangle Rectangle<!– System.Drawing.Rectangle –> the specified rectangle for target graphics
copyPixelOperation CopyPixelOperation<!– System.Drawing.CopyPixelOperation –> 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.

<!– ThinkGeo.MapSuite.Core.UnsafeHelper –> Go Back

Equals(Object)

Return Value

Return Type Description
Boolean<!– System.Boolean –>

Parameters

Name Type Description
obj Object<!– System.Object –>

<!– System.Object –> Go Back

FastLoadImageFromFile(String)

<!– static –>

Return Value

Return Type Description
Bitmap<!– System.Drawing.Bitmap –>

Parameters

Name Type Description
pathFileName String<!– System.String –>

<!– ThinkGeo.MapSuite.Core.UnsafeHelper –> Go Back

GetHashCode()

Return Value

Return Type Description
Int32<!– System.Int32 –>

Parameters

Name Type Description

<!– System.Object –> Go Back

GetType()

Return Value

Return Type Description
Type<!– System.Type –>

Parameters

Name Type Description

<!– System.Object –> Go Back

IsKeyPressed(Keys)

<!– static –> Returns a value represents is a specified key pressed or not.

Remarks

It will call User32.dll API GetAsyncKeyState internally.

Return Value

Return Type Description
Boolean<!– System.Boolean –> Returns a value represents is a specified key pressed or not.

Parameters

Name Type Description
keys Keys<!– System.Windows.Forms.Keys –> An enum represents which key is pressed or not.

<!– ThinkGeo.MapSuite.Core.UnsafeHelper –> Go Back

ToString()

Return Value

Return Type Description
String<!– System.String –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Protected Methods

Finalize()

Return Value

Return Type Description
Void<!– System.Void –>

Parameters

Name Type Description

<!– System.Object –> Go Back

MemberwiseClone()

Return Value

Return Type Description
Object<!– System.Object –>

Parameters

Name Type Description

<!– System.Object –> Go Back

Public Properties

Protected Properties

Public Events

thinkgeo.mapsuite.core.unsafehelper.1440040130.txt.gz · Last modified: 2015/09/17 10:41 (external edit)