C# 클래스 Nexus.Graphics.WriteableBitmapWrapper

With thanks to http://writeablebitmapex.codeplex.com/
파일 보기 프로젝트 열기: tgjones/nexus 1 사용 예제들

공개 메소드들

메소드 설명
Clear ( ) : void

Fills the whole WriteableBitmap with an empty color (0).

Clear ( Nexus.Graphics.Colors.Color color ) : void

Fills the whole WriteableBitmap with a color.

GetPixel ( int x, int y ) : Nexus.Graphics.Colors.Color

Gets the color of the pixel at the x, y coordinate as a Color struct.

Invalidate ( ) : void
SetPixel ( int x, int y, Nexus.Graphics.Colors.Color color ) : void

Sets the color of the pixel.

WriteableBitmapWrapper ( System.Windows.Media.Imaging.WriteableBitmap source ) : System
WriteableBitmapWrapper ( int width, int height ) : System

비공개 메소드들

메소드 설명
GetPixels ( ) : int[]

메소드 상세

Clear() 공개 메소드

Fills the whole WriteableBitmap with an empty color (0).
public Clear ( ) : void
리턴 void

Clear() 공개 메소드

Fills the whole WriteableBitmap with a color.
public Clear ( Nexus.Graphics.Colors.Color color ) : void
color Nexus.Graphics.Colors.Color The color used for filling.
리턴 void

GetPixel() 공개 메소드

Gets the color of the pixel at the x, y coordinate as a Color struct.
public GetPixel ( int x, int y ) : Nexus.Graphics.Colors.Color
x int The x coordinate of the pixel.
y int The y coordinate of the pixel.
리턴 Nexus.Graphics.Colors.Color

Invalidate() 공개 메소드

public Invalidate ( ) : void
리턴 void

SetPixel() 공개 메소드

Sets the color of the pixel.
public SetPixel ( int x, int y, Nexus.Graphics.Colors.Color color ) : void
x int The x coordinate (row).
y int The y coordinate (column).
color Nexus.Graphics.Colors.Color The color.
리턴 void

WriteableBitmapWrapper() 공개 메소드

public WriteableBitmapWrapper ( System.Windows.Media.Imaging.WriteableBitmap source ) : System
source System.Windows.Media.Imaging.WriteableBitmap
리턴 System

WriteableBitmapWrapper() 공개 메소드

public WriteableBitmapWrapper ( int width, int height ) : System
width int
height int
리턴 System