C# Class CSharpUtils.BitmapUtils

Mostra file Open project: soywiz/csharputils

Public Methods

Method Description
CompareBitmaps ( Bitmap ReferenceBitmap, Bitmap OutputBitmap, double Threshold = 0.01 ) : System.CompareResult
GetColorPalette ( int nColors ) : System.Drawing.Imaging.ColorPalette
TransferChannelsDataInterleaved ( Rectangle Rectangle, Bitmap Bitmap, byte NewDataPtr, Direction Direction ) : void
TransferChannelsDataLinear ( Bitmap Bitmap, byte NewData, Direction Direction ) : void
TransferChannelsDataLinear ( Rectangle Rectangle, Bitmap Bitmap, byte NewData, Direction Direction ) : void

Method Details

CompareBitmaps() public static method

public static CompareBitmaps ( Bitmap ReferenceBitmap, Bitmap OutputBitmap, double Threshold = 0.01 ) : System.CompareResult
ReferenceBitmap System.Drawing.Bitmap
OutputBitmap System.Drawing.Bitmap
Threshold double
return System.CompareResult

GetColorPalette() public static method

public static GetColorPalette ( int nColors ) : System.Drawing.Imaging.ColorPalette
nColors int
return System.Drawing.Imaging.ColorPalette

TransferChannelsDataInterleaved() public static method

public static TransferChannelsDataInterleaved ( Rectangle Rectangle, Bitmap Bitmap, byte NewDataPtr, Direction Direction ) : void
Rectangle System.Drawing.Rectangle
Bitmap System.Drawing.Bitmap
NewDataPtr byte
Direction Direction
return void

TransferChannelsDataLinear() public static method

public static TransferChannelsDataLinear ( Bitmap Bitmap, byte NewData, Direction Direction ) : void
Bitmap System.Drawing.Bitmap
NewData byte
Direction Direction
return void

TransferChannelsDataLinear() public static method

public static TransferChannelsDataLinear ( Rectangle Rectangle, Bitmap Bitmap, byte NewData, Direction Direction ) : void
Rectangle System.Drawing.Rectangle
Bitmap System.Drawing.Bitmap
NewData byte
Direction Direction
return void