Home : Printing : Print Color Images
Q10209 - HOWTO: Print Color Images

To print color images using the ImagePrintDocument class you must use a boolean value of (true) for the RenderBottomTop parameter.

This method will draw the image onto a graphics object and convert to a bottom-top Bitmap if necessary.  Some devices such as printers will fail when drawing a top-bottom image such as those internally stored in DotImage and .NET.

 

Example:

ImagePrintDocument printDoc = new ImagePrintDocument();

printDoc.GetImage += new PrintImageEventHandler(PrintDocument_GetImage);

void PrintDocument_GetImage(object sender, PrintImageEventArgs e)
{
        AtalaImage img= new AtalaImage(imagePath);
        img.Draw(e.Graphics, new Rectangle(100, 100, Convert.ToInt32(e.Graphics.DpiX), Convert.ToInt32(e.Graphics.DpiY)), new Rectangle(Point.Empty, img.Size), true);
}

 

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved