C# Class Vidka.Components.VideoShitboxDrawOps.CommonDrawOps

Show file Open project: miktemk/VidkaEditor

Public Methods

Method Description
CommonDrawOps ( ) : System
DrawClipBitmaps ( Graphics g, IVidkaOpContext context, ImageCacheManager imgCache, VidkaClipVideoAbstract vclip, int x1, int y1, int clipw, int clipvh, double secStart, double len ) : void
DrawTrimBracket ( Graphics g, int x, int y1, int y2, TrimDirection trimDirection, int bracketLength, int trimDeltaX, Pen penActive = null, Pen penActivePrev = null ) : void

Draws one red bracket if drag frames = 0. If there has been a drag > 0, draws 2 brackets: one purple for original edge, one red for active (under mouse)

DrawVideoClipBorder ( Graphics g, Pen pen15, int x1, int x2, int y1, int y2, int yEase2, int xEaseL, int xEaseR, long easeL, long easeR ) : void

This thing could be complex because we have curves... lol

DrawWaveform ( Graphics g, IVidkaOpContext context, ImageCacheManager imgCache, string mediaFilename, double audioLengthSec, double videoLengthSec, double audioOffsetSec, int x1, int y1, int clipw, int cliph, double secStart, double secEnd, bool isMuted, bool hasCustomAudio ) : void

The last parameter, sec2X is used to porperly position the wave within the given x1..x1+clipw space if it is too short

Private Methods

Method Description
DrawVideoThumbnail ( Graphics g, ImageCacheManager imgCache, string filenameAll, int index, int xCenter, int yCenter, int preferredWidth, int maxWidth ) : void
drawBesierFromMyBzPoints ( Graphics g, Pen penGray ) : void
drawTrimBracketSingle ( Graphics g, Pen pen, int x, int y1, int y2, TrimDirection direction, int bracketLength ) : void

Only used in drawTrimBracket()

Method Details

CommonDrawOps() public method

public CommonDrawOps ( ) : System
return System

DrawClipBitmaps() public method

public DrawClipBitmaps ( Graphics g, IVidkaOpContext context, ImageCacheManager imgCache, VidkaClipVideoAbstract vclip, int x1, int y1, int clipw, int clipvh, double secStart, double len ) : void
g System.Drawing.Graphics
context IVidkaOpContext
imgCache ImageCacheManager
vclip Vidka.Core.Model.VidkaClipVideoAbstract
x1 int
y1 int
clipw int
clipvh int
secStart double needs to be in seconds to figure out which thumb
len double needs to be in seconds to figure out which thumb
return void

DrawTrimBracket() public method

Draws one red bracket if drag frames = 0. If there has been a drag > 0, draws 2 brackets: one purple for original edge, one red for active (under mouse)
public DrawTrimBracket ( Graphics g, int x, int y1, int y2, TrimDirection trimDirection, int bracketLength, int trimDeltaX, Pen penActive = null, Pen penActivePrev = null ) : void
g System.Drawing.Graphics
x int
y1 int
y2 int
trimDirection TrimDirection
bracketLength int
trimDeltaX int
penActive System.Drawing.Pen
penActivePrev System.Drawing.Pen
return void

DrawVideoClipBorder() public method

This thing could be complex because we have curves... lol
public DrawVideoClipBorder ( Graphics g, Pen pen15, int x1, int x2, int y1, int y2, int yEase2, int xEaseL, int xEaseR, long easeL, long easeR ) : void
g System.Drawing.Graphics
pen15 System.Drawing.Pen
x1 int
x2 int
y1 int
y2 int
yEase2 int
xEaseL int
xEaseR int
easeL long
easeR long
return void

DrawWaveform() public method

The last parameter, sec2X is used to porperly position the wave within the given x1..x1+clipw space if it is too short
public DrawWaveform ( Graphics g, IVidkaOpContext context, ImageCacheManager imgCache, string mediaFilename, double audioLengthSec, double videoLengthSec, double audioOffsetSec, int x1, int y1, int clipw, int cliph, double secStart, double secEnd, bool isMuted, bool hasCustomAudio ) : void
g System.Drawing.Graphics
context IVidkaOpContext
imgCache ImageCacheManager
mediaFilename string
audioLengthSec double
videoLengthSec double
audioOffsetSec double
x1 int
y1 int
clipw int
cliph int
secStart double
secEnd double
isMuted bool
hasCustomAudio bool
return void