Windows Develop Bookmark and Share   
 index > Windows Forms General > Using PrintDocument to print Alpha-Blended GDI+ vector graphics (Alpha Blending Transparency Printing .Net)
 

Using PrintDocument to print Alpha-Blended GDI+ vector graphics (Alpha Blending Transparency Printing .Net)

Hi There,

I've been trying to use the Graphics instance generated by the PrintDocument to render Alpha Blending graphical objects (i/e rectangle filled with Brush=100,255,0,0) - but without any luck, they all appear.... defected in a way, can't really point the finger on whats going on there... (check out this capture).

Anyhow, what i know is:

- This is true to both 300/600 dpis.
- This true even when printing to PDF/OneNote (not really printer/driver problem)
- This happens even when the PrinterResolutionKind set to High.
- When PrintPreview'ing this doesn't happen.
- When first rendering to bitmap and then to the Graphics, this doesn't happen (but i cant use it cuz out of memory on large images)
-

Any ideas??


Thanks

--
Guy
Guy161803399  Monday, July 14, 2008 7:23 AM
You'll have to describe "defected". I see dithered colors, it looks like a proper alpha-blend otherwise.
nobugz  Tuesday, July 15, 2008 1:40 AM
Is that proper alpha blending when it comes to rendering to printing oriented Graphics instance?

- why isn't that true when rendering to display oriented graphics?
- why this issue cannot be seen when printing alpha-blended objects with MS Office and other products?



Thanks


Guy161803399  Tuesday, July 15, 2008 6:16 AM

Hi GuyBoyangu,

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

Best Regards,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Monday, July 21, 2008 8:56 AM

You can use google to search for other answers

Custom Search

More Threads

• Autocomplete in multiline textbox
• inheriting toolstrips
• Print one page foreach item in my listview
• Using MSHFlexGrid in C#
• don't close ContextMenu (when clicking on SubMenu)
• Attempted to read and write protected memoryâ€?ActiveX on Vista
• Question about ComboBoxes
• How to color the intersection between 2 cones?
• Execution Permissions Problem with the .NET Framework
• Scroll Bars