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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Rendering under DirectX
  FAQ FAQ  Forum Search   Register Register  Login Login

Rendering under DirectX

 Post Reply Post Reply
Author
Message
mulfycrowh View Drop Down
Beginner
Beginner


Joined: 03 May 10
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mulfycrowh Quote  Post ReplyReply Direct Link To This Post 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 !

 

 
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 10 at 6:24PM
Hi!

Did you use non-DA-functions together with DA-functions?
This doesn't work.

Cheers, Ingo
Back to Top
mulfycrowh View Drop Down
Beginner
Beginner


Joined: 03 May 10
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mulfycrowh Quote  Post ReplyReply Direct Link To This Post 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 !
 
Back to Top
mulfycrowh View Drop Down
Beginner
Beginner


Joined: 03 May 10
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mulfycrowh Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
mulfycrowh View Drop Down
Beginner
Beginner


Joined: 03 May 10
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mulfycrowh Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 10 at 8:53PM
OK
Many thanks.
Is there any DirctX example ?
If not, am I right with GetDC ?
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
mulfycrowh View Drop Down
Beginner
Beginner


Joined: 03 May 10
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote mulfycrowh Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 10 at 8:56AM
Thank you so much
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store