C# Class LitDev.Engines.FastPixel

Mostra file Open project: litdev1/LitDev Class Usage Examples

Public Properties

Property Type Description
UseFastPixel bool
swGetBitmap Stopwatch
swGetBitmapImage Stopwatch

Public Methods

Method Description
Clear ( Color colour ) : void
FastPixel ( Bitmap bitmap ) : System
FastPixel ( System.Windows.Media.Imaging.BitmapSource bitmap ) : System
GetBitmap ( System.Windows.Media.Imaging.BitmapSource bmSource ) : Bitmap
GetBitmapImage ( Bitmap bm ) : BitmapImage
GetPixel ( int x, int y ) : Color
SetPixel ( int x, int y, Color colour ) : void
Unlock ( bool setPixels ) : void
Update ( ) : void

Private Methods

Method Description
Lock ( ) : void
Setup ( ) : void

Method Details

Clear() public method

public Clear ( Color colour ) : void
colour Color
return void

FastPixel() public method

public FastPixel ( Bitmap bitmap ) : System
bitmap System.Drawing.Bitmap
return System

FastPixel() public method

public FastPixel ( System.Windows.Media.Imaging.BitmapSource bitmap ) : System
bitmap System.Windows.Media.Imaging.BitmapSource
return System

GetBitmap() public static method

public static GetBitmap ( System.Windows.Media.Imaging.BitmapSource bmSource ) : Bitmap
bmSource System.Windows.Media.Imaging.BitmapSource
return System.Drawing.Bitmap

GetBitmapImage() public static method

public static GetBitmapImage ( Bitmap bm ) : BitmapImage
bm System.Drawing.Bitmap
return System.Windows.Media.Imaging.BitmapImage

GetPixel() public method

public GetPixel ( int x, int y ) : Color
x int
y int
return Color

SetPixel() public method

public SetPixel ( int x, int y, Color colour ) : void
x int
y int
colour Color
return void

Unlock() public method

public Unlock ( bool setPixels ) : void
setPixels bool
return void

Update() public method

public Update ( ) : void
return void

Property Details

UseFastPixel public_oe static_oe property

public static bool UseFastPixel
return bool

swGetBitmap public_oe static_oe property

public static Stopwatch swGetBitmap
return Stopwatch

swGetBitmapImage public_oe static_oe property

public static Stopwatch swGetBitmapImage
return Stopwatch