C# Class Nintenlord.ROMHacking.BitmapHelper

ファイルを表示 Open project: Diegoisawesome/AwesomeMapEditor-old

Public Methods

Method Description
BitsPerPixel ( PixelFormat pixelFormat ) : int
FindMatch2D ( Bitmap bigImage, Rectangle findIn, Bitmap smallImage, Rectangle findWhat ) : Rectangle
FindMatch2D ( byte bigImage, Size bigSize, Rectangle findIn, byte smallImage, Size smallSize, Rectangle findWhat ) : Rectangle
FitsIn ( Size &size, Rectangle &rect ) : bool
GetAntiColor ( Color color ) : Color
GetPalette ( Bitmap bitmap ) : List
IsBigger ( Size &big, Size &small ) : bool
ToHsv ( Color color, int &Hue, int &Saturation, int &Value ) : void
ToRgb ( int Hue, int Saturation, int Value ) : Color
Transpose ( Point &point ) : void
Transpose ( PointF &point ) : void
Transpose ( Rectangle &rect ) : void
Transpose ( RectangleF &rect ) : void

Method Details

BitsPerPixel() public static method

public static BitsPerPixel ( PixelFormat pixelFormat ) : int
pixelFormat PixelFormat
return int

FindMatch2D() public static method

public static FindMatch2D ( Bitmap bigImage, Rectangle findIn, Bitmap smallImage, Rectangle findWhat ) : Rectangle
bigImage System.Drawing.Bitmap
findIn System.Drawing.Rectangle
smallImage System.Drawing.Bitmap
findWhat System.Drawing.Rectangle
return System.Drawing.Rectangle

FindMatch2D() public static method

public static FindMatch2D ( byte bigImage, Size bigSize, Rectangle findIn, byte smallImage, Size smallSize, Rectangle findWhat ) : Rectangle
bigImage byte
bigSize System.Drawing.Size
findIn System.Drawing.Rectangle
smallImage byte
smallSize System.Drawing.Size
findWhat System.Drawing.Rectangle
return System.Drawing.Rectangle

FitsIn() public static method

public static FitsIn ( Size &size, Rectangle &rect ) : bool
size System.Drawing.Size
rect System.Drawing.Rectangle
return bool

GetAntiColor() public static method

public static GetAntiColor ( Color color ) : Color
color Color
return Color

GetPalette() public static method

public static GetPalette ( Bitmap bitmap ) : List
bitmap System.Drawing.Bitmap
return List

IsBigger() public static method

public static IsBigger ( Size &big, Size &small ) : bool
big System.Drawing.Size
small System.Drawing.Size
return bool

ToHsv() public static method

public static ToHsv ( Color color, int &Hue, int &Saturation, int &Value ) : void
color Color
Hue int
Saturation int
Value int
return void

ToRgb() public static method

public static ToRgb ( int Hue, int Saturation, int Value ) : Color
Hue int
Saturation int
Value int
return Color

Transpose() public static method

public static Transpose ( Point &point ) : void
point Point
return void

Transpose() public static method

public static Transpose ( PointF &point ) : void
point System.Drawing.PointF
return void

Transpose() public static method

public static Transpose ( Rectangle &rect ) : void
rect System.Drawing.Rectangle
return void

Transpose() public static method

public static Transpose ( RectangleF &rect ) : void
rect System.Drawing.RectangleF
return void