C# Класс CadEditor.UtilsGDI

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ConvertArrayToBitmap ( ushort array ) : Bitmap
ConvertBitmapToArray ( Bitmap bmp ) : ].ushort[][

Описание методов

CropImage() публичный статический Метод

public static CropImage ( Image source, Rectangle rect ) : Image
source Image
rect System.Drawing.Rectangle
Результат Image

GlueImages() публичный статический Метод

public static GlueImages ( Image images, int width, int height ) : Bitmap
images Image
width int
height int
Результат System.Drawing.Bitmap

ResizeBitmap() публичный статический Метод

public static ResizeBitmap ( Image sourceBMP, int width, int height ) : Image
sourceBMP Image
width int
height int
Результат Image

setBlocks() публичный статический Метод

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
Результат void