Example #1
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));
 }
Example #2
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));
 }
Example #3
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));
 }
Example #4
0
 public int GetExtent(uint dwDrawAspect, int lindex, ref DVTARGETDEVICE ptd, ref SIZE lpsizel)
 {
     if (m_GetExtentFunc == null)
     {
         var fp = GetFunctionPointer(9);
         m_GetExtentFunc = (GetExtentFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetExtentFunc));
     }
     return(m_GetExtentFunc(m_ptr, dwDrawAspect, lindex, ref ptd, ref lpsizel));
 }