C# Class IBE.Enums_and_Utility_Classes.RNGraphics

Show file Open project: Duke-Jones/ED-IBE Class Usage Examples

Private Methods

Method Description
Contrast ( Bitmap sourceBitmap, int threshold ) : Bitmap
Crop ( Bitmap b, Rectangle r ) : Bitmap
Invert ( Bitmap original ) : Bitmap
MakeBrighter ( Bitmap original, float amount ) : Bitmap
MakeGrayscale ( Bitmap original ) : Bitmap
PreprocessScreenshot ( Bitmap b, int Preset, int GUIColorCutoffLevel ) : Bitmap
adjustBitmap ( Bitmap originalImage, float brightness = 1.0f, float contrast = 1.0f, float gamma = 1.0f ) : Bitmap

change brightness, contrast and/or gamma of a bitmap (see http://stackoverflow.com/questions/15408607/adjust-brightness-contrast-and-gamma-of-an-image)

changeColour ( this original, Color oldColor, Color newColor, int Tolerance, enPixelCompare CompareType = enPixelCompare.pc_RGB_all ) : Bitmap

(see http://stackoverflow.com/questions/16346212/can-you-change-one-colour-to-another-in-an-bitmap-image and https://msdn.microsoft.com/en-GB/library/ms229672%28v=vs.90%29.aspx)

hasGUIColoredPixel ( Bitmap bm ) : bool
invertBitmap ( Bitmap original ) : Bitmap

inverts a bitmap

makeGrayscaleBitmap ( Bitmap original ) : Bitmap

set bitmap to greyscale (see http://tech.pro/tutorial/660/csharp-tutorial-convert-a-color-image-to-grayscale)