Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
|  | 
| Rendering under DirectX | 
| Post Reply   | 
| Author | |
| mulfycrowh   Beginner   Joined: 03 May 10 Status: Offline Points: 18 |  Post Options  Thanks(0)  Quote  Reply  Topic: Rendering under DirectX Posted: 24 May 10 at 1:04PM | 
| 
   Hello,
 I am developping an application under DirectX 9. To render a page of my PDF file : 1/ I create an offscreen surface using CreateOffscreenPlainSurface method 2/ I get the device context of this surface with GetDC method 3/ I render using DARenderPageToDC on the device context 4/ I copy the surface onto the backbuffer DARenderPageToDC tells me everything OK Is this process OK because nothing is rendered on the screen ? Many Thanks ! 
 | |
|  | |
| Ingo   Moderator Group     Joined: 29 Oct 05 Status: Offline Points: 3530 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 May 10 at 6:24PM | 
| 
   Hi! Did you use non-DA-functions together with DA-functions? This doesn't work. Cheers, Ingo | |
|  | |
| mulfycrowh   Beginner   Joined: 03 May 10 Status: Offline Points: 18 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 May 10 at 8:18PM | 
| 
   Hi,
 What do you mean by using DA and non DA functions ? I only use DARenderPageToDC. Do you mean I must not use this function and should use RenderPageToDC instead ? Is there any example in rendering under DirectX ? Many Thanks ! | |
|  | |
| mulfycrowh   Beginner   Joined: 03 May 10 Status: Offline Points: 18 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 May 10 at 8:43PM | 
| 
   Sorry, I don't use DARenderPageToDC but RenderPagePageToDC.
 I only use the DA function : DAFindPage to look for the page reference | |
|  | |
| Ingo   Moderator Group     Joined: 29 Oct 05 Status: Offline Points: 3530 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 May 10 at 8:46PM | 
| 
   Hi! There are DA-functions and non-DA-functions. If you're using both kinds of functions in one instance then the results won't be correct. So it's not possible to use LoadFromFile... and later in the code DARender... If you're using DARender... then you have to use DAOpenFile... Cheers, Ingo | |
|  | |
| mulfycrowh   Beginner   Joined: 03 May 10 Status: Offline Points: 18 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 May 10 at 8:53PM | 
| 
   OK
 Many thanks. Is there any DirctX example ? If not, am I right with GetDC ? | |
|  | |
| Ingo   Moderator Group     Joined: 29 Oct 05 Status: Offline Points: 3530 |  Post Options  Thanks(0)  Quote  Reply  Posted: 24 May 10 at 9:52PM | 
| 
   Hi Marc! There's no DirectX-sample but about using RenderPageToDC you'll find a lot with the search-function (the advanced one, above): http://www.quickpdf.org/forum/quickpdf-render-to-device-context_topic1197_post5551.html?KW=RenderPageToDC#5551 http://www.quickpdf.org/forum/newbe-question_topic1134_post5265.html?KW=RenderPageToDC#5265 http://www.quickpdf.org/forum/pdf-viewer-in-vb6_topic1114_post5180.html?KW=RenderPageToDC#5180 http://www.quickpdf.org/forum/renderpagetodc-example-needed_topic1036_post4882.html?KW=RenderPageToDC#4882 Cheers, Ingo | |
|  | |
| mulfycrowh   Beginner   Joined: 03 May 10 Status: Offline Points: 18 |  Post Options  Thanks(0)  Quote  Reply  Posted: 25 May 10 at 8:56AM | 
| 
   Thank you so much
    | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum | 
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store