Transparent bitmaps have a discoloration during printing. InDesign
It must be something simple, and I'm sorry if it is. I have to be using the terms wrong when searching, I'm not a professional printing. I thank in advance for any help, you may be able to provide. I am at a loss.
Whenever I have add a bitmap, or a png, tiff gif, which has a transparent background, I can't place it on other objects. Whenever I do, the alpha channel prints as a slightly different color. There is no indication on the screen, but if I print via InDesign or Acrobat after the converting to PDF a box appears.
In the case this morning, I need to add a round stamp on a color fills the rectangle. I tried the seal as a TIFF, png and the Native PSD. There is only one layer, the round stamp. I used "place" to place the object in InDesign and everything seems fine. Here's what it looks like after export to PDF. In Photoshop there is no color difference at all on the gray background when I took a screenshot.
When I print the image, this is what I get. On some printers, the effect is not so bad, but still present.
I worked around this problem forever, usually, I just change the design, so I need to ride anything, but is really limited.
Any suggestions? I'm on a Windows 7 computer running InDesign and Photoshop 5.5.
http://InDesignSecrets.com/eliminating-YDB-yucky-discolored-box-syndrome.Ph
p
Tags: InDesign
Similar Questions
-
How can I resize a digital image using software of photo gallery to keep my digital images to be cut during printing on standard paper by a commercial processor? MP
How can I resize a digital image using software of photo gallery to keep my digital images to be cut during printing on standard paper by a commercial processor? MP
====================================
Sometimes the only resizing is not the answer because the
the original size is different from the print size.You may need to crop photos to the size you want
print to ensure that no clipping will occur. Cropping
to a different aspect ratio will lose some parts of the picture but
at least you have control over it.Windows Live Photo Gallery is a cropping tool.
Volunteer - MS - MVP - Digital Media Experience J - Notice_This is not tech support_I'm volunteer - Solutions that work for me may not work for you - * proceed at your own risk *.
-
Solution to resize properly transparent bitmaps
Hello everyone,
Recently, I tried to use Bitmap.scaleInto () to resize the transparent bitmap images in my application. Although this feature is a nice addition to JDE 5, it tends to produce bad results on the transparent bitmaps such as PNG24 files. The Forum posts that I found on the web for this problem talk using Bitmap.createAlpha () which restores transparency, but still produces artifacts in the final bitmap as the white edges and colours of the wicked pixels.
To resolve this problem without the use of an external library, I created the following function. He always uses scaleInto(), but in a different way. I added some comments in the service and created a screenshot showing the results before and after (don't worry about the photos, they are a part of this project, I am working currently on). I write the result here in the hope that it will help others looking to achieve the same thing. The code has been tested in JDE 5 and 6 of JDE and the sample photos have been created using different combinations of types of filters and reports l / h.
package com.patchou.ui;import net.rim.device.api.system.Bitmap;import net.rim.device.api.ui.Color;import net.rim.device.api.ui.Graphics;/** * * @author Patchou * @version 1.01 * */public class GPATools{ /** * Resizes a bitmap with an alpha channel (transparency) without the artifacts introduced * by
scaleInto()
. * * @param bmpSrc Source Bitmap * @param nWidth New Width * @param nHeight New Height * @param nFilterType Filter quality to use. Can beBitmap.FILTER_LANCZOS
, *Bitmap.FILTER_BILINEAR
or *Bitmap.FILTER_BOX
. * @param nAspectRatio Specifies how the picture is resized. Can be *Bitmap.SCALE_TO_FIT
, *Bitmap.SCALE_TO_FILL
or *Bitmap.SCALE_STRETCH
. * @return The resized Bitmap in a new object. */ public static Bitmap ResizeTransparentBitmap(Bitmap bmpSrc, int nWidth, int nHeight, int nFilterType, int nAspectRatio) { if(bmpsrc== null) return null; //Get the original dimensions of the bitmap int nOriginWidth = bmpSrc.getWidth(); int nOriginHeight = bmpSrc.getHeight(); if(nWidth == nOriginWidth && nHeight == nOriginHeight) return bmpSrc; //Prepare a drawing bitmap and graphic object Bitmap bmpOrigin = new Bitmap(nOriginWidth, nOriginHeight); Graphics graph = Graphics.create(bmpOrigin); //Create a line of transparent pixels for later use int[] aEmptyLine = new int[nWidth]; for(int x = 0; x < nWidth; x++) aEmptyLine[x] = 0x00000000; //Create two scaled bitmaps Bitmap[] bmpScaled = new Bitmap[2]; for(int i = 0; i < 2; i++) { //Draw the bitmap on a white background first, then on a black background graph.setColor((i == 0) ? Color.WHITE : Color.BLACK); graph.fillRect(0, 0, nOriginWidth, nOriginHeight); graph.drawBitmap(0, 0, nOriginWidth, nOriginHeight, bmpSrc, 0, 0); //Create a new bitmap with the desired size bmpScaled[i] = new Bitmap(nWidth, nHeight); if(nAspectRatio == Bitmap.SCALE_TO_FIT) { //Set the alpha channel of all pixels to 0 to ensure transparency is //applied around the picture, if needed by the transformation for(int y = 0; y < nHeight; y++) bmpScaled[i].setARGB(aEmptyLine, 0, nWidth, 0, y, nWidth, 1); } //Scale the bitmap bmpOrigin.scaleInto(bmpScaled[i], nFilterType, nAspectRatio); } //Prepare objects for final iteration Bitmap bmpFinal = bmpScaled[0]; int[][] aPixelLine = new int[2][nWidth]; //Iterate every line of the two scaled bitmaps for(int y = 0; y < nHeight; y++) { bmpScaled[0].getARGB(aPixelLine[0], 0, nWidth, 0, y, nWidth, 1); bmpScaled[1].getARGB(aPixelLine[1], 0, nWidth, 0, y, nWidth, 1); //Check every pixel one by one for(int x = 0; x < nWidth; x++) { //If the pixel was untouched (alpha channel still at 0), keep it transparent if(((aPixelLine[0][x] >> 24) & 0xff) == 0) aPixelLine[0][x] = 0x00000000; else { //Compute the alpha value based on the difference of intensity //in the red channel int nAlpha = ((aPixelLine[1][x] >> 16) & 0xff) - ((aPixelLine[0][x] >> 16) & 0xff) + 255; if(nAlpha == 0) aPixelLine[0][x] = 0x00000000; //Completely transparent else if(nAlpha >= 255) aPixelLine[0][x] |= 0xff000000; //Completely opaque else { //Compute the value of the each channel one by one int nRed = ((aPixelLine[0][x] >> 16 ) & 0xff); int nGreen = ((aPixelLine[0][x] >> 8 ) & 0xff); int nBlue = (aPixelLine[0][x] & 0xff); nRed = (int)(255 + (255.0 * ((double)(nRed-255)/(double)nAlpha))); nGreen = (int)(255 + (255.0 * ((double)(nGreen-255)/(double)nAlpha))); nBlue = (int)(255 + (255.0 * ((double)(nBlue-255)/(double)nAlpha))); if(nRed < 0) nRed = 0; if(nGreen < 0) nGreen = 0; if(nBlue < 0) nBlue = 0; aPixelLine[0][x] = nBlue | (nGreen<<8) | (nRed<<16) | (nAlpha<<24); } } } //Change the pixels of this line to their final value bmpFinal.setARGB(aPixelLine[0], 0, nWidth, 0, y, nWidth, 1); } return bmpFinal; }}Here's an example of how to call the function:
Bitmap bmp = Bitmap.getBitmapResource("picture.png");Bitmap bmpResized = GPATools.ResizeTransparentBitmap(bmp, 30, 60, Bitmap.FILTER_LANCZOS, Bitmap.SCALE_TO_FIT);
Here is the result:
Let me know if you find this useful, all comments are appreciated .
Cyril
Thank you . I made a minor adjustment to the code (to check if the size of the original image is identical to the desired size). For some reason, I can't edit my original post that I posted the latest version on my blog. Links: http://www.patchou.com/2010/10/resizing-transparent-bitmaps-with-the-blackberry-jde/ .
Moderator note: I've updated the code in the original post to match the latest version.
-
My printer is not printing. It say problem connecting to the server, connection error server and printer offline. I have a HP photosmart printer and windows 7.
You have McAfee? McAfee has been updated at the same time as the last batch of updates from Windows 7 and it seems to be the cause of this problem for most, if not all, users.
See the communication from this "criticism" - McAfee
You should make the fix McAfee, if necessary. There are corresponding communications for their enterprise products.
I got McAfee, but the connection has started working again on its own so I thought I was clear of problems. However, when I checked it says he was doing routine checks the updates in vain when I told it to do a manually. So stick with McAfee you don't follow their procedure of fix would have upgraded my PC at risk by not updated and, like other McAfee ads have since explained, the application did not refer to its database of threats correctly [and this could explain part of the variability of the symptoms of failure but all involved loss of internet connection]. Actually, I removed McAfee then installed Microsoft Security Essentials rather & my answer IE is faster I knew it [even though I had the Add-ons McAfee disabled for centuries].
I had to run the removal of McAfee Development tool a few times before and it caused a problem with the license if the PC was not connected to the internet during the abduction. Due cat of McAfee support reset their files in order to allow the relocation-reactivation. Here is their link cat - McAfee - media contains the link to the cat
-
Masking of buttons during printing and setting of field to compensate for
Hello
I had a request for a form in which add a line button and the button Delete row are hidden when printing to make it a bit prettier. I was able to hide the buttons for printing, but the table that belongs to delete still looks weird and there is more space I would like to have between the tables once the box add a line does not appear. Is there a way to make things prettier? I have attached the demo of the shape, that I'm working on a sample of what it looks like right now when I print.
I saw a post on the borders of text field masking during printing and it seemed that I might need to do something similar, but I'm not sure what.
Thank you!
Image: https://acrobat.com/#d=HvU8V27oA * Ki6HzoI2Ec0w
Shape: https://acrobat.com/#d=1K * EfksEnAH0azzxTrx31w
The color of the cell to white should work, because you are repeating an instance of the row that the white background must reproduce as well.
You can also script with: fieldName.border.fill.color.value = "255,255,255";
-
My Macbook Pro running El Capitan 10.11.6 shows my printer HP (envy 110) as offline after a print or scan session. I have to restart the printer each time I use it, and then the Mac it falls again after printing or scanning session.
I loaded the latest drivers on the Apple site without success. The two are on a wireless home network.
Help!
-
I have sporadic outages during anywhere from 1 to 5 minutes. Everything started after I bought a new modem. TWC said, of course, that the modem is fine. Any ideas?
TWC does not yet support some routers, I hope they will be soon.
-
I have a hp D2600 printer and it not even not print test page,
I have a hp D2600 printer and it not even not print test page,
(2) when I was using the printer, ink color came out but not the ink emptyHello, IndranilDattagupta,
Do you receive messages when this happens?
What version of Windows are you using?
It is possible if you have not used the printer cartridges can be dried. Clean the printer and cartridges.
http://h10025.www1.HP.com/ewfrf/wc/document?DocName=bpd06100&cc=us&LC=en&product=59862
Use this troubleshooting page
-
I have HP PSC 1610 printer, and until recently, it worked fine. Now it prints very slowly and I'm unable to use the internet, although it is printer. What could be the problem and how can I fix it?
Hi Dee,
Please contact Technical Support for assistance with your printer HP: http://www8.hp.com/us/en/support-drivers.html.
Good luck!
Kosh
-
I have a new kodak printer which is a 7520 type but I can't use or repair
I have a new kodak printer which is a 7520 type but I'm unable to fix it, the suffix that has been selected in terms of network installation!
I'm sorry this is not clear, but I am disabled and bought the printer from QVC. He has worked with an old computer so I'm upset, but
I didn't know that it was impossible to correct configuration of the printer with a wrong code!
See you soon
Gordon * address email is removed from the privacy *
Hello
I'm sorry, I couldn't seem to find this exact model for a Kodak printer number. Please visit the Kodak Web page and download the driver for this printer. http://support.en.kodak.com/app/answers/list/c/890/selected/true
Once you have installed the new drivers, the printer should work just fine on the new computer. When you download the drivers, you will want to pay special attention to two things. First of all, making sure that you have found your exact printer model, and second, that you know which version of Windows you have on your computer.
I hope this helps. Just reply to the results.
-
I have a Canon ip6600D printer which only becomes an error 6500, cleared error now no printing
I have a Canon IP6600D printer and today it started acting.
First of all, I found it turned off earlier today and I had problem trying to lights up but finally did and received an error message indicating an invalid legacy was plugged in to the printer - remove the device. Nothing new has been connected to the legacy just usb that connects to my laptop.
After about an hour of playing with the printer, unplug the unit, unplug the USB cable, turn on / off power with and without the USB cable, the message changed to an error message 6500.
I played with it for about an hour, trying several things, on and outside, opening the lid with the inks and pressing the power button, etc... saw a message about a reset, which doesn't seem to work at first, but I tried once more to the power of the printer and everything seemed fine. He showed several inks were out, so I replaced them with new cartridges and now no impression at all!
I tried to send a word document that is black and white, went by his movements, seemed it was printing, but the page is empty. I tried to send a picture of the PC - again took time to print the photo, but the page is empty. I tried to use an SD card to print a photo and even once - took time and sounded like it was printing, but the page is empty.
I tried to clean the heads, print an alignment page, etc..., all the basic things to correct the wrong impression but still nothing but perfect blank pages - no ink at all.
Any suggestions?
Hi Stevenoh,
It is recommended that you contact the direct technical assistance. There is NO charge for this call. Information in real-time to a technical assistance call live would be very beneficial in this case.
Please call 1-866-261-9362, Monday - Friday 10:00-10: 00 ET (excluding holidays). A Canon technical support representative will be able to solve this problem more quickly.
-
I have a 9800 that prints x 2345
I have a 9800 that prints x 2345. What should you do?
Hello
I ask you to try the following:
http://support.HP.com/us-en/document/c03286146
If the problem still exists, then get back to us with the following information:
Printer model no HP:
Type of connectivity:
OS version:
Although I am an employee of HP, I speak for myself and not for HP.
"Say thank you by clicking on the"
Congratulations! Blows upward"which is located on the right.
Make it easier for others to find solutions, marking my answer to "Accept as Solution" if it solves your problemKind regards
Ray
-
OPMSTM080.exe have insattted a new printer, I get this error message evry times print something
Hello District Commissioner,
Thank you for your message. What is the make and model of your printer? Go to the website of the manufacturer of your printer and download/install the latest drivers for your computer. Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
I have a problem with printing on Windows Vista.
I have HP desktop with Microsoft Vista operating system. The printer I have is HP Laser Jet P1006. 1 months ago about the computer wouldn't print or download an attachment to an email. I uninstalled the printer and re-installed, but the problem persists.
What happened, it was this. With an email (from gmail.com or hotmail.com) once I clicked 'print', the normal menu for printing that should go up. Then I clicked 'print', the monitor would show a display of the menu "save under" and showed the formulations of XPS as 1 line and XPS Documents like the following line. When I chose the option search for a printer and typed in the name of the HP Laser Jet P1006 printer and click "select", the system responded to that file name is not valid.
Please explain what was wrong and how to fix these problems with printing and download of attached file.
Hello
Please contact the Microsoft Community.
Have you tried to print using a different printer?
I would have you try the steps of troubleshooting in these articles.
Note: I would first try to 'doctor HP Print '.
If this problem is limited to the HP printer, so I'd like you to contact the respective support]-
http://h10025.www1.HP.com/ewfrf/wc/product?cc=us&LC=en&DLC=en&product=3435684
We know if you need help.
-
Have you installed the printer & software driver... will not recognize the installation of the scanner or Nikon camera to download photos... What can I do?
The duplicate thread information:
Cannot connect Epson scanner/Nikon camera to printer!
Hi Carolyn has Culp,
Thanks for asking this question to Microsoft Community!
I understand that your scanner and Nikon camera is not getting recognized in windows vista.He would be grateful if you could answer these questions. This will help us to a better way to get a resolution of the issue.1. have you made changes on the computer before this problem?
2. What is the brand and model of the scanner?
3. are you an error message or error code?
4. is that your other USB devices work?I would suggest trying the following methods and check if it helps.Method 1:
Try connecting to another USB port and check if the camera is detected or try to plug the camera on another computer.Method 2:Hardware devices do not work or are not detected in Windows: http://support.microsoft.com/mats/hardware_device_problems/en-usMethod 3:Remove and reinstall all USB controllers.To remove and reinstall all USB controllers, follow these steps:
(a) click Start, run, type sysdm.cpl in the Open box, and then click OK.
(b) click on the Hardware tab.
(c) click the Device Manager button.
(d) expand Bus USB controllers.
(e) right click on each device under the Bus USB controllers node and then click on uninstall to remove them one at a time.
(f) restart the computer and reinstall the USB controllers.
(g) connect the removable USB storage device and perform a test to ensure that the problem is solved.
Method 4:To update the chipset drivers and check if it helps.Update a hardware driver that is not working properly: http://windows.microsoft.com/en-us/windows-vista/Update-a-driver-for-hardware-that-isn ' t-work properly
Reference:The problems of scanning: http://windows.microsoft.com/is-IS/windows-vista/Troubleshoot-scanning-problemsIt will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.
Maybe you are looking for
-
Apple Watch can play music through its built-in speaker?
I do a decent amount of race and the latter I ran with my phone and just play music on the built-in speaker. It's nice to not have to helmet bouncing around and it feels safer because you can hear the traffic and so on. When first announced, I was un
-
In the previous version of Firefox, I could click on an arrow to the left of the browser box and find the exact page, that I wanted to resume for up to about 10 pages back. I really miss this option and want it to be again. It is inserted in the beta
-
FCP7 rejected my serial number (alone) as an "upgrade". Help!
I migrated MacPro FCP7 2008 to this new iMac, but it rejects my serial number (alone) as an "upgrade". I had FCP for years - don't even know where is the 'original '. I've been downloading since 2005. I've never understood that I needed to keep my hi
-
Connect the USB cable on my 5510e-all-in-one wireless HP Photosmart printer
Need me 15 minutes to print a page using my network wireless at home. I decided to connect the printer with a USB cable, but the installation of HP - written installation guide - instructions only show the USB wireless method. I already bought a SPEA
-
BlackBerry not available passport for this device
Hello When I 10 Viber or Amazon's Kindle in the world of BB I see the message "Not available for this device" and I can't download them. As far as I know, these applications must run on the Passport. Then why I see this message? Thank youPeter