C# 클래스 Detector.Helper.ImageHelpers

파일 보기 프로젝트 열기: AshleighAdams/Detector

공개 메소드들

메소드 설명
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)

메소드 상세

DrawBox() 공개 메소드

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
리턴 void

DrawBox() 공개 메소드

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
리턴 void

DrawBox() 공개 메소드

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
리턴 void

ImageHelpers() 공개 메소드

Provides some nice functions that can save you a lot of time
public ImageHelpers ( ) : System
리턴 System

MotionBlur() 공개 메소드

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
리턴 void

SetPixel() 공개 메소드

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
리턴 void