Example #1
0
        public MainForm()
        {
            InitializeComponent();

            anims = new Dictionary <string, Anim>();

            imageOrigin = ImageOrigin.Center;
            imageRect   = animPreviewPicture.Bounds;

            // picture frame is just a template, image
            // drawing is done OnPaint for more control
            animPreviewPicture.Enabled = false;
            animPreviewPicture.Visible = false;

            openAnimFile         = "";
            selectedCellValue    = "";
            cellEditPreviousName = "";
            animCurrentFrame     = 0;
            animFrameWhenPlaying = 0;
            currentScale         = 1;

            boxColor = Color.Red;

            animTimer       = new Timer(components);
            animTimer.Tick += new EventHandler(animTimer_Tick);
        }
Example #2
0
 public static extern IntPtr cvInitImageHeader(IntPtr image, CvSize size, BitDepth depth, int channels, ImageOrigin origin, int align);
Example #3
0
        /// <summary>
        /// ユーザから渡された参照が指す, ユーザによって確保された画像のヘッダ構造体を初期化し,その参照を返す (cvInitImageHeader).
        /// </summary>
        /// <param name="size">画像の幅と高さ</param>
        /// <param name="depth">画像のカラーデプス</param>
        /// <param name="channels">チャンネル数</param>
        /// <param name="origin">初期化される画像ヘッダ</param>
        /// <param name="align">画像の行のアライメント,通常は4,あるいは 8 バイト.</param>
        /// <returns>初期化された画像ヘッダ</returns>
#else
        /// <summary>
        /// Initializes allocated by user image header (cvInitImageHeader).
        /// </summary>
        /// <param name="size">Image width and height. </param>
        /// <param name="depth">Image depth. </param>
        /// <param name="channels">Number of channels. </param>
        /// <param name="origin">Origin of image</param>
        /// <param name="align">Alignment for image rows, typically 4 or 8 bytes. </param>
        /// <returns>Initialzed IplImage header</returns>
#endif
        public static IplImage InitImageHeader(CvSize size, BitDepth depth, int channels, ImageOrigin origin, int align)
        {
            IplImage img;
            return Cv.InitImageHeader(out img, size, depth, channels, origin, align);
        }
Example #4
0
 public static IplImage InitImageHeader(CvSize size, BitDepth depth, int channels, ImageOrigin origin, int align);
Example #5
0
 private void radioBottomLeft_CheckedChanged(object sender, EventArgs e)
 {
     imageOrigin = ImageOrigin.BottomLeft;
     Invalidate();
 }
Example #6
0
 private void radioCenter_CheckedChanged(object sender, EventArgs e)
 {
     imageOrigin = ImageOrigin.Center;
     Invalidate();
 }