C# Class CadEditor.UtilsGDI

Mostra file Open project: spiiin/CadEditor Class Usage Examples

Public Methods

Method 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

Method Description
ConvertArrayToBitmap ( ushort array ) : Bitmap
ConvertBitmapToArray ( Bitmap bmp ) : ].ushort[][

Method Details

CropImage() public static method

public static CropImage ( Image source, Rectangle rect ) : Image
source Image
rect System.Drawing.Rectangle
return Image

GlueImages() public static method

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

ResizeBitmap() public static method

public static ResizeBitmap ( Image sourceBMP, int width, int height ) : Image
sourceBMP Image
width int
height int
return Image

setBlocks() public static method

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
return void