Ejemplo n.º 1
0
 public EditorDrawOps(ImageCacheManager imgCache)
 {
     // init
     this.imgCache = imgCache;
     destRect      = new Rectangle();
     srcRect       = new Rectangle();
 }
Ejemplo n.º 2
0
 public VideoShitbox()
 {
     InitializeComponent();
     imageMan = new ImageCacheManager();
     imageMan.ImagesReady += imageMan_ImagesReady;
     mouseDown = false;
     ConsoleSingleton = this;
 }
Ejemplo n.º 3
0
 public VideoShitbox()
 {
     InitializeComponent();
     imageMan              = new ImageCacheManager();
     imageMan.ImagesReady += imageMan_ImagesReady;
     mouseDown             = false;
     ConsoleSingleton      = this;
 }
Ejemplo n.º 4
0
 public DrawOp(IVidkaOpContext context, ImageCacheManager imageMan)
 {
     this.context = context;
     this.imgCache = imageMan;
     if (context != null)
     {
         dimdim = context.Dimdim;
         fileMapping = context.FileMapping;
         uiObjects = context.UiObjects;
     }
 }
Ejemplo n.º 5
0
 public DrawOp(IVidkaOpContext context, ImageCacheManager imageMan)
 {
     this.context  = context;
     this.imgCache = imageMan;
     if (context != null)
     {
         dimdim      = context.Dimdim;
         fileMapping = context.FileMapping;
         uiObjects   = context.UiObjects;
     }
 }
 public void SetParticulars(
     VidkaClipVideoAbstract vclip,
     VidkaFileMapping fileMapping)
 {
     this.imageMan    = new ImageCacheManager();
     this.fileMapping = fileMapping;
     this.vclip       = vclip;
     // set up the vclip that we will draw
     vclipFullToDraw            = vclip.MakeCopy_VideoClip();
     vclipFullToDraw.FrameStart = 0;
     vclipFullToDraw.FrameEnd   = vclipFullToDraw.LengthFrameCalc;
     // set up the audio clip that we will draw
     aclipToDraw = new VidkaClipAudio()
     {
         FileName         = vclip.CustomAudioFilename,
         FileLengthSec    = vclip.CustomAudioLengthSec,
         FileLengthFrames = dimdim.SecToFrame(vclip.CustomAudioLengthSec ?? 0),
         FrameStart       = 0,
         FrameEnd         = dimdim.SecToFrame(vclip.CustomAudioLengthSec ?? 0),
     };
     imageMan.ImagesReady += imageMan_ImagesReady;
 }
Ejemplo n.º 7
0
        public void SetParticulars(
			VidkaClipVideoAbstract vclip,
			VidkaFileMapping fileMapping)
        {
            this.imageMan = new ImageCacheManager();
            this.fileMapping = fileMapping;
            this.vclip = vclip;
            // set up the vclip that we will draw
            vclipFullToDraw = vclip.MakeCopy_VideoClip();
            vclipFullToDraw.FrameStart = 0;
            vclipFullToDraw.FrameEnd = vclipFullToDraw.LengthFrameCalc;
            // set up the audio clip that we will draw
            aclipToDraw = new VidkaClipAudio()
            {
                FileName = vclip.CustomAudioFilename,
                FileLengthSec = vclip.CustomAudioLengthSec,
                FileLengthFrames = dimdim.SecToFrame(vclip.CustomAudioLengthSec ?? 0),
                FrameStart = 0,
                FrameEnd = dimdim.SecToFrame(vclip.CustomAudioLengthSec ?? 0),
            };
            imageMan.ImagesReady += imageMan_ImagesReady;
        }