Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing and AlphaComposite  RSS feed

 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all together,
Currently I develop a printing tool, which must be able to print images with annotations, like highlighting and freehand. In case of highlighting I use the AlphaComposite to make the annotation a bit transparent. For the screen this works perfectly, but not for the printer. If I print this out, then two or three printer jobs are generated, which are about 9 MByte big. I found out that the AlphaComposite is the problem.
If I remove that, then everything works fine, but this is no solution for me, because the image in the back will be hidden.
So what can I do to provide the functionality of transparency? Is the XOR mode of Graphics the only way?

Any suggestions would be very helpful for me. Thanks in advance

Rene
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for replying myself, but it seems to me, that nobody knows anything about this topic?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!