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); }
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); }
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); }
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; }
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; }