C# 클래스 Imager.cImage

파일 보기 프로젝트 열기: soywiz/cspspemu 1 사용 예제들

공개 메소드들

메소드 설명
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