Beispiel #1
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="gdi"></param>
 /// <param name="left"></param>
 /// <param name="top"></param>
 /// <param name="right"></param>
 /// <param name="bottom"></param>
 public SvgRectRegion(SvgGdi gdi, int left, int top, int right, int bottom)
     : base(gdi)
 {
     _left   = left;
     _top    = top;
     _right  = right;
     _bottom = bottom;
 }
Beispiel #2
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="gdi"></param>
 /// <param name="version"></param>
 /// <param name="entries"></param>
 public SvgPalette(
     SvgGdi gdi,
     int version,
     int[] entries)
     : base(gdi)
 {
     _version = version;
     _entries = entries;
 }
Beispiel #3
0
 /// <summary>
 /// Construdor padrão.
 /// </summary>
 /// <param name="gdi"></param>
 /// <param name="style"></param>
 /// <param name="width"></param>
 /// <param name="color"></param>
 public SvgPen(
     SvgGdi gdi,
     int style,
     int width,
     int color)
     : base(gdi)
 {
     _style = style;
     _width = (width > 0) ? width : 1;
     _color = color;
 }
Beispiel #4
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="gdi"></param>
 /// <param name="style"></param>
 /// <param name="color"></param>
 /// <param name="hatch"></param>
 public SvgBrush(
     SvgGdi gdi,
     int style,
     int color,
     int hatch)
     : base(gdi)
 {
     _style = style;
     _color = color;
     _hatch = hatch;
 }
Beispiel #5
0
        /// <summary>
        /// Default Constructor.
        /// </summary>
        /// <param name="gdi"></param>
        /// <param name="height"></param>
        /// <param name="width"></param>
        /// <param name="escapement"></param>
        /// <param name="orientation"></param>
        /// <param name="weight"></param>
        /// <param name="italic"></param>
        /// <param name="underline"></param>
        /// <param name="strikeout"></param>
        /// <param name="charset"></param>
        /// <param name="outPrecision"></param>
        /// <param name="clipPrecision"></param>
        /// <param name="quality"></param>
        /// <param name="pitchAndFamily"></param>
        /// <param name="faceName"></param>
        public SvgFont(
            SvgGdi gdi,
            int height,
            int width,
            int escapement,
            int orientation,
            int weight,
            bool italic,
            bool underline,
            bool strikeout,
            int charset,
            int outPrecision,
            int clipPrecision,
            int quality,
            int pitchAndFamily,
            byte[] faceName)
            : base(gdi)
        {
            _height         = height;
            _width          = width;
            _escapement     = escapement;
            _orientation    = orientation;
            _weight         = weight;
            _italic         = italic;
            _underline      = underline;
            _strikeout      = strikeout;
            _charset        = charset;
            _outPrecision   = outPrecision;
            _clipPrecision  = clipPrecision;
            _quality        = quality;
            _pitchAndFamily = pitchAndFamily;
            _faceName       = WMFConverter.Gdi.GdiUtils.ConvertString(faceName, charset);

            // xml:lang
            _lang = WMFConverter.Gdi.GdiUtils.GetLanguage(charset);

            string emheight = gdi.GetProperty("font-emheight." + _faceName);

            if (emheight == null)
            {
                string alter = gdi.GetProperty("alternative-font." + _faceName);
                if (alter != null)
                {
                    emheight = gdi.GetProperty("font-emheight." + alter);
                }
            }

            if (emheight != null)
            {
                _heightMultiply = Convert.ToDouble(emheight);
            }
        }
Beispiel #6
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="gdi"></param>
 /// <param name="bmp"></param>
 public SvgPatternBrush(SvgGdi gdi, byte[] bmp)
     : base(gdi)
 {
     _bmp = bmp;
 }
Beispiel #7
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 /// <param name="gdi"></param>
 public SvgDc(SvgGdi gdi)
 {
     _gdi = gdi;
 }
Beispiel #8
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 /// <param name="gdi"></param>
 public SvgObject(SvgGdi gdi)
 {
     _gdi = gdi;
 }
Beispiel #9
0
 /// <summary>
 /// Default Constructor.
 /// </summary>
 /// <param name="gdi"></param>
 public SvgRegion(SvgGdi gdi)
     : base(gdi)
 {
 }