Re: How to improve print quality?
From: Feng Yuan [MSFT] (fyuan_at_online.microsoft.com)
Date: 06/24/04
- Previous message: Feng Yuan [MSFT]: "Re: What IS GDI+ (compared to GDI)?"
- In reply to: Ly: "How to improve print quality?"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 23 Jun 2004 23:33:16 -0700
For non-Postscript printers, GDI+ is using raster operations with mask
bitmaps to simulate transparency. Printing quality could be bad on certain
laser printers because they are doing some thing special with those patten
brushes with the mask bitmaps.
The workaround may be compose image with background yourself (remove
transparency).
"Ly" <conly@hotmail.com> wrote in message
news:2534e3e6.0406231650.5680c414@posting.google.com...
> Hi,
>
> I tried to print a TIF image by using DrawImage() with 50%
> transparency but the output quality is really bad. It look quite good
> if there is no alpha blending at all. Does anyone know how I can
> improve the quality of the printing. Any help is appreciate. Thanks.
>
> Bitmap *bitmap = new Image("dal.tif");
>
> // Create an ImageAttributes object and set its color matrix.
> ColorMatrix colorMatrix = {1.0f, 0.0f, 0.0f, 0.0f, 0.0f,
> 0.0f, 1.0f, 0.0f, 0.0f, 0.0f,
> 0.0f, 0.0f, 1.0f, 0.0f, 0.0f,
> 0.0f, 0.0f, 0.0f, 0.5f, 0.0f,
> 0.0f, 0.0f, 0.0f, 0.0f, 1.0f};
> ImageAttributes *imageAttrib = new ImageAttributes();
> imageAttrib->SetColorMatrix(&colorMatrix, ColorMatrixFlagsDefault,
> ColorAdjustTypeBitmap);
>
> // draw image
> Graphics* pGraphics = new Graphics(hDC);
> pGraphics->SetCompositingQuality(CompositingQualityHighQuality);
> pGraphics->DrawImage(bitmap, Rect(0, 0, destWidth, destHeight),
> 0, 0, width, height, UnitPixel, imageAttrib);
- Previous message: Feng Yuan [MSFT]: "Re: What IS GDI+ (compared to GDI)?"
- In reply to: Ly: "How to improve print quality?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|