public static void LoadImage(string fileName)
        {
            JczLmc.ClearLibAllEntity();

            // load ezd
            JczLmc.LoadEzdFile(fileName);
        }
示例#2
0
        private void LoadImage(string fileName)
        {
            // load ezd
            JczLmc.LoadEzdFile(fileName);

            // get image from sdk
            var img = JczLmc.GetCurPreviewImage(
                this.foregroundPictureBox.Width,
                this.foregroundPictureBox.Height);

            // convert to bitmap for rransparent
            var bitMap = (Bitmap)img;

            bitMap.MakeTransparent();

            this.foregroundPictureBox.Image = bitMap;

            this.foregroundPictureBox.Width  = bitMap.Width;
            this.foregroundPictureBox.Height = bitMap.Height;

            this._ezdOriginalImage = bitMap;

            this.InitialFGImage();

            this.ezdFileLbl.Text = Path.GetFileName(fileName);
        }
        public static Image LoadImage(string fileName, int width, int height)
        {
            // load ezd
            JczLmc.LoadEzdFile(fileName);

            // get image from sdk
            var img = JczLmc.GetCurPreviewImage(width, height);

            img = PictureControl.Images.SetImageTransparent(img);

            return(img);
        }