Print Page | Close Window

Direct2D Render

Printed From: Codejock Forums
Category: General
Forum Name: C++ Code Snippets
Forum Description: C++ Code Snippets
URL: http://forum.codejock.com/forum_posts.asp?TID=15926
Printed Date: 19 April 2024 at 8:47pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Direct2D Render
Posted By: WaLtI
Subject: Direct2D Render
Date Posted: 27 December 2009 at 9:27am
Here is my first version of t he Markup renderer who uses Direct2D and DirectWrite apis to render the Markup, currently it is slower than the GDI/GDI+
render but i think it is possible to get it faster.
 
How to use:
  Replace the current base class CXTPMarkupContext with CXTPMarkupDirect2DContext.
  On your OnPaint handler replace
 
  CXTPMarkupDrawingContext dcMarkup(dc);
 
  with

  CXTPMarkupDirect2DDrawingContext dcMarkup(this, dc);

http://forum.codejock.com/uploads/20091227_092602_XTPMarkupDirect.rar - uploads/20091227_092602_XTPMarkupDirect.rar



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net