我试图在按钮点击时添加一个面板.我的代码在下面,我做到了.但现在我正试图在我的面板上放置其他按钮等,当你点击第一个按钮和面板幻灯片时,我没有任何新按钮.
//Constants
const int AW_SLIDE = 0X40000;
const int AW_HOR_POSITIVE = 0X1;
const int AW_HOR_NEGATIVE = 0X2;
const int AW_BLEND = 0X80000;
[DllImport("user32")]
static extern bool AnimateWindow(IntPtr hwnd, int time, int flags);
photosflag=0;
private void photosbutton_Click(object sender, EventArgs e)
{
if (photosflag == 0)
{
object O = Controller.Properties.Resources.ResourceManager.GetObject("photospressed");
photosbutton.Image = (System.Drawing.Image)O;
photosflag = 1;
int ylocation = photosbutton.Location.Y;
//Set the Location
photospanel.Location = new Point(101, ylocation);
//Animate form
AnimateWindow(photospanel.Handle, 500, AW_SLIDE | AW_HOR_POSITIVE);
}
else
{
object O = …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用ffmpeg在AVI视频中添加副标题.我用这个命令来做到这一点:
-i input.avi -vf drawtext="fontsize=80:fontfile=C\\:/Windows/Fonts/arial.ttf:text=TEST_TEXT:y=h-line_h:x=(h+400)-(t*110)" output.avi
Run Code Online (Sandbox Code Playgroud)
ffmpeg控制台的输出是:
>ffmpeg -i testwithout.avi -vf drawtext="fontsize=
80:fontfile=C\\:/Windows/Fonts/arial.ttf:text=HELLO:y=h-line_h:x=(h+400)-(t*110)
" -an withsubtitle.avi
ffmpeg version N-62121-g634636e Copyright (c) 2000-2014 the FFmpeg developers
built on Apr 3 2014 23:30:16 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libx265 --enable-libxavs …Run Code Online (Sandbox Code Playgroud)