This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi When I use TexturePaint to fill an area with tiled image, the printing halts for large graphics objects.For smaller graphics object(by smaller objects I mean when I draw/fill only small regions in the Graphic object), the printing works fine. For a simple program,I used the code:
Ofcourse the above code will work because the a small area is being filled.The above code is just to give u an idea how I ma using TexturePaint. I used a similar code to draw large areas in the graphics object. While trying to find the solution, I clicked on the print icon which appears in the taskbar of Windows when the print method is called. This displays the printing status dialog. IN this dialog, I found that the file size of the temporary file created for printing increases dramatically when the TexturePaint is used instead of simple setColor. For example for smalll grahics object, the file size is 30 kb when using setColor, but increases to 500 kb when usin g TexturePaint. But I need to draw large graphs/plots on the graphics object whose printing may span 5-6 pages, with occasional filling by textures. I found that when setColor is used the file size is 350 kb but when I use TexturePaint the file size increases to 7 Mb!!!. Then the printing never takes place. I guess this is because the file size goes beyond the printer's memory/buffer. Can anybody give me a solution as to how do I print Textures(a small image tiled repeatedly to fill certain areas) when the graphics object is huge.PLease give me some hint. I am nearing my deadline!!! thanks in advance. regards Tanveer
Nate - Edited post to shorten long line in CODE block. [ January 09, 2002: Message edited by: Nathan Pruett ]
Author of JPhotoBrush Pro (www.jphotobrushpro.com)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Using TexturePaint causes printing problem