C# Class RectangleResize.RgbaBitmapBuffer

Mostra file Open project: EFanZh/EFanZh Class Usage Examples

Public Methods

Method Description
Copy ( ) : RgbaBitmapBuffer
FromBitmapSource ( System.Windows.Media.Imaging.BitmapSource bitmapSource ) : RgbaBitmapBuffer
GetPixel ( int x, int y ) : Pixel
RgbaBitmapBuffer ( int width, int height ) : System.Linq
SetPixel ( int x, int y, Pixel value ) : void
ToBitmapSource ( double dpiX, double dpiY ) : System.Windows.Media.Imaging.BitmapSource
ToBitmapSource ( int width, int height, double dpiX, double dpiY ) : System.Windows.Media.Imaging.BitmapSource

Private Methods

Method Description
RgbaBitmapBuffer ( float buffer, int floatStride ) : System.Linq

Method Details

Copy() public method

public Copy ( ) : RgbaBitmapBuffer
return RgbaBitmapBuffer

FromBitmapSource() public static method

public static FromBitmapSource ( System.Windows.Media.Imaging.BitmapSource bitmapSource ) : RgbaBitmapBuffer
bitmapSource System.Windows.Media.Imaging.BitmapSource
return RgbaBitmapBuffer

GetPixel() public method

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

RgbaBitmapBuffer() public method

public RgbaBitmapBuffer ( int width, int height ) : System.Linq
width int
height int
return System.Linq

SetPixel() public method

public SetPixel ( int x, int y, Pixel value ) : void
x int
y int
value Pixel
return void

ToBitmapSource() public method

public ToBitmapSource ( double dpiX, double dpiY ) : System.Windows.Media.Imaging.BitmapSource
dpiX double
dpiY double
return System.Windows.Media.Imaging.BitmapSource

ToBitmapSource() public method

public ToBitmapSource ( int width, int height, double dpiX, double dpiY ) : System.Windows.Media.Imaging.BitmapSource
width int
height int
dpiX double
dpiY double
return System.Windows.Media.Imaging.BitmapSource