not all forums are alike... I have gotten following response to the same thread question from an other forum:
>>> MS paint is very simple image editing software, it sends very simple data to printer, but your programs is a complicated program, which will processing your image data into this and...
reflecting and sleuthing: seems the print queue fills with the pixel-by-pixel data (50MB) in about 10...20 seconds; and it gets emptied (sent to printer) by Windows in low priority mode (surely a USB port can send data to a printer faster than 50MB per 10 minutes). Looking at CPU performance...
the Help on StretchDraw does not imply any compression or speed up .. StretchDraw will use the Draw method to stretch the image to fit a specified rectangle... StretchDIBits is not found in Delphi7... Tnx, RonQ
the main reason the speed is an issue (local or networked) is that customer feedback on printing, is "unsatisfactory performance". That it would be faster to copy the clipboard to MS Paint and print (prints in 20seconds), than to invoke the printing from within the program( prints in 10 minutes...
My experience(s) show that the print job preamble between MS Paint and Delphi's Printer Object "must be" different. I gather that Windows and the printer both decypher the print job preamble.... So I could see needing knowledge of details about the "print job preamble"; and consequently access...
sorry... about slight oops on my part: the program sends only non-background colored screen bytes to the printer... figuring the white spaces on the paper would not need changing/printing.....
RonQ
BTW: program fragment is supplied in"confidential mode" to the forum .. and "normal" legalease...
Thank you for multiple replies.
My code sends only non-zero (screen) bytes to the printer.
I understand that the Win-printing system may have to (or is geared) to send/specify all bytes to print on the paper; and that therefore 50 MB is warranted. MS Paint would be slaved to that too, but it...
oops, "thank you, did so.." is not applicable here . this question was originally posted in the Pascal forum. Where the feedback was to post this question in the Borland Delphi Forum.
Now the question is here and begs for an answer/tip.
thanks,
ronkq.
.have a piece of Delphi (6,7,2010) code which does a screen capture to the Windows Clipboard, and prints a single sheet of the screen (1024x768) on any printer.
Problem: takes too long to get started printing vs MS Paint, which prints immediately.
How to achieve same thing in Delphi/PascaL...
...have a piece of Delphi (6,7,2010) code which does a screen capture to the Windows Clipboard, and prints a single sheet of the screen (1024x768) on any printer.
Problem: takes too long to get started printing vs MS Paint, which prints immediately.
How to achieve same thing in Delphi/PascaL...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.