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!
GetCanvasDC, Delphi, PatternBrush |
Post Reply |
Author | |
Detlev
Beginner Joined: 28 Jan 10 Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 28 Jan 10 at 2:15PM |
Hallo, I am re-writing a delphi function which originally draws textured rectangles with a patternbrush to a printer canvas. I have changed the printer.canvas.handle to the QP.GetCanvasDC. Nearly everything works fine, with the exception of the textures. The PDF shows only the borderlines. The same bitmaps (1 bit or 4 color grayscale, it doesn't matter) can be drawn with QP.Drawimage w/o problems. They will also be drawn on a PaintBox.Canvas with the same GDI commands. Has anybody an idea, how to solve this problem? Detlev |
|
DELBEKE
Debenu Quick PDF Library Expert Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
Post Options
Thanks(0)
|
Hi Detlev
At the momment, Quickpdf can't handle pattern-brushes. Perhaps you can use some plain grayed or colored brushes ?
|
|
Detlev
Beginner Joined: 28 Jan 10 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
Hi Delbeke, I use colored brushes too. I write a simple mapping application, therefore filling polygons with some kind of pattern is mandatory. Is it possible to use QP functions to "floodfill" rectangles with the selected image? Or do you know any library for filling closed areas with vector based pattern basically by tiling and clipping, like in Adobe Illustrator? (elementary pattern described by a kind of scripting language) |
|
DELBEKE
Debenu Quick PDF Library Expert Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
Post Options
Thanks(0)
|
Hi Detlev, can you contact me directly at jean-luc(at)delbeke(point)fr
|
|
fellafoo
Team Player Joined: 21 May 22 Location: Simsbury, CT Status: Offline Points: 21 |
Post Options
Thanks(0)
|
Hello,
I've been looking at this and I am stumped as well. I can use Windows.CreatePatternBrush or Windows.CreateHatchBrush and draw the fill onto a metafile canvas then use ImportEMFFromStream to get the pattern fill onto the page, but that's a long way around.
Has anyone come up with a more-direct method? Thank You, MFM |
|
fellafoo
Team Player Joined: 21 May 22 Location: Simsbury, CT Status: Offline Points: 21 |
Post Options
Thanks(0)
|
This is what I've come up with so far. It seems to work.
|
|
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