C# Класс Imager.cImage

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

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

Метод Описание
Clone ( ) : object

Creates a new object that is a copy of the current instance.

Fill ( byte red, byte green, byte blue, byte alpha = 255 ) : void

Fills the image with the specified color.

Fill ( sPixel pixel ) : void

Fills the image with the specified pixel.

FromBitmap ( Bitmap bitmap ) : cImage

Initializes a new instance of the cImage class from a Bitmap instance.

ToBitmap ( ) : Bitmap

Converts this image to a Bitmap instance.

ToBitmap ( int sx, int sy, int width, int height ) : Bitmap

Converts this image to a Bitmap instance.

cImage ( cImage sourceImage ) : System.Collections.Concurrent

Initializes a new instance of the cImage class from a given one.

cImage ( cImage sourceImage, byte>.Func colorFilter ) : System.Collections.Concurrent

Initializes a new greyscale instance of the cImage class by filtering a given one.

cImage ( cImage sourceImage, sPixel>.Func filterFunction ) : System.Collections.Concurrent

Initializes a new instance of the cImage class by filtering a given one.

cImage ( int width, int height ) : System.Collections.Concurrent

Initializes a new instance of the cImage class.

this ( int x, int y ) : sPixel

Gets or sets the sPixel with the specified X, Y coordinates.

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

Clone() публичный Метод

Creates a new object that is a copy of the current instance.
public Clone ( ) : object
Результат object

Fill() публичный Метод

Fills the image with the specified color.
public Fill ( byte red, byte green, byte blue, byte alpha = 255 ) : void
red byte The red-value.
green byte The green-value.
blue byte The blue-value.
alpha byte The alpha-value.
Результат void

Fill() публичный Метод

Fills the image with the specified pixel.
public Fill ( sPixel pixel ) : void
pixel sPixel The pixel instance.
Результат void

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

Initializes a new instance of the cImage class from a Bitmap instance.
public static FromBitmap ( Bitmap bitmap ) : cImage
bitmap System.Drawing.Bitmap The bitmap.
Результат cImage

ToBitmap() публичный Метод

Converts this image to a Bitmap instance.
public ToBitmap ( ) : Bitmap
Результат System.Drawing.Bitmap

ToBitmap() публичный Метод

Converts this image to a Bitmap instance.
public ToBitmap ( int sx, int sy, int width, int height ) : Bitmap
sx int The start x.
sy int The start y.
width int The width.
height int The height.
Результат System.Drawing.Bitmap

cImage() публичный Метод

Initializes a new instance of the cImage class from a given one.
public cImage ( cImage sourceImage ) : System.Collections.Concurrent
sourceImage cImage The source image.
Результат System.Collections.Concurrent

cImage() публичный Метод

Initializes a new greyscale instance of the cImage class by filtering a given one.
public cImage ( cImage sourceImage, byte>.Func colorFilter ) : System.Collections.Concurrent
sourceImage cImage The source image.
colorFilter byte>.Func The greyscale filter.
Результат System.Collections.Concurrent

cImage() публичный Метод

Initializes a new instance of the cImage class by filtering a given one.
public cImage ( cImage sourceImage, sPixel>.Func filterFunction ) : System.Collections.Concurrent
sourceImage cImage The source image.
filterFunction sPixel>.Func The filter.
Результат System.Collections.Concurrent

cImage() публичный Метод

Initializes a new instance of the cImage class.
public cImage ( int width, int height ) : System.Collections.Concurrent
width int Width of the image.
height int Height of the image.
Результат System.Collections.Concurrent

this() публичный Метод

Gets or sets the sPixel with the specified X, Y coordinates.
public this ( int x, int y ) : sPixel
x int
y int
Результат sPixel