Image clipped/cropped when drawing with a BufferedImageOp to printer?

Hey guys,
I have a method that draws a BufferedImage to the provided Graphics object. The image has an associaced AffineTransform, and so the image is drawn by creating an AffineTransformOp from that AffineTransform and then using drawImage(BufferedImage, BufferedImageOp, int, int).
This method works correctly when I use it to paint the image to the Graphics object of a JComponent - the image is painted to the screen correctly. If I use this method to paint the image to the Graphics object provided by a PrintJob, however, the image is clipped/cropped to its original size. The image is still rotated/scaled correctly as specified by the AffineTransform, but only the parts of the image remaining inside the original image's boundary are painted.
I assume this has something to do with the fact that the printer's Graphics object has some transforms attached to it already, but I'm not sure what I can do to fix this. If anybody has a suggestion I'd be glad to hear it.
Thanks,
Nic

The clipState is 0 and the clipRegion is the size of the page being printed both before and after the drawImage() call. The Graphic's clipping isn't the problem, I guess. I have no idea what else it could be, though.
Nic

Similar Messages

  • Jittery lines when drawing with pencil tool in Flash

    When drawing with the pencil tool using an Intuos Wacom tablet, the lines are jagged and create several points along the jagged line, making the pencil tool unusable. Does not occur with any other program. Using Flash CC Pro 2014.

    Hi Jessy,
    Can you please provide the following details to understand the issue .
    What is mode of pencil you have set to draw like straihgten ,Smooth or Ink ,and if it smooth mode what is the smothing value you have set .
    Wacom driver version.
    do you see this problem in any previous version of Flash.
    Thanks!
    Latha

  • Slow down when processing image clipping in photo shop with pen tool

    Adobe cs5 slow down when processing image clipping use with pen tool. The path is applying after few seconds when we draw on the image. My system supporting 4 GB memory with 64 bit.

    The main thing i use paths for in photoshop is extracting objects from photos.
    Other uses include stroking paths with the paint tools. For example, if you had
    a powerline to remove, one could trace the line with the pen tool and then stroke
    the path with spot healing brush set to content aware fill.
    more info on photoshop paths:
    http://help.adobe.com/en_US/photoshop/cs/using/WSfd1234e1c4b69f30ea53e41001031ab64-73ada.h tml
    MTSTUNER

  • Images moved/cropped when converting CS3 file to PDF

    Hi,
    I was hoping someone would be able to help me out. When converting a flyer I have in CS3 to PDF for distribution two of the four pictures on the page move/crop themselves.
    One moves into the upper left hand of where it is supposed to be and only shows 1/4 of the picture, the other gets the right half of it cut off.
    Any ideas?
    Thanks!

    It is when I try to export to PDF, sorry about the confusion.
    The pictures are only moved in the PDF file, they continue to look like they are supposed to in the ID file.
    I'm not sure if this helps but when I saved it as an INX file the two pictures that behave as they're supposed when exporting to PDF turned into grey boxes and those that became cropped when converting to PDF were still visible. When I then saved that to a PDF the pictures once again cropped and moved themselves, and the grey boxes remained.
    I'm not sure if perhaps some of the pictures were placed in the ID document incorrectly, I didn't make the file and was only given it to try and fix the problem. However as you can see I have very little InDesign knowledge.

  • Image Still Cropped When Viewed Full Screen

    Hi everyone.  I am trying to figue out if there is any way in iBooks Author to have an image cropped(masked) in layout view, but then enable it to show the full unmasked and uncropeed image when tapped to be viewed full screen on the iPad.
    I have a client that wants some image to only take up half a page vertically and have a widescreen type crop with text on the lower half of the page, but would like to see the full image when tapped on instead of the widescreen crop.  Thanks in advance for any help you can offer.
    Griffin

    Are you meaning to put a 100 pt+ line border on the image
    Yes. Like this:
    (1)
    (2) Then do this:
    (3)
    Which should then result in that image being zoomed too large and just enough so that the original black border is clipped and you are able to see the image in all it's fullness.

  • When drawing with polygon tool, a solid black rectangle appears??

    When I use the polygon tool to draw, a mysterious black rectangle appears underneath, and grows with my cursor movement, obscurring whatever is underneath. The black shape has nothing to do with the shape I'm creating. I am tracing boundary locations on a map, for example, and the black shape blocks out the lines I'm trying to trace, if my opacity is set at 100%.  It mimics the opacity I'm using to draw.  I never saw this in AA7.  Why would anyone want this function, and is there a way to turn it off?

    Hey leonieDF
    Thanks for your reply. I am exporting edited versions - export seems to work OK when exporting originals. But all my images are edited a bit, even if just simple cropping etc.
    I tried adjusting the color sync profile as you suggested but this didn't help. I also adjusted the gamma and watermark and again, no change.
    It seems like I have some kind of bug or something within Aperture, because it is doing all kind of strange things, like now eny time I edit a photo at all it appears solid black in my "browse" view (but OK when I double click it). Similarly, when I duplicate a photo it does random funky stuff to the photo in browse view (from being solid black, to solid red, to appeairng to have some random color filter, to appearing like static from static TV). These issues are all secondary though from the main issue of not being able to export images, since I have a friends wedding photos I am trying to get out to them!
    Any other ideas of what might be causing this?
    Thanks for your help!

  • Colors are overlapping when drawing with a tablet...

    I apologize for the bad headline.
    My problem is easy. When coloring something with my tablet, the colors are overlapping as hell but ONLY when I release the pen and then color again, over it.
    The problem with that is, that I cannot go back once the pen is released and get a even~ish color. It is almost like I get the multiply-effect even though neither the layer nor the pen is set to that option.
    Maybe these pictrues can explain it better:
    http://i54.tinypic.com/sbroqw.jpg
    This picture shows the overlapping. It is way to dark, and it doesn't get this dark when I go back and the pen was not released. Only, when I release the pen and then go back. It doesn't get this dark, at all, in other programs like Paintool Sai and more.
    Here is a picture of my settings.
    http://tinypic.com/r/v6m2pd/7
    I really need this solved. Come with everything, I'd greatfull!

    My advice would be to learn a little more about Illustrator. Once you do, the tablet will work more like you're expecting. For instance, I would look up in the Help files or in a book how the brush and pencil tools function. Different settings in different places will spare you the surprise of ever-changing lines as you draw them. You'll probably also want to know how to draw open and closed paths if you hope to fill your drawings with color.
    On the other hand, drawing on paper is a treat that you'll not really be able to replicate on computer. Even with a tablet. Doesn't feel the same, doesn't sound the same, doesn't smell the same. Doesn't even look the same.

  • IWeb and .Mac images are dark when viewed with PCs--how to fix?

    I do my Photo editing in iPhoto on an iMac or an iBook, and the images look fine. Once posted to a .Mac or iWeb page, they still look fine on my Mac monitors, but when viewed on PCs and PC laptops, they are MUCH darker... The sites look terrible. The brightness on the nonMac monitors is turned up already.
    Is there something special I should do to get images to appear correctly on nonMac machines?

    Thanks for the responses. This has been a problem for a couple of years and this is real advice! I even had this problem with a book published through Apple. Anyway...
    I didn't follow Barbara advice (OK, I'm slow, but I couldn't quite figure out where the gamma setting was), but I did use Falcon01's suggestion to use the sRGB IEC61966-2.1 profile.
    I then reviewed and re-edited the relevant pictures. In this case, they are pictures of my girlfriend's condo she is trying to rent (mostly slightly off-white walls (aren't they all?) and dark, rich parquet flooring.) First, the pictures were darker, and I could adjust the exposure to much brighter, which helped a great deal. It did, however, introduce lots of color artifacts (pinkish blotchy walls). I drastically reduced the saturation which (good) made the walls look fairly normal, but (bad) made the rich wood flooring look drab and grayish. For this purpose, this will be satifactory--the pictures now at least are bright enough to not look dark and dank, and people can see what the rooms look like.
    When I try this on important pictures of people and such, this approach makes me nervous. Most pictures will look awful if I boost expsoure and drain the color out. How do others handle this? Thanks in advance. BTW, here is the revised web site if interested.
    http://web.mac.com/curtishaymore/iWeb/B7EC3471-1B51-467B-8C79-01CD335FC856/Libra ry%203.html

  • Image capture crashes when syncing with my ipad2

    i recently disconnected my ipad 2 with my macbook during photo syncing with the image capture by mistake. after that, the image capture keeps crashing right after it opens when my ipad 2 is connecting with my computer. but it works fine to sync to my iphone.
    i restored the ipad 2 just now, but the image capture problem is still there. can someone please help over this or experiences the same issue?

    I would assume that your restore should have done everything a Reset would, nevertheless, try the Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. When the screen goes blank power On again in the normal way.] It is absolutely/appsolutely safe! You have nothing to lose in more ways than one!

  • Pasted images are cropped when printed

    I use the Snipping Tool quite often.  Since purchasing the HP Envy 4500 printer, when I paste snipped images to Word, the image looks fine in Print Preview.  However, when I print the document, the snipped image is enlarged and does not fit in the pasted area.  I only get a portion of the image on paper.

    The only solution I've found is to paste the snip in Paint, and then copy that image and paste it to Word. It is so frustrating that HP can't come up with a solution. They think it is a Microsoft problem.

  • Image is garbled when scanning with image capture

    I have a strange problem scanning using Image Capture and an Epson Workforce 600 printer/scanner/fax.
    The preview scan looks like this. When opened in Pixelmator, it looks similar.
    After a reboot, the preview images from the scanner are okay, images scan fine but only for a short time. Then it goes back to something like the image above.
    I would appreciate any suggestions.
    iMac 27", late 2009
    OS X 10.9.4

    In the end, I did a clean re-installation of the system software -- our iMac was having other issues.
    I think that the "garbled" image was a known Pixelmator/Graphics card problem.
    http://support.pixelmator.com/viewtopic.php?f=5&t=10339
    Apparently, they have, "...top men working on it right now."
    Thanks for the help!

  • When drawing with the shape tool in Flash how can I vary the stroke width?

    I created an oval shape and I'd like to vary the stroke width so it's not all just one uniform thickness. However in the Properties window I can only find the uniform stroke width and style options (solid, dotted, hashed, etc...). How can I add some tapering?
    Thank you for your help.
    Sarah

    You probably need to convert the line to a fill and then change the shape of it. .. Modify -> Shape -> Convert Lines to Fills

  • Adobe Form output cropped when sent directly from SAP to printer

    I have created an Adobe Form (not interactive) that looks perfectly OK when previewed in Adobe Acrobat viewer but when printed blank margins of 4-5 millimeters are applied on all 4 paper edges. The form was designed with a coloured frame around it but the margins effectively remove most of the frame. The form content is being cropped instead of being compressed inside the margins.
    The form has been created with LiveCycle Designer via SAP transaction SFP. I am generating the form from an ABAP program
    When the form is printed from the Adobe Acrobat viewer I have the option to set Page Scaling to 'Fit to Printable Area'. This makes the form content being compressed inside the blank margins and the coloured frame remains intact. If I leave the Page Scaling setting as 'None' the output is being cropped as described above.
    The real problem occurs when I want to print without previewing first. I need to do that since previewing enables the user to skip printing and the application must know if the form has been printed or not. I have so far found no way to make the printer print on the paper edges or fit the content to printable area. Is there some setting in the output parameters than handles this?
    Also there is a need for duplex printing when sending form directly to printer. On help.sap.com there is information about duplex print for SAPscript and Smartforms but nothing for Adobe Forms.
    Here is an excerpt of the ABAP code used for printing the Adobe Form:
      DATA: zs_outparams TYPE sfpoutputparams,
                 z_fmname     TYPE rs38l_fnam.
    Set some print parameters
      zs_outparams-nodialog = abap_true.        "No user dialog
      zs_outparams-device   = 'PRINTER'.          "Output device
      zs_outparams-dest     = z_pdest.              "Printer name
      zs_outparams-reqnew   = abap_true.        "New spool request
      zs_outparams-reqimm   = abap_true.        "Print immediately
    Open print job
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = zs_outparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Get FM name for form
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = 'Z_TEST_FORM'
        IMPORTING
          e_funcname = z_fmname.
    Call FM to print form
      CALL FUNCTION z_fmname
        EXPORTING
          i_header       = t_data_for_form
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        RAISE print_error.
      ENDIF.
    Close print job
      CALL FUNCTION 'FP_JOB_CLOSE'
        EXCEPTIONS
          usage_error    = 1
          system_error   = 2
          internal_error = 3
          OTHERS         = 4.
      IF sy-subrc <> 0.
        "Ignore
      ENDIF.
    Please advise on how to
    -  avoid the content cropping
    -  enable duplex print
    when sending Adobe forms directly to the printer
    Thanks very much!
    Bernt Evensen

    Thanks for your answer, Ramachandra!
    However I need some more specific information to solve this.
    Which printer layout settings are relevant for the handling of margins and duplex printing for Adobe Forms?
    I have not set up the printer myself but when talking to the printer guy which settings should I recommend him to look at?
    I can see in transaction SPAD that there are settings specific to SmartForms but there is nothing said about Adobe Forms. Is there some way to make Adobe Forms related setting appear in SPAD for a device type?
    Maybe my problem is not related to the printer device settings but rather to the way the printer is being called. When printing duplex we will have to override the default settings of the printer anyway.
    Function module FP_JOB_OPEN has a parameter structure of the type SFPOUTPUTPARAMS. Which fields in this parameter structure are to be manipulated to get duplex print and output fitted to page size?

  • Iphoto cropping images off page when printing

    Hi,
    When I select 2 images in iPhoto vertically on one page in portrait, , they show in iPhoto correctly with a border around edges. However, when I hit print, they become landscape, and the top of top image is cropped off page with the bottom of the bottom photo cropped off page too.
    I have reviewed all settings with no success.
    In the Apple shop they suggested asking on here because they didn't know what the problem was either.
    All help gratefully accepted.
    It was doing this using OSX and still is with Yosamite.
    Mandy

    Try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home/Library/ Preferences folder.
    2 - delete the contents the following folder:
    User/Library/Containers/com.apple.iPhoto
    3 - reboot, launch iPhoto and try again.
    NOTE: For Mavericks and Yosemite,  go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
    where you can check the Show Library Folder checkbox.

  • Rotate view when drawing

    I know it's not possible to do that like in Photoshop (I have submitted a feature request).
    How do you handle this problem when drawing with a tablet?

    Rotate the Tablet?

Maybe you are looking for

  • Using Disk Utility for Boot Camp to work

    I'm trying to install Windows 7, but Boot Camp gave me the old error message about having unmovable data and needed to use Disk Utility to format it as a Single Mac OS Extended (Journaled) Volume. So I backed everything up and am ready to go, but whe

  • How to view adobe flash? how to save pdf opened in safari?

    I am new user on vista. Safari is cool. got addicted but have toughtime getting used to it. 1. Flash files won't run. Adobe do not have flash plugin for safari http://www.flickr.com/photos/8869854@N04/545930914/ for reference 2. PDFs open in Safari w

  • Business Content for PM Orders & Components

    What is the relevant business contenet for examining PM Operations. I can see there is a cube 0PM_C04 but this doesnt look at any of the associated components. I want a cube that (or multiprovider etc) that will show me components used on operations.

  • How do i print out membership card

    there's use to be away to print out membership card for rewards, now i cant seem to do it. tired of giving them my phone number to look it up.

  • SC Template error: "Enter at least one item or one limit"

    Hi, When creating a Purchase Order,based in a Shopping Cart Template, when we add the item to the Purchase Order, we are getting this error that does not permit to continue:"Enter at least one item or one limit". This error looks a mistake, as we are