Can't print image - black rectangle is printed

Hello to all the java experts
I try to print an icon (gif file), therefore I draw the image into Graphics2D object. Sometimes when I changes the borders of the image a black rectangle is printed.
For example:
Image iisLogo=getToolkit().getImage("\\\\hostname\\TapiTkina\\logoMTI2.gif");
pg2.drawImage(iisLogo,0,0,400,70,null);
prints ok, but:
pg2.drawImage(iisLogo,0,0,400,60,null);
prints a black rectangle.
Why is it happen? What can I do to solve it?

Thanks for your reply - the path is correct but you gave me another idea. The second command drawImage() was performed before the first command (which loaded the image) had finished. Therefore I have loaded the image at the begining of my program (in order to be sure that its loading was finished) and it fixed the problem.
Thanks a lot again

Similar Messages

  • I can't print a pdf, don't print the black letters, there is a lot of buttons like space navy ship of NASA

    1.- You gringos, NOT ALL THE WORLD IS THE GARBAGE USA, we need forums in various language, out side, there is a WORLD WITH MANY OTHER COUNTRIES, THAT SPEAK A LOT OF DIFERENT LANGUAGES.
    2.- Why I can't find a simple thing: PRINT IN WHITE AND BLACK... Is that a great thing to ask?
    We don't want a lot of options to print, we don't want print in colors, grays, combinations, etc... WE ONLY WANT ONE BUTTON: "PRINT"
    3.- It's very dificult to find the correcto combination, because you offer a lot of buttons and options...
    4.- I have 4 hours trying to print a simple pdf document... and I can't because NO PRINT THE BLACK LETTERS...
    5.- How can I to do, for a simple print of a document pdf.
    6.- You turned the printing in a trip to the moon, with a lot of buttons, options, combinations... ALL IN ENGLISH, IS VERY INSANE...
    7.- I'm very angry... now I understand to OSAMA BIN LADEN... I DON'T SUPORT THEY, BUT I WISH YOU GRINGOS WILL CHANGE YOUR BRAIN.

    I get the answer, I found the solution:
    1.- At first time, I offer my apologyzes for my offensive words against americans, and people of adobe reader.
    You are not gringos, You are Americans.
    USA is not Garbage, is a great country.
    I found a page of adobe in Spanish, and yes, there is in many other languages pages of adobe reader.
    My PDF is in spanish, thanks american people for create invents, and pages in many languages.
    I'm really sorry for september 11, it was unfair, inhuman, a tragedy. Never again the war, we love peace.
    2.- I was very angry, because I lost money, because I can't finish my work, because I can't print the PDF document.
    3.- The solution was:
    Step 1: down the most recent version of adobe reader.
    Step 2: Choose the option "advanced", and then choose the option: "print like an image".
    YA encontré la solución...
    Paso 1.-
    actualizar a la versión más reciente de adobe reader.
    descargarla, abrirla, e instalarla
    Paso 2.- Volver a abrir el documento PDF, pero con la nueva versión de adobe reader.
    Paso 3.- Ir a imprimir, pero antes de darle aceptar, ir al cuadro que dice: "AVANZADA"
    Paso 4.- Entrar a avanzada, y marcar la casilla que dice "imprimir como imagen". y darle aceptar.
    Paso 5.- presionar el botón de imprimir y listo.
    Muchas gracias por su apoyo.
    PROBLEMA SOLUCIONADO.
    El asunto, era porque no eran letras de caracteres, sino que eran una foto o imagen de letras.
    por eso era necesario escoger la casilla de imprimir como imagen, además de actualizar al nuevo adobe reader.

  • How can I print with the black and white cartridge only?

    I am trying to print using the black and white cartridge only because magenta is out of ink but I'm getting the following error message in HP Photosmart C7200 series print dialog:
    The printer is out of ink.
    The following ink cartridges are empty: Magenta. Replace these ink cartridges to resume printing.
    How can I print with the black and white cartridge only?
    Mac OSX 10.7.3
    HP Photosmart C7280 (7200 series)
    This question was solved.
    View Solution.

    I am absolutely disgusted by this; clearly a scam from HP to make more money by selling extra ink cartridges!!  I will make sure to never buy any products from the shoddy rip off merchants at HP ever again!!
    You should be ashamed!!

  • How can I get my printer to print in color? I can only print black and white

    HP Officejet 6500 E710n-z-------windowsxp      My printer will not print anything in color.   How can Iget my printer to print in color?  I can only print in black and white.    It is a new Printer and we just installed it 2 wks ago.

    I am not sure I understand ''it still will not print. ''
    If you cannot see any content on pages you printed or in print preview, the cause might be margins which are set too high.
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    '''Right''': 12.7
    '''Top''': 12.7
    '''Left''': 12.7
    '''Bottom''': 12.7
    Check these values accordingly and change them if necessary.

  • Can I print a image larger than 4x6 directly from iPad's photo application to a HP Air Print printer without a additional app?

    Can I print a image larger than 4x6 directly from iPad's photo application to a HP Air Print printer without a additional app?

    jerryone1942 wrote:
    Can I print a image larger than 4x6 directly from iPad's photo application to a HP Air Print printer without a additional app?
    It depends upon the capabilities of your printer. If you have an HP printer with a photo tray then the Photo app will print to whatever size you load in to that tray.
    There's some more information here:
    Using AirPrint to Print Various Photo Sizes
    With other printers the user is given a choice from the printer's loaded paper sizes. You can see an example of that here:
    The Many Faces of the iOS Print Panel

  • When I try and print an "Approach Plate, or Departure" from ForeFlight to my Epson Stylus NX430 using AirPrint the image is resized. How can I print without it resizing. I want to have the plate print in the original size so I can use it.

    When I try and print an "Approach Plate, or Departure" from ForeFlight to my Epson Stylus NX430 using AirPrint the image is resized. How can I print without it resizing. I want to have the plate print in the original size so I can use it. Is this an Apple, Epson, or Foreflight Issue? I just purchased the printer so I can return it and get a different model or brand. I spoke to Epson and the suggestions given did not resolve the issue. I have cut the paper down to the size of the plate roughly 5.5x8 and it still try's to print at 8.5x11. I have also requested help through ForeFlights Tech help but have yet to receive an answer.
    Please help!

    It varies based on what you ordered and whether it is in stock or has to be assenbled and shipped from China. Your email conformation should give an estimate of when the items are expected to be shipped or available for pick up if you are having it sent to a local Apple Store.

  • How can I print only in black on my HP 6700 from my I Phone 5?

    How can I print only in black on my HP 6700 from my I Phone 5?

    Hi picheny. How are you printing from your iPhone. Are you using Apple's built in Airprint or the HP Eprint app? Airprint doesn't seem to have any such option. With Eprint, you can specify.
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Can I print with black cartridge only if colour cartidges are empty on HP C1600 seeries printer?

    Can I print using the black cartridge only whilst the colour cartridges are empty? I have a HP Photosmart C1600 series printer and Vista installed on my PC. I have set the Printer preferences to  "Grayscale and use Black Cartridge only" but the printer itself is telling me it wont print unless i replace my empty yellow cartridge. I bought a brand new Black cartridge so i could print using black ink only as i dont need to use colour.

    Hi,
    Many printers from all vendors will not print with just one empty ink cartidge, it doesn't matter which one. Some printers allow users to print but at slower than snail speed. Whichever way, we have to have ink carridges to be able to print (even scan).
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How can I print in black/white only a document that has colors in the original?

    How can I print in black/white only a document that has colors in its original. I don't need the print out to be in color, and I don't want to waste the color ink.

    It depends on your printer and the application you are using.
    In some applications you can choose color vs. greyscale/black&white when you do File > Print.   PowerPoint is one example of an application that allows this choice.
    Otherwise, you can usually select greyscale at the time you print the document.  Do File > Print. In the resulting dialog box, there should be an item called Copies & Pages (in Word and other applications) or Preview (in Preview).  Click it.  In the resulting list, you should then see an option called Printer Features.  Click it.  Then you should see an option called Printout Mode.  Usually one of the modes is Greyscale or Black & White.  Select it.  Then Print.
    This can also depend on your printer.  Exactly what make/model printer are you using?   And what kind of document are you trying to print (Word, PPT, JPEG, etc)?

  • Can I print in just black and white from my iPad to an hp5510 photosmart printer?

    Can I print in just black and white from my iPad to an hp5510 photos mart printer? 
    It seems ePrint is no longer available and now forced to use HP Connect. I am not seeing the option to print in black and white. Printing email messages in color is a waste of ink. Any help would be appreciated.
    Thanks

    I was using ePrint however that is auto-directing me to HPConnected and I no longer have the option to change the printing options to Black and White or Color. This is a recent change for me.
    banhien wrote:
    Hi,
    Yes, you have to use HP Connected now. Do you use AirPrint or ePrint ? ePrint allows you to select Color or Grayscale under Color mode (note: Grayscale ALSO uses color inks).
    Regards.

  • HT4356 How can I print a greyscale/fast document from my iPad wireless printer. It will print in color and high quality but want black and white

    How can I print a greyscale/black and white document from my iPad wireless printer???
    IT will print in COLOR and high quality print but would like to conserve ink (Esp. Coloured )
    is there a way to reconfigure settings either on my iPad or the printer ??? Cannot find a setting
    when u select print on the ipad it dos not allow you to change your settings before you print

    There is no setting for this. You can request it here:
    http://www.apple.com/feedback/

  • Officejet Pro 8000 A809 - can I print just black and have empty color cartridge?

    I saw in a previous post entitled "PSC 1410 - can I print just black and have empty color cartridge"
    that the printer does color underprinting even when printing black and white, to prevent bleeding.
    My question is, is this also true when selecting the grayscale printing option in the printer properties dialog box?
    I installed the printer using an ethernet connection to a Dell Inspiron 8200 laptop computer running Windows XP Professional

    Yes you will still need the color cartridge.  The printer uses what is called under printing, it still uses some of the color cartridge's ink in this process, even when printing in just black, the reason is to stop the black from "bleeding"
    I was an HP employee
    If I have helped you solve your issue please mark it as solved
    **Say Thanks By Clicking on the Kudos Star**

  • OfficeJet Pro 8620 Can't print black only on other media types

    Why won't the OfficeJet Pro 8625 driver allow me to print using black only on non-plain media types?
    I purchased an OfficeJet Pro 8625 for general home printing and to print shipping labels for my business.  I purchased a second tray so I can keep both plain paper and shipping labels in the printer all the time.
    To select the labels, I had to pick a media type for the labels tray.  I can't choose labels, so I chose Cardstock.  But when I select Cardstock as the type in the driver when printing, it will not allow me to select black ink only.  I want to print black only because the shipping labels come out a little bit fuzzy, with color fringes when printed in color.
    I'm not worried about ink usage.  I'm an Instant Ink subscriber.  I need the labels to be crisp, and printed full color they aren't crisp.
    What's the deal here?  Why can't I select black only?

    Hello @clough42 and welcome to the HP Forums!
    I'm sorry to hear that you've had issues printing in black ink only on anything other than plain paper, but I will certainly see what I can do to help out
    I'd recommend that you download and run the HP Print and Scan Doctor. If it fails on anything please return and let me know what happened and where it failed and we will go from there.
    If it passes everything and it appears there are no issues found, I'd recommend that you call our technical team for further options
    Hope this helps!!
    Please click “Accept as Solution ” if you feel my post resolved your issue, as it will help others find the solution faster
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    **MissTeriLynn**
    I work on behalf of HP

  • Can't print large images

    Hello,
    I'm printing a set of large, stiched images. There are thirty-eight images in the set and the first eight went fine. Suddenly I can't print from CS3.
    I choose print and the print dialog comes up. It is up for a minute or two (normal with the first eight) but then it just disappears. No job spools to the print monitor program. No error messages. Nothing.
    The images are very large. Looking in the finder I see file sizes of 730 mb and so forth. The ones that printed earlier without problem look to be about half that size. However, when I shrunk the larger print down by flattening layers and converting to 8-bit from 16-bit (making it only 185 mb) it still would not print. A second image of about the same initial size would also not print. However, I test printed an image from the first eight and it printed fine.
    So, I'm puzzled. I thought the problem was a too large file size but then why won't the "shrunken" version print? Why is there no error message? How the heck can I print these images?
    I'm running a Mac 24" 2.4 GHz with 4 GB RAM. My Photoshop is 10.0.1 CS3. No other programs are running, I've restarted with no change.
    Ideas?
    Thanks,
    --Darin

    Hey there,
    Outstanding--I printed an 8x10 of the image and now a 16x20. I spent all day trying to get this to work...
    Thank you very much!
    Now, I'm curious. I understand, in a general way, about the preferences. File is corrupted, ditch the file. But why would I *lower* the RAM allocation to 30%? In my trouble-shooting I actually had raised it (but it made no difference).
    Finally, when I went to print after following your instructions I saw the warning box about the postscript--which reminded me that I *hadn't* seen that box when it was malfunctioning. I mention this just for teh sake of completeness and for those who are searching for a fix later on.
    Thanks again,
    --Darin

  • Can't get NEW black ink cartridge to work in 5515 HP all-in-one-printer

    Can't get NEW black ink cartridge to work in printer..help

    Hi caralu,
    I was just wondering if you were able to try banhien's recommendation? Please let me know the outcome.
    Thanks,
    HevnLgh
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

Maybe you are looking for

  • Tabs When Full Screen in Lion?

    When running Safari in full screen mode on Lion it looks like there's no way to open multiple pages (tabs) at once?

  • TS1424 when setting up ipad2 id sign in issue

    when setting up ipad2 from a restore when i get to sign in with apple id   (on first setup) after agreeing to the ios terms i get id could not be created because of a server error but if i skip  then sign in using app store my id works fine

  • Ant, eclipse help is needed please!!

    Hi all, I have a quick question in regard of ant and eclipse. If any of you know how to resolve this problem, please let me know . ok so the problem is the following. Is there a way to use Apache ANT to compile and execute a particular file in eclips

  • Reload button greyed out most of the time.

    When I want to reload a site to up date info, frequently the reload button is greyed out, and I have to go to bookmarks to refresh the site. Windows 7 Home Premium - Service Pack 1 - All updates. FF v 22.0

  • Lost Masters/New User question

    I have about 50 pictures in a project and aperture is telling me I can't do anything with them because the Masters can't be located. I've tried file>relocate masters and file>manage referenced file to no avail. When I searched here for answers I foun