Print Page | Close Window

RenderPageToDC to CBitmap C++ example?

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=2113
Printed Date: 11 Jun 26 at 9:06PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: RenderPageToDC to CBitmap C++ example?
Posted By: hobnob
Subject: RenderPageToDC to CBitmap C++ example?
Date Posted: 25 Jan 12 at 3:13PM
Anyone have an example of how to do this

RenderPageToDC to CBitmap C++ example

Thanks,
Lee.



Replies:
Posted By: AndrewC
Date Posted: 26 Jan 12 at 8:20AM
Here is a C++ Builder example but it shouldn't be too hard to adapt it to a CBitmap.

void __fastcall TForm1::Button1Click(TObject *Sender)
{
char    tmp[256];
int     ret;

    ret = QP.LoadFromFile(L"Quick (1).pdf", L"");

    HDC dc = GetDC(Panel1->Handle);

    QP.RenderPageToDC(96, 1, dc);

}




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk