当前位置: 首页>>代码示例>>C#>>正文


C# Microsoft.GetData方法代码示例

本文整理汇总了C#中Microsoft.GetData方法的典型用法代码示例。如果您正苦于以下问题:C# Microsoft.GetData方法的具体用法?C# Microsoft.GetData怎么用?C# Microsoft.GetData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Microsoft的用法示例。


在下文中一共展示了Microsoft.GetData方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: cropTexture2D

 public static Microsoft.Xna.Framework.Graphics.Texture2D cropTexture2D(Microsoft.Xna.Framework.Graphics.GraphicsDevice GraphicsDevice, Microsoft.Xna.Framework.Graphics.Texture2D originalTexture, Microsoft.Xna.Framework.Rectangle sourceRectangle)
 {
     Microsoft.Xna.Framework.Graphics.Texture2D cropTexture = new Microsoft.Xna.Framework.Graphics.Texture2D(GraphicsDevice, sourceRectangle.Width, sourceRectangle.Height);
     Microsoft.Xna.Framework.Color[] data = new Microsoft.Xna.Framework.Color[sourceRectangle.Width * sourceRectangle.Height];
     originalTexture.GetData(0, sourceRectangle, data, 0, data.Length);
     cropTexture.SetData(data);
     return cropTexture;
 }
开发者ID:amarpersaud,项目名称:Test_1,代码行数:8,代码来源:ImageEx.cs

示例2: LogEntry

        /// <inheritdoc />
        public void LogEntry(Microsoft.Media.Analytics.ILog log)
        {
            if (this.batchingLogAgent == null)
                return;

            var aiLog = new Microsoft.Media.AudienceInsight.Log(log.Id, log.TimeStamp, log.Type, log.GetData());

            this.batchingLogAgent.LogEntry(aiLog);
        }
开发者ID:bondarenkod,项目名称:pf-arm-deploy-error,代码行数:10,代码来源:AudienceInsightLoggingTarget.cs

示例3: GetData

 public static STGMEDIUM GetData(Microsoft.VisualStudio.OLE.Interop.IDataObject pDataObject, ref FORMATETC fmtetc) {
     FORMATETC[] af = new FORMATETC[1];
     af[0] = fmtetc;
     STGMEDIUM[] sm = new STGMEDIUM[1];
     pDataObject.GetData(af, sm);
     fmtetc = af[0];
     return sm[0];
 }
开发者ID:CforED,项目名称:Node.js-Tools-for-Visual-Studio,代码行数:8,代码来源:DataObject.cs

示例4: Render

 public override void Render(Microsoft.MapPoint.Rendering3D.Scene.SceneState sceneState)
 {
     if (mesh != null)
     {
         RenderQueues renderQueues = sceneState.GetData<RenderQueues>();
         renderQueues.AddRenderable(mesh);
     }
 }
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:8,代码来源:RunningIsoline.cs

示例5: GetData

        public static STGMEDIUM GetData(Microsoft.VisualStudio.OLE.Interop.IDataObject dataObject, ref FORMATETC fmtetc)
        {
            if (dataObject == null)
                throw new ArgumentNullException("dataObject");

            FORMATETC[] af = new FORMATETC[1];
            af[0] = fmtetc;
            STGMEDIUM[] sm = new STGMEDIUM[1];
            dataObject.GetData(af, sm);
            fmtetc = af[0];
            return sm[0];
        }
开发者ID:tunnelvisionlabs,项目名称:MPFProj10,代码行数:12,代码来源:DragDropHelper.cs

示例6: TabletPacketEventArgs

		void IStylusAsyncPlugin.Packets(RealTimeStylus sender, Microsoft.StylusInput.PluginData.PacketsData data)
		{
			int[] intData = data.GetData();
			tabletForm.OnTabletPacket(new TabletPacketEventArgs(intData[0], intData[1], intData[2], tabletSettings));
		}
开发者ID:sanyaade-g2g-repos,项目名称:knack,代码行数:5,代码来源:TabletAsyncPlugin.cs

示例7: Render

 public override void Render(Microsoft.MapPoint.Rendering3D.Scene.SceneState sceneState)
 {
     if (meshLayers.Count != 0)
     {
         CameraData data;
         if (sceneState.TryGetData<CameraData>(out data))
         {
             RenderQueues renderQueues = sceneState.GetData<RenderQueues>();
             lock (meshLayers)
             {
                 for (int i = 0; i < meshLayers.Count; i++)
                 {
                     if (meshLayers[i].IsVisible)
                     {
                         renderQueues.AddAlphaRenderable(data.Snapshot.Position.Altitude - meshLayers[i].LayerAltitude, meshLayers[i].Mesh);
                     }
                 }
             }
         }
     }
 }
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:21,代码来源:ColorMapActor.cs

示例8: Render

 public override void Render(Microsoft.MapPoint.Rendering3D.Scene.SceneState sceneState)
 {
     if (meshLayers.Count != 0)
     {
         CameraData data;
         if (sceneState.TryGetData<CameraData>(out data))
         {
             RenderQueues renderQueues = sceneState.GetData<RenderQueues>();
             foreach (MeshLayer meshLayer in meshLayers)
             {
                 if (meshLayer.IsVisible)
                 {
                     renderQueues.AddRenderable(meshLayer.Mesh);
                 }
             }
         }
     }
 }
开发者ID:XiBeichuan,项目名称:hydronumerics,代码行数:18,代码来源:ProbesActor.cs


注:本文中的Microsoft.GetData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。