Print Page | Close Window

background of bezier curve

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=3501
Printed Date: 03 May 24 at 10:42AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: background of bezier curve
Posted By: vjedlicka
Subject: background of bezier curve
Date Posted: 09 Sep 17 at 3:24PM
Bezier curve incorrectly covers its background.

the code:

int li_width = 100 * 30;
int li_height = 100 * 20;
HDC hDC = DPL.GetCanvasDC(li_width, li_height);

CDC dc;
CDC* pDC = CDC::FromHandle(hDC);

CRect l_rect(100, 100, 1000, 1000);
pDC->FillSolidRect(l_rect, RGB(255, 255, 0));

CPoint l_points[4] = {
CPoint(760, 460),
CPoint(800, 380),
CPoint(920, 380),
CPoint(960, 460)
};

pDC->PolyBezier(l_points, 4);
int li_result = DPL.LoadFromCanvasDC(254, 3);

expected reult: yellow rectangle with a bezier curve, without any white space

result: please see this screenshot:
https://www.screencast.com/t/4zih8lqpGo






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