本文整理汇总了C#中ESRI.Read方法的典型用法代码示例。如果您正苦于以下问题:C# ESRI.Read方法的具体用法?C# ESRI.Read怎么用?C# ESRI.Read使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ESRI
的用法示例。
在下文中一共展示了ESRI.Read方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Exception
void ESRI.ArcGIS.esriSystem.IPersistVariant.Load(ESRI.ArcGIS.esriSystem.IVariantStream Stream)
{
// Read the persisted version number first.
int lSavedVers = 0;
lSavedVers = Convert.ToInt32(Stream.Read());
if ((lSavedVers > m_lCurrPersistVers) | (lSavedVers <= 0))
{
throw new Exception("Failed to read from stream");
}
// Set members to default values.
InitializeMembers();
// Load the first persistance pattern.
if (lSavedVers == 1)
{
m_lROP2 = (esriRasterOpCode)Stream.Read();
m_dSize = Convert.ToDouble(Stream.Read());
m_dXOffset = Convert.ToDouble(Stream.Read());
m_dYOffset = Convert.ToDouble(Stream.Read());
m_dAngle = Convert.ToDouble(Stream.Read());
m_bRotWithTrans = Convert.ToBoolean(Stream.Read());
m_lMapLevel = Convert.ToInt32(Stream.Read());
m_colorTop = Stream.Read() as IColor;
m_colorLeft = Stream.Read() as IColor;
m_colorRight = Stream.Read() as IColor;
m_colorBorder = Stream.Read() as IColor;
}
}