ASF Bugzilla – Attachment 20792 Details for
Bug 43357
PDFGraphics2D addImage method: image in PDF look as very low resolution image
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file
mypatch.diff (text/plain), 947 bytes, created by
Fabio Sassi
on 2007-09-11 17:49:46 UTC
(
hide
)
Description:
patch file
Filename:
MIME Type:
Creator:
Fabio Sassi
Created:
2007-09-11 17:49:46 UTC
Size:
947 bytes
patch
obsolete
>Index: PDFGraphics2D.java >=================================================================== >--- PDFGraphics2D.java (revision 574734) >+++ PDFGraphics2D.java (working copy) >@@ -522,14 +522,15 @@ > if (imageInfo == null) { > // OK, have to build and add a PDF image > >- Dimension size = new Dimension(width, height); >+ Dimension size = new Dimension(img.getWidth(observer), >+ img.getHeight(observer)); > BufferedImage buf = buildBufferedImage(size); > > java.awt.Graphics2D g = buf.createGraphics(); > g.setComposite(AlphaComposite.SrcOver); > g.setBackground(new Color(1, 1, 1, 0)); > g.setPaint(new Color(1, 1, 1, 0)); >- g.fillRect(0, 0, width, height); >+ g.fillRect(0, 0, size.width, size.height); > g.clip(new Rectangle(0, 0, buf.getWidth(), buf.getHeight())); > g.setComposite(gc.getComposite()); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43357
: 20792