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


C# IntPtr.ToString方法代码示例

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


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

示例1: SetBlobCacheFuncsANDROID

		public static void SetBlobCacheFuncsANDROID(IntPtr dpy, SetBlobFuncDelegate set, GetBlobFuncDelegate get)
		{
			Debug.Assert(Delegates.peglSetBlobCacheFuncsANDROID != null, "peglSetBlobCacheFuncsANDROID not implemented");
			Delegates.peglSetBlobCacheFuncsANDROID(dpy, set, get);
			LogFunction("eglSetBlobCacheFuncsANDROID(0x{0}, {1}, {2})", dpy.ToString("X8"), set, get);
			DebugCheckErrors(null);
		}
开发者ID:rhynodegreat,项目名称:OpenGL.Net,代码行数:7,代码来源:Egl.ANDROID_blob_cache.cs

示例2: GetHistogramEXT

		public static void GetHistogramEXT(HistogramTargetEXT target, bool reset, PixelFormat format, PixelType type, IntPtr values)
		{
			Debug.Assert(Delegates.pglGetHistogramEXT != null, "pglGetHistogramEXT not implemented");
			Delegates.pglGetHistogramEXT((Int32)target, reset, (Int32)format, (Int32)type, values);
			CallLog("glGetHistogramEXT({0}, {1}, {2}, {3}, 0x{4})", target, reset, format, type, values.ToString("X8"));
			DebugCheckErrors();
		}
开发者ID:MagmaiKH,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.EXT_histogram.cs

示例3: Create

        public static Bitmap Create(IntPtr hDesk)
        {
            Bitmap bmp = null;

            if (!string.IsNullOrEmpty(hDesk.ToString()))
            {
                // Get window info: size, x, y
                WINDOWINFO info = new WINDOWINFO();
                info.cbSize = (uint)Marshal.SizeOf(info);
                NativeWin32.GetWindowInfo(hDesk, ref info);
                Rectangle rect = new Rectangle((int)info.rcWindow.Left, (int)info.rcWindow.Top, Math.Abs((int)info.rcWindow.Left - (int)info.rcWindow.Right), Math.Abs((int)info.rcWindow.Top - (int)info.rcWindow.Bottom));

                // Set pointers
                IntPtr hSrce = NativeWin32.GetWindowDC(hDesk);
                IntPtr hDest = NativeWin32.CreateCompatibleDC(hSrce);
                IntPtr hBmp = NativeWin32.CreateCompatibleBitmap(hSrce, rect.Width, rect.Height);
                IntPtr hOldBmp = NativeWin32.SelectObject(hDest, hBmp);

                //  Create bitmap
                bmp = new Bitmap(rect.Width, rect.Height, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
                Graphics gfxScreenShot = Graphics.FromImage(bmp);
                gfxScreenShot.CopyFromScreen(rect.X, rect.Y, 0, 0, rect.Size, CopyPixelOperation.SourceCopy);

            }
            else
            {
                // logging
            }

            return bmp;
        }
开发者ID:robertvanbuiten,项目名称:cb_testautomation,代码行数:31,代码来源:ScreenPrint.cs

示例4: CreateWrapper

 public static MyType CreateWrapper(IntPtr ptr)
 {
     Console.WriteLine();
     Console.WriteLine(ptr.ToString());
     Console.WriteLine();
     return new MyType { intPtr = ptr };
 }
开发者ID:jmp75,项目名称:scratch-space,代码行数:7,代码来源:Program.cs

示例5: StringMarkerGREMEDY

		public static void StringMarkerGREMEDY(Int32 len, IntPtr @string)
		{
			Debug.Assert(Delegates.pglStringMarkerGREMEDY != null, "pglStringMarkerGREMEDY not implemented");
			Delegates.pglStringMarkerGREMEDY(len, @string);
			CallLog("glStringMarkerGREMEDY({0}, 0x{1})", len, @string.ToString("X8"));
			DebugCheckErrors();
		}
开发者ID:MagmaiKH,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.GREMEDY_string_marker.cs

示例6: TraceRef

 public static void TraceRef(IntPtr pUnk, string msg) {
     GC.Collect(); // collect any outstanding RCW or CCW's.
     if (pUnk == IntPtr.Zero) return;
     Marshal.AddRef(pUnk);
     int count = Marshal.Release(pUnk);
     Trace.WriteLine(msg + ": 0x" + pUnk.ToString("x") + "(ref=" + count + ")");
 }
开发者ID:xenocons,项目名称:visualfsharp,代码行数:7,代码来源:Tracing.cs

示例7: MultiDrawArraysIndirectBindNV

		public static void MultiDrawArraysIndirectBindNV(Int32 mode, IntPtr indirect, Int32 drawCount, Int32 maxDrawCount, Int32 stride, Int32 vertexBufferCount)
		{
			Debug.Assert(Delegates.pglMultiDrawArraysIndirectBindlessCountNV != null, "pglMultiDrawArraysIndirectBindlessCountNV not implemented");
			Delegates.pglMultiDrawArraysIndirectBindlessCountNV(mode, indirect, drawCount, maxDrawCount, stride, vertexBufferCount);
			CallLog("glMultiDrawArraysIndirectBindlessCountNV({0}, 0x{1}, {2}, {3}, {4}, {5})", mode, indirect.ToString("X8"), drawCount, maxDrawCount, stride, vertexBufferCount);
			DebugCheckErrors();
		}
开发者ID:MagmaiKH,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.NV_bindless_multi_draw_indirect_count.cs

示例8: VertexArrayRangeAPPLE

		public static void VertexArrayRangeAPPLE(Int32 length, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglVertexArrayRangeAPPLE != null, "pglVertexArrayRangeAPPLE not implemented");
			Delegates.pglVertexArrayRangeAPPLE(length, pointer);
			CallLog("glVertexArrayRangeAPPLE({0}, 0x{1})", length, pointer.ToString("X8"));
			DebugCheckErrors();
		}
开发者ID:MagmaiKH,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.APPLE_vertex_array_range.cs

示例9: ClearDepthOES

		public static void ClearDepthOES(IntPtr depth)
		{
			Debug.Assert(Delegates.pglClearDepthxOES != null, "pglClearDepthxOES not implemented");
			Delegates.pglClearDepthxOES(depth);
			LogFunction("glClearDepthxOES(0x{0})", depth.ToString("X8"));
			DebugCheckErrors(null);
		}
开发者ID:rhynodegreat,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.OES_fixed_point.cs

示例10: ClearColorOES

		public static void ClearColorOES(IntPtr red, IntPtr green, IntPtr blue, IntPtr alpha)
		{
			Debug.Assert(Delegates.pglClearColorxOES != null, "pglClearColorxOES not implemented");
			Delegates.pglClearColorxOES(red, green, blue, alpha);
			LogFunction("glClearColorxOES(0x{0}, 0x{1}, 0x{2}, 0x{3})", red.ToString("X8"), green.ToString("X8"), blue.ToString("X8"), alpha.ToString("X8"));
			DebugCheckErrors(null);
		}
开发者ID:rhynodegreat,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.OES_fixed_point.cs

示例11: AlphaFuncOES

		public static void AlphaFuncOES(Int32 func, IntPtr @ref)
		{
			Debug.Assert(Delegates.pglAlphaFuncxOES != null, "pglAlphaFuncxOES not implemented");
			Delegates.pglAlphaFuncxOES(func, @ref);
			LogFunction("glAlphaFuncxOES({0}, 0x{1})", LogEnumName(func), @ref.ToString("X8"));
			DebugCheckErrors(null);
		}
开发者ID:rhynodegreat,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.OES_fixed_point.cs

示例12: ElementPointerATI

		public static void ElementPointerATI(Int32 type, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglElementPointerATI != null, "pglElementPointerATI not implemented");
			Delegates.pglElementPointerATI(type, pointer);
			CallLog("glElementPointerATI({0}, 0x{1})", type, pointer.ToString("X8"));
			DebugCheckErrors();
		}
开发者ID:MagmaiKH,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.ATI_element_array.cs

示例13: AlphaFuncOES

		public static void AlphaFuncOES(Int32 func, IntPtr @ref)
		{
			Debug.Assert(Delegates.pglAlphaFuncxOES != null, "pglAlphaFuncxOES not implemented");
			Delegates.pglAlphaFuncxOES(func, @ref);
			CallLog("glAlphaFuncxOES({0}, 0x{1})", func, @ref.ToString("X8"));
			DebugCheckErrors();
		}
开发者ID:MagmaiKH,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.OES_fixed_point.cs

示例14: BindBufferOffsetEXT

		public static void BindBufferOffsetEXT(Int32 target, UInt32 index, UInt32 buffer, IntPtr offset)
		{
			Debug.Assert(Delegates.pglBindBufferOffsetEXT != null, "pglBindBufferOffsetEXT not implemented");
			Delegates.pglBindBufferOffsetEXT(target, index, buffer, offset);
			LogFunction("glBindBufferOffsetEXT({0}, {1}, {2}, 0x{3})", LogEnumName(target), index, buffer, offset.ToString("X8"));
			DebugCheckErrors(null);
		}
开发者ID:rhynodegreat,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.EXT_transform_feedback.cs

示例15: VertexArrayRangeNV

		public static void VertexArrayRangeNV(Int32 length, IntPtr pointer)
		{
			Debug.Assert(Delegates.pglVertexArrayRangeNV != null, "pglVertexArrayRangeNV not implemented");
			Delegates.pglVertexArrayRangeNV(length, pointer);
			LogFunction("glVertexArrayRangeNV({0}, 0x{1})", length, pointer.ToString("X8"));
			DebugCheckErrors(null);
		}
开发者ID:rhynodegreat,项目名称:OpenGL.Net,代码行数:7,代码来源:Gl.NV_vertex_array_range.cs


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