336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
C# Panel DirectShow Video ScrollBar
public System.Windows.Forms.Panel pnlVideo;
public QuartzTypeLib.FilgraphManager m_objFilterGraph = null;
public QuartzTypeLib.IBasicAudio m_objBasicAudio = null;
public QuartzTypeLib.IVideoWindow m_objVideoWindow = null;
public QuartzTypeLib.IMediaEvent m_objMediaEvent = null;
public QuartzTypeLib.IMediaEventEx m_objMediaEventEx = null;
public QuartzTypeLib.IMediaPosition m_objMediaPosition = null;
public QuartzTypeLib.IMediaControl m_objMediaControl = null;
m_objVideoWindow.SetWindowPosition(pnlVideo.ClientRectangle.Left,
pnlVideo.ClientRectangle.Top,
pnlVideo.ClientRectangle.Height * (int)videoResolutionRate,
pnlVideo.ClientRectangle.Height);
m_objVideoWindow shows the video at original rate
1. ScrollBar Padding 20px
m_objVideoWindow.SetWindowPosition(pnlVideo.ClientRectangle.Left,
pnlVideo.ClientRectangle.Top,
(pnlVideo.ClientRectangle.Height - 20) * (int)videoResolutionRate,
pnlVideo.ClientRectangle.Height - 20);
2. Size and Scroll Bar Enable
pnlVideo.HorizontalScroll.Visible = true;
pnlVideo.AutoScroll = true;
pnlVideo.MaximumSize = new Size(this.ClientSize.Width, this.ClientSize.Height - 80);
pnlVideo.AutoScrollMinSize = new Size((int)UserControl1.videoResolutionRate * (this.ClientSize.Height - 80), this.ClientSize.Height - 80);
pnlVideo.ClientSize = new Size(this.ClientSize.Width, this.ClientSize.Height - 80);
pnlVideo.Size = new Size(this.ClientSize.Width, this.ClientSize.Height - 80);