Re: How to improve print quality?

From: Feng Yuan [MSFT] (fyuan_at_online.microsoft.com)
Date: 06/24/04

  • Next message: Feng Yuan [MSFT]: "Re: How to rotate a bitmap"
    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);


  • Next message: Feng Yuan [MSFT]: "Re: How to rotate a bitmap"

    Relevant Pages

    • Re: setting up Epson LX-800 dotmatrix on FC4
      ... printing quality is a bit better, ... the CUPS test page lists a dpi of 120x72. ... Or any other way to increase print quality? ... > If you've got httpd running, send your browser to ...
      (Fedora)
    • Re: BMP to GD (then to JPG) - 32 bits?
      ... > I need to convert 32 bit Windows bitmaps to jpgs with PHP. ... GD library interprets the alpha value as transparency (255 = fully ...
      (comp.lang.php)
    • Re: png transparency
      ... transparency is support by the "System" ... by any of the standard controls. ... There is code with which you can draw bitmaps onto other bitmaps and ... given color as transparent color so that the underlaying control ...
      (microsoft.public.dotnet.framework.compactframework)
    • Re: ArkivMusics new download service, on S.F. Classical Music Examiner
      ... and the quality of the playback equipment. ... although I prefer the greater depth and transparency one gets ... with lossless formats like FLAC or Apple Lossless. ... know it's very easy to fool oneself. ...
      (rec.music.classical.recordings)
    • Re: More Expo Pics
      ... quality, and a global framework for transparency. ... Are you synergising your paradigms as well? ...
      (uk.comp.sys.mac)