public virtual int CreateCommandList( out ID2D1CommandList commandList ) { var fp = GetFunctionPointer(67); if (m_CreateCommandListFunc == null) { m_CreateCommandListFunc = (CreateCommandListFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateCommandListFunc)); } commandList = new ID2D1CommandList(); return(m_CreateCommandListFunc(m_ptr, out commandList.PtrForNew)); }
public virtual int AddPage( ID2D1CommandList commandList, D2D_SIZE_F pageSize, IStream pagePrintTicketStream, out ulong tag1, out ulong tag2 ) { var fp = GetFunctionPointer(3); if (m_AddPageFunc == null) { m_AddPageFunc = (AddPageFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(AddPageFunc)); } return(m_AddPageFunc(m_ptr, commandList != null ? commandList.Ptr : IntPtr.Zero, pageSize, pagePrintTicketStream != null ? pagePrintTicketStream.Ptr : IntPtr.Zero, out tag1, out tag2)); }