C# Class Detector.Helper.ImageHelpers

Afficher le fichier Open project: AshleighAdams/Detector

Méthodes publiques

Méthode Description
DrawBox ( ObjectTracked obj, Bitmap &bmp, Color col ) : void

Draw a box around an object

DrawBox ( Target t, Bitmap &bmp, Color col ) : void

Draw a box around a target

DrawBox ( int X, int Y, int width, int height, Bitmap &bmp, Color col, bool fill ) : void

Draw a box around the co-ords with a color

ImageHelpers ( ) : System

Provides some nice functions that can save you a lot of time

MotionBlur ( Bitmap &imagetoblur, Bitmap &current, int ammount ) : void

Blurs an image with another image with a multiplier

SetPixel ( BitmapData &bmp, int x, int y, Color col ) : void

Sets the pixel to a cetain color (Aplha works)

Method Details

DrawBox() public méthode

Draw a box around an object
public DrawBox ( ObjectTracked obj, Bitmap &bmp, Color col ) : void
obj Detector.Tracking.ObjectTracked Object to draw around
bmp System.Drawing.Bitmap The bitmap to draw to
col Color Color
Résultat void

DrawBox() public méthode

Draw a box around a target
public DrawBox ( Target t, Bitmap &bmp, Color col ) : void
t Detector.Motion.Target The target to draw a box around
bmp System.Drawing.Bitmap The bitmap to draw to
col Color Color
Résultat void

DrawBox() public méthode

Draw a box around the co-ords with a color
public DrawBox ( int X, int Y, int width, int height, Bitmap &bmp, Color col, bool fill ) : void
X int X
Y int Y
width int Width of the box
height int Height of the box
bmp System.Drawing.Bitmap The bitmap to draw to
col Color Color to draw with
fill bool
Résultat void

ImageHelpers() public méthode

Provides some nice functions that can save you a lot of time
public ImageHelpers ( ) : System
Résultat System

MotionBlur() public méthode

Blurs an image with another image with a multiplier
public MotionBlur ( Bitmap &imagetoblur, Bitmap &current, int ammount ) : void
imagetoblur System.Drawing.Bitmap The image that will be modified
current System.Drawing.Bitmap The current image to blur with
ammount int Blur over how many frames
Résultat void

SetPixel() public méthode

Sets the pixel to a cetain color (Aplha works)
public SetPixel ( BitmapData &bmp, int x, int y, Color col ) : void
bmp System.Drawing.Imaging.BitmapData The bitmap data
x int X
y int Y
col Color Color to draw with
Résultat void