|
|
 |
TC$ TC 01/31/2007 :: 22:01
Anonyme
| | I am of course in eval mode  Next question When I print a logo the edge of the logo are pixelated what else besides SetSmoothEffect fix that up
I print to vb printer object using Set oGdPicture = New Gdpicture.cGdPicture oGdPicture.LoadFromFile "d:\projects\todo\ACT_AreaManifest-Logo\ACTBLK300.jpg" oGdPicture.SetSmoothEffect Printer.PaintPicture oGdPicture.GetPicture, 35, 3, 45, 5 printer.enddoc http://members.shaw.ca/trclark/images/200701311250392000889.PDF the src file is here http://members.shaw.ca/trclark/images/ACTBLK300.jpg
| |
 |
Loïc$2006306 Loïc 02/01/2007 :: 11:27
Registered
| | Hi,
You can try to improve the print quality like this:
Printer.PrintQuality = -4
or you can try to resize the image with InterpolationModeHighQualityBicubic with the printed dimentions before the print process.
Regards,
Loïc | |
 |
TC$ TC 02/01/2007 :: 17:21
Anonyme
| | So I tried both it is still very poor http://members.shaw.ca/trclark/images/200701311250392000889.PDF
'oGdPicture.ConvertTo64Bpp oGdPicture.Resize 300, 100, 7 oGdPicture.SetSmoothEffect 'oGdPicture.SetGreyScaleEffect 'oGdPicture.SetHorizontalResolution 1200 oGdPicture.FiltersToPicture Printer.PrintQuality = -4 Printer.PaintPicture oGdPicture.GetPicture, 35, 3 Printer.EndDoc
I have been trying to print logo in our application but it is always pixelated I wonder if you might try to print that image http://members.shaw.ca/trclark/images/ACTBLK300.jpg using your ocx and show me the magic we going to buy licences as soon as i can show mgmt that this ocx does the job ??
| |
 |
Loïc$2006306 Loïc 02/01/2007 :: 18:00
Registered
| | Hi,
I think you want to do something like that: 
Dim nWidthPrintMM As Long, nHeightPrintMM As Long
oGdPicture.ResizeWidthRatio 600, 7 nWidthPrintMM = (oGdPicture.GetWidth / oGdPicture.GetHorizontalResolution) * 25.4 nHeightPrintMM = (oGdPicture.GetHeight / oGdPicture.GetVerticalResolution) * 25.4
Printer.ScaleMode = vbMillimeters Printer.PrintQuality = -4 Printer.PaintPicture oGdPicture.GetPicture, 75, 3, nWidthPrintMM, nHeightPrintMM Printer.EndDoc
Best regards,
Loïc Carrère | |
 |
TC$ TC 02/01/2007 :: 19:14
Anonyme
| | well finally I got this figured out its nothing to do with the image, vb or gd pic The issue is that the pdf printer driver ignores ALLL print quality/dpi settings for images & these setting must be set by the driver for the pdf so all my images were getting defaulted to 72dpi | |
 |
TC$ TC 02/01/2007 :: 19:27
Anonyme
| | I should add the pdf printer driver we use is activePDF server
which bring up another questions we have not been overly happy with active pdf as the pdf engine BUT we do like the interface we just print to the std vb printer after making a call to the activepdf server...
I like you ocx because it has both graphics helper & a pdf file creator... but in order to use your pdf creator natively we would have to change a lot of code ....
is it possible to have your pdf creator look like just another instance of a printer or is it possible to expose a gdpic printer object that has the same methods/attributes or sub set thereof & have it over ride the instrinct vb printer object such that printer.print would do just do a pdfdrawtest, paintpicture would do pdfdraw image etc and printer.enddoc would do pdfendpage
it would also expose all the other methods as well
This way it a pdf drop for in for vb app
thoughts ?
| |
 |
TC$ TC 02/02/2007 :: 21:09
Anonyme
| | hmm no thoughts ? | |