示例#1
0
 public int Draw(uint dwDrawAspect, int lindex, IntPtr pvAspect, ref DVTARGETDEVICE ptd, HDC hdcTargetDev, HDC hdcDraw, ref RECTL lprcBounds, ref RECTL lprcWBounds, IntPtr pfnContinue, ulong dwContinue)
 {
     if (m_DrawFunc == null)
     {
         var fp = GetFunctionPointer(3);
         m_DrawFunc = (DrawFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DrawFunc));
     }
     return(m_DrawFunc(m_ptr, dwDrawAspect, lindex, pvAspect, ref ptd, hdcTargetDev, hdcDraw, ref lprcBounds, ref lprcWBounds, pfnContinue, dwContinue));
 }
示例#2
0
 public int GetColorSet(uint dwDrawAspect, int lindex, IntPtr pvAspect, ref DVTARGETDEVICE ptd, HDC hicTargetDev, ref IntPtr ppColorSet)
 {
     if (m_GetColorSetFunc == null)
     {
         var fp = GetFunctionPointer(4);
         m_GetColorSetFunc = (GetColorSetFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetColorSetFunc));
     }
     return(m_GetColorSetFunc(m_ptr, dwDrawAspect, lindex, pvAspect, ref ptd, hicTargetDev, ref ppColorSet));
 }
示例#3
0
 public int GetNaturalExtent(uint dwAspect, int lindex, ref DVTARGETDEVICE ptd, HDC hicTargetDev, ref DVEXTENTINFO pExtentInfo, ref SIZE pSizel)
 {
     if (m_GetNaturalExtentFunc == null)
     {
         var fp = GetFunctionPointer(14);
         m_GetNaturalExtentFunc = (GetNaturalExtentFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetNaturalExtentFunc));
     }
     return(m_GetNaturalExtentFunc(m_ptr, dwAspect, lindex, ref ptd, hicTargetDev, ref pExtentInfo, ref pSizel));
 }