C# Class CadEditor.UtilsGDI

Afficher le fichier Open project: spiiin/CadEditor Class Usage Examples

Méthodes publiques

Méthode Description
CropImage ( Image source, Rectangle rect ) : Image
GlueImages ( Image images, int width, int height ) : Bitmap
ResizeBitmap ( Image sourceBMP, int width, int height ) : Image
setBlocks ( ImageList bigBlocks, float curButtonScale = 2, int blockWidth = 32, int blockHeight = 32, MapViewType curDrawType = MapViewType.Tiles, bool showAxis = true ) : void

Private Methods

Méthode Description
ConvertArrayToBitmap ( ushort array ) : Bitmap
ConvertBitmapToArray ( Bitmap bmp ) : ].ushort[][

Method Details

CropImage() public static méthode

public static CropImage ( Image source, Rectangle rect ) : Image
source Image
rect System.Drawing.Rectangle
Résultat Image

GlueImages() public static méthode

public static GlueImages ( Image images, int width, int height ) : Bitmap
images Image
width int
height int
Résultat System.Drawing.Bitmap

ResizeBitmap() public static méthode

public static ResizeBitmap ( Image sourceBMP, int width, int height ) : Image
sourceBMP Image
width int
height int
Résultat Image

setBlocks() public static méthode

public static setBlocks ( ImageList bigBlocks, float curButtonScale = 2, int blockWidth = 32, int blockHeight = 32, MapViewType curDrawType = MapViewType.Tiles, bool showAxis = true ) : void
bigBlocks System.Windows.Forms.ImageList
curButtonScale float
blockWidth int
blockHeight int
curDrawType MapViewType
showAxis bool
Résultat void