Пример #1
0
        public object Clone()
        {
            cPicture pic = new cPicture
            {
                pImageDescription = this.pImageDescription,
                pJpeg             = this.pJpeg,
                pJpegFileName     = pJpegFileName,
                pIsPlateImage     = pIsPlateImage
            };

            return(pic);
        }
Пример #2
0
        public bool ResizeAndValidate(cPicture pic, out string message)
        {
            message = "";

            try
            {
                pic.pJpeg = cImage.ResizeImage(pic.pJpeg, pImageMaxSize);
            }
            catch (Exception ex)
            {
                message = pic.pJpegFileName + " Error, " + ex.Message;
                return(false);
            }

            return(true);
        }