C# Class PsHandler.Custom.Bmp

Exibir arquivo Open project: kampiuceris/PsHandler Class Usage Examples

Public Methods

Method Description
BitmapArrayToBmpArray ( Bitmap bitmaps ) : PsHandler.Custom.Bmp[]
BitmapToBitmapSource ( Bitmap bitmap ) : System.Windows.Media.Imaging.BitmapSource
BitmapToBmp ( Bitmap bitmap ) : Bmp
BitmapToBytes_Unsafe ( Bitmap bitmap ) : byte[]
Bmp ( Bitmap bmp ) : System
Bmp ( byte bgra, int width, int height ) : System
Bmp ( int width, int height ) : System
Bmp ( int width, int height, Color initColor ) : System
Bmp ( int width, int height, System initColor ) : System
BmpToBitmap ( Bmp bmp ) : Bitmap
BytesToBitmap_Unsafe ( byte argb, int width, int height ) : Bitmap
CutBitmap ( Bitmap bitmap, Rectangle rect ) : Bitmap
CutRectangle ( Rectangle rect ) : Bmp
GetBytesBGRA ( ) : byte[]
GetPixelA ( int x, int y ) : byte
GetPixelB ( int x, int y ) : byte
GetPixelG ( int x, int y ) : byte
GetPixelR ( int x, int y ) : byte
HslToRgb ( double h, double s, double l ) : Color
HslToRgb ( double h, double s, double l, double &r, double &g, double &b ) : void
RgbToHsl ( Color rgb, double &h, double &s, double &l ) : void
RgbToHsl ( double r, double g, double b, double &h, double &s, double &l ) : void
SetPixelA ( int x, int y, byte value ) : void
SetPixelB ( int x, int y, byte value ) : void
SetPixelG ( int x, int y, byte value ) : void
SetPixelR ( int x, int y, byte value ) : void
ToBitmap ( ) : Bitmap
ToHighContrast ( ) : Bmp
ToHighContrastClone ( ) : Bmp
___CutBmp ( Bmp bmp, Rectangle rect ) : Bmp
___CutRectangle ( Rectangle rect ) : Bmp
this ( int x, int y ) : byte[]

Slower way to set/get pixels. Faster GetPixels A/R/G/B(int x, int y).

Method Details

BitmapArrayToBmpArray() public static method

public static BitmapArrayToBmpArray ( Bitmap bitmaps ) : PsHandler.Custom.Bmp[]
bitmaps System.Drawing.Bitmap
return PsHandler.Custom.Bmp[]

BitmapToBitmapSource() public static method

public static BitmapToBitmapSource ( Bitmap bitmap ) : System.Windows.Media.Imaging.BitmapSource
bitmap System.Drawing.Bitmap
return System.Windows.Media.Imaging.BitmapSource

BitmapToBmp() public static method

public static BitmapToBmp ( Bitmap bitmap ) : Bmp
bitmap System.Drawing.Bitmap
return Bmp

BitmapToBytes_Unsafe() public static method

public static BitmapToBytes_Unsafe ( Bitmap bitmap ) : byte[]
bitmap System.Drawing.Bitmap
return byte[]

Bmp() public method

public Bmp ( Bitmap bmp ) : System
bmp System.Drawing.Bitmap
return System

Bmp() public method

public Bmp ( byte bgra, int width, int height ) : System
bgra byte
width int
height int
return System

Bmp() public method

public Bmp ( int width, int height ) : System
width int
height int
return System

Bmp() public method

public Bmp ( int width, int height, Color initColor ) : System
width int
height int
initColor Color
return System

Bmp() public method

public Bmp ( int width, int height, System initColor ) : System
width int
height int
initColor System
return System

BmpToBitmap() public static method

public static BmpToBitmap ( Bmp bmp ) : Bitmap
bmp Bmp
return System.Drawing.Bitmap

BytesToBitmap_Unsafe() public static method

public static BytesToBitmap_Unsafe ( byte argb, int width, int height ) : Bitmap
argb byte
width int
height int
return System.Drawing.Bitmap

CutBitmap() public static method

public static CutBitmap ( Bitmap bitmap, Rectangle rect ) : Bitmap
bitmap System.Drawing.Bitmap
rect System.Drawing.Rectangle
return System.Drawing.Bitmap

CutRectangle() public method

public CutRectangle ( Rectangle rect ) : Bmp
rect System.Drawing.Rectangle
return Bmp

GetBytesBGRA() public method

public GetBytesBGRA ( ) : byte[]
return byte[]

GetPixelA() public method

public GetPixelA ( int x, int y ) : byte
x int
y int
return byte

GetPixelB() public method

public GetPixelB ( int x, int y ) : byte
x int
y int
return byte

GetPixelG() public method

public GetPixelG ( int x, int y ) : byte
x int
y int
return byte

GetPixelR() public method

public GetPixelR ( int x, int y ) : byte
x int
y int
return byte

HslToRgb() public static method

public static HslToRgb ( double h, double s, double l ) : Color
h double
s double
l double
return Color

HslToRgb() public static method

public static HslToRgb ( double h, double s, double l, double &r, double &g, double &b ) : void
h double
s double
l double
r double
g double
b double
return void

RgbToHsl() public static method

public static RgbToHsl ( Color rgb, double &h, double &s, double &l ) : void
rgb Color
h double
s double
l double
return void

RgbToHsl() public static method

public static RgbToHsl ( double r, double g, double b, double &h, double &s, double &l ) : void
r double
g double
b double
h double
s double
l double
return void

SetPixelA() public method

public SetPixelA ( int x, int y, byte value ) : void
x int
y int
value byte
return void

SetPixelB() public method

public SetPixelB ( int x, int y, byte value ) : void
x int
y int
value byte
return void

SetPixelG() public method

public SetPixelG ( int x, int y, byte value ) : void
x int
y int
value byte
return void

SetPixelR() public method

public SetPixelR ( int x, int y, byte value ) : void
x int
y int
value byte
return void

ToBitmap() public method

public ToBitmap ( ) : Bitmap
return System.Drawing.Bitmap

ToHighContrast() public method

public ToHighContrast ( ) : Bmp
return Bmp

ToHighContrastClone() public method

public ToHighContrastClone ( ) : Bmp
return Bmp

___CutBmp() public static method

public static ___CutBmp ( Bmp bmp, Rectangle rect ) : Bmp
bmp Bmp
rect System.Drawing.Rectangle
return Bmp

___CutRectangle() public method

public ___CutRectangle ( Rectangle rect ) : Bmp
rect System.Drawing.Rectangle
return Bmp

this() public method

Slower way to set/get pixels. Faster GetPixels A/R/G/B(int x, int y).
public this ( int x, int y ) : byte[]
x int
y int
return byte[]