C# 클래스 Vidka.Components.VideoShitboxDrawOps.CommonDrawOps

파일 보기 프로젝트 열기: miktemk/VidkaEditor

공개 메소드들

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

비공개 메소드들

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

메소드 상세

CommonDrawOps() 공개 메소드

public CommonDrawOps ( ) : System
리턴 System

DrawClipBitmaps() 공개 메소드

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

DrawTrimBracket() 공개 메소드

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

DrawVideoClipBorder() 공개 메소드

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

DrawWaveform() 공개 메소드

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