本文整理汇总了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;
}
示例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);
}
示例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];
}
示例4: Render
public override void Render(Microsoft.MapPoint.Rendering3D.Scene.SceneState sceneState)
{
if (mesh != null)
{
RenderQueues renderQueues = sceneState.GetData<RenderQueues>();
renderQueues.AddRenderable(mesh);
}
}
示例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];
}
示例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));
}
示例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);
}
}
}
}
}
}
示例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);
}
}
}
}
}