PXC_GetContentDC and hollow brushes

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
dune2
User
Posts: 4
Joined: Thu Mar 15, 2007 8:46 pm

PXC_GetContentDC and hollow brushes

Post by dune2 » Thu Mar 15, 2007 8:58 pm

Hello,

I've encountered what appears to be a bug with the device content drawing implementation.

If I select a brush with an lbStyle (in logbrush struct) of BS_HOLLOW, I am under the impression that drawn objects will have transparent backgrounds. However, a FillRgn call with a hollow brush is filling with that last selected color.

Is this desired behavior? We are reusing existing code that doesn't exhibit this behavior with either an on screen DC or print DC.

General idea:

dc = PXC_GetContentDC(....)
logbrush.lbStyle = BS_HOLLOW;
logbrush.lbColor = someColor;
brush = CreateBrushIndirect(&logbrush);
SelectObject(brush);
FillRgn(dc, aPolygonRegion, brush);

"aPolygonRegion" is filled with "someColor".

Thanks,
Dan

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sat Mar 17, 2007 9:25 pm

Hi Dan,

Its wiht the project director responsible and I hope to have a resolution for you later this week - will advise as soon as I have his comments.

Thanks for your patience.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

dune2
User
Posts: 4
Joined: Thu Mar 15, 2007 8:46 pm

Post by dune2 » Sat Mar 17, 2007 9:31 pm

Thank you. I have a work around, but if there is a clean way to solve the problem that would be preferred.

Thanks
Dan

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sun Mar 18, 2007 9:17 am

Hi Dan,

we will endeavour to resolve as soon as possible - thanks for your patience.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

dune2
User
Posts: 4
Joined: Thu Mar 15, 2007 8:46 pm

status

Post by dune2 » Fri Mar 23, 2007 7:55 pm

Hello, is there any additional infomation available on this?

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Sat Mar 24, 2007 10:36 am

Hi,

Yes - build 3.60114 is now available.

http://www.tracker-software.com/downloads/

HTH
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply