Beispiel #1
0
 OldImgThumb(secImg ig, Point sz)
 {
     siz     = SizeFlags.scaledSize;
     imgSize = sz;
     imgRef  = ig;
     sf      = scaleFlags.autoScale;
     p       = new Pen(Color.White);
     b       = new SolidBrush(Color.Navy);
     if (imgRef.Attributes.ContainsKey("rotation"))
     {
         this.Rotate = imgRef;
     }
     else
     {
         imgpath = imgRef.Path;
     }
     update();
 }
Beispiel #2
0
 public ImgThumb(secImg ig, Point sz, SizeFlags sizef, SmoothingMode smode, InterpolationMode imode, Color Matte)
 {
     siz        = sizef;
     SM         = smode;
     IP         = imode;
     mattecolor = Matte;
     imgSize    = sz;
     imgRef     = ig;
     sf         = scaleFlags.autoScale;
     p          = new Pen(Color.White); b = new SolidBrush(Color.Navy);
     if (imgRef.Attributes.ContainsKey("rotation"))
     {
         this.Rotate = imgRef;
     }
     else
     {
         imgpath = imgRef.Path;
     }
     update();
 }
Beispiel #3
0
        OldImgThumb(secImg ig, Point sz, SizeFlags sizef, SmoothingMode smode, InterpolationMode imode, Color Matte)
        {
            siz = sizef;

            SM         = smode;
            IP         = imode;
            mattecolor = Matte;
            imgSize    = sz;
            imgRef     = ig;
            sf         = scaleFlags.autoScale;
            p          = new Pen(Color.White); b = new SolidBrush(Color.Navy);
            //		if (imgRef.Attributes.ContainsKey("thumbMatte")) this.cmat = Color.FromArgb(Int32.Parse(attx["thumbMatte"],System.Globalization.NumberStyles.HexNumber));
            if (imgRef.Attributes.ContainsKey("rotation"))
            {
                this.Rotate = imgRef;
            }
            else
            {
                imgpath = imgRef.Path;
            }
            update();
        }
Beispiel #4
0
        public ImgThumb(secImg ig, Point sz, ImageSettings settings)
        {
            siz        = settings.sizing;
            SM         = settings.smoothing;
            IP         = settings.interpolation;
            mattecolor = settings.matte;
            imgSize    = sz;
            imgRef     = ig;
            sf         = scaleFlags.autoScale;

            p = new Pen(Color.White); b = new SolidBrush(Color.Navy);
            if (imgRef.Attributes.ContainsKey("rotation"))
            {
                this.Rotate = imgRef;
            }
            else
            {
                imgpath = imgRef.Path;
            }

            update();
        }