Esempio n. 1
0
            public bool addBitmapScaleTable(bitmapScaleTable cBitmapScaleTable, uint nIndex)
            {
                bool bResult = true;

                if (cBitmapScaleTable == null)
                {
                    bResult = false;
                    throw new ArgumentNullException();
                }
                else if (nIndex > m_numSizes)
                {
                    bResult = false;
                    throw new ArgumentOutOfRangeException("Index is greater than number of sizes.");
                }
                else
                {
                    bitmapScaleTableCache bstc = bitmapScaleTableCache.FromBitmapScaleTable(cBitmapScaleTable);


                    m_bitmapScaleTables.Insert((int)nIndex, bstc);
                    m_bDirty = true;
                }

                return(bResult);
            }
Esempio n. 2
0
                public object Clone()
                {
                    bitmapScaleTableCache bstc = new bitmapScaleTableCache();

                    bstc.hori            = (Table_EBLC.EBLC_cache.sbitLineMetricsCache)hori.Clone();
                    bstc.vert            = (Table_EBLC.EBLC_cache.sbitLineMetricsCache)vert.Clone();
                    bstc.ppemX           = ppemX;
                    bstc.ppemY           = ppemY;
                    bstc.substitutePpemX = substitutePpemX;
                    bstc.substitutePpemY = substitutePpemY;
                    return(bstc);
                }
Esempio n. 3
0
                static public bitmapScaleTableCache FromBitmapScaleTable(bitmapScaleTable bst)
                {
                    bitmapScaleTableCache bstc = new bitmapScaleTableCache();

                    bstc.hori            = Table_EBLC.EBLC_cache.sbitLineMetricsCache.FromSbitLineMetrics(bst.hori);
                    bstc.vert            = Table_EBLC.EBLC_cache.sbitLineMetricsCache.FromSbitLineMetrics(bst.vert);
                    bstc.ppemX           = bst.ppemX;
                    bstc.ppemY           = bst.ppemY;
                    bstc.substitutePpemX = bst.substitutePpemX;
                    bstc.substitutePpemY = bst.substitutePpemY;
                    return(bstc);
                }
Esempio n. 4
0
 public object Clone()
 {
     bitmapScaleTableCache bstc = new bitmapScaleTableCache();
     bstc.hori = (Table_EBLC.EBLC_cache.sbitLineMetricsCache)hori.Clone();
     bstc.vert = (Table_EBLC.EBLC_cache.sbitLineMetricsCache)vert.Clone();
     bstc.ppemX = ppemX;
     bstc.ppemY = ppemY;
     bstc.substitutePpemX = substitutePpemX;
     bstc.substitutePpemY = substitutePpemY;
     return bstc;
 }
Esempio n. 5
0
 static public bitmapScaleTableCache FromBitmapScaleTable(bitmapScaleTable bst)
 {
     bitmapScaleTableCache bstc = new bitmapScaleTableCache();
     bstc.hori = Table_EBLC.EBLC_cache.sbitLineMetricsCache.FromSbitLineMetrics(bst.hori);
     bstc.vert = Table_EBLC.EBLC_cache.sbitLineMetricsCache.FromSbitLineMetrics(bst.vert);
     bstc.ppemX = bst.ppemX;
     bstc.ppemY = bst.ppemY;
     bstc.substitutePpemX = bst.substitutePpemX;
     bstc.substitutePpemY = bst.substitutePpemY;
     return bstc;
 }