Gif image shows only in black and white

Hello...
I'm trying to convert normal image to PlanarImage but the PlanarImage will show only black & white image in the applet. My guess is that it has something to do with bands but I can't figure out how to solve the problem.
Here is the code what I'm trying to use in applet's init method
public void init(){
     Image my_gif;
     URL base;
     MediaTracker mt;
     mt = new MediaTracker(this);
     try {       
          base = getCodeBase();
     catch (Exception e) {}
     my_gif = getImage(base,"image.gif");
     mt.addImage(my_gif,1);
     try {
     mt.waitForAll();
     catch (InterruptedException e) {}
     int imageHeight = my_gif.getHeight(this);
     int imageWidth = my_gif.getWidth(this);
     int numBands = 3;
     int len = imageHeight * imageWidth * numBands;
     byte[] imageData = null;
     PixelGrabber pixeli = new PixelGrabber(my_gif, 0, 0, imageWidth, imageHeight,false);
     SeekableStream ss = null;
     try {             
          pixeli.grabPixels();
          imageData = (byte[])pixeli.getPixels();
     } catch (InterruptedException e2) {
          e2.printStackTrace();
     ColorModel cm = pixeli.getColorModel();
     SampleModel sm = cm.createCompatibleSampleModel(imageWidth,imageHeight);
     TiledImage tiledImage = new TiledImage(new Point(),sm,imageWidth,imageHeight);
     DataBufferByte dbb = new DataBufferByte(imageData,len);
     Raster raster = RasterFactory.createWritableRaster(sm,dbb,new Point());
     tiledImage.setData(raster);
     PlanarImage image = (PlanarImage)tiledImage;

Go to Settings>General>Accessibility and turn off White on Black.

Similar Messages

  • Viewer showing only saturated black and white

    My Aperture is gone into a funk -- The viewer shows only a totally saturated black and white image -- each pixel is either all white or all black (browser and thumbnails are normal). This is for all images in all projects. I have rebooted the machine and restarted Aperture to no avail. I cant find a preference item that seems to control this. Ideas?
    Here is info on my system hardware:
    Model Name: Mac Pro
    Model Identifier: MacPro1,1
    Processor Name: Dual-Core Intel Xeon
    Processor Speed: 3 GHz
    Number Of Processors: 2
    Total Number Of Cores: 4
    L2 Cache (per processor): 4 MB
    Memory: 4 GB

    Partially answering my own question (perhaps this will help others). Looking more closely at the viewer screen, I saw the words "proofing profile". So I found that the proofing profile was turned on in the view menu, and it was set to "black and white". (This must have inadvertently been set when I tried to convert an image in monochrome for printing.) Turning off the proofing profile in the view menu returned me to the original images.
    However, I still do not understand why the proofing profile images were totally saturated. Is "black and white" different from monochrome? Where are the settings to change the saturation on the proofing profile?

  • IChat video only in black and white?

    When I use iChat, the video output is only in black and white. Does anyone know how I can get it to return to full color?

    Hi,
    Click on your own Video icon so you have a Preview of your Video
    GO to the Video Menu and Select Video Effects.
    In there whichever "Page" it is On select the middle one.
    iChat will remember any Effect or, on Intels, any Backdrop you set if it is still active on ending A Video chat.
    10:26 PM Monday; February 15, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • Random Visio Stencils Displaying Only as Black and White Lines (No colour)

    I'm experiencing a strange problem where some Visio stencils/shapes are displaying only as black and white outlines (i.e. - without any colour). I'm using Visio 2010 on a Samsung NC900 laptop with 8gb RAM, 1.7Ghz i7 CPU on Windows 7.
    The symptoms that I'm experiencing are:
    The majority of stencils display fine in the left hand stencil window but some do not.
    Some stencils display the majority of shapes as black and white outlines but some in full colour.
    Some shapes display fine within the stencil window but change to black and white outline when I drag them to the drawing (These are typically ones that I open independently of the drawing - i.e. - by double clicking rather than via "Search Shapes").
    I've done a search on the web for this problem and have found some similar issues but none of the suggested fixes work.
    One of the stencils that I experience this issue with is the Exchange 2013 Microsoft stencil.
    I've updated Java and Silverlight (stab in the dark there) and my graphics driver is up to date.
    It's driving me mad now so any help would be appreciated!
    Nikos101

    Lori
    The remove profile worked like a charm with the greyscale images. Maybe a slight loss of contrast, but I'll hold the tiff scan in any case. I-photo would not import the image again (already in the library) but I can remove the profile on the image in my folder outside i-photo. And I think I can prevent it at import now.
    Thanks! I doubt I would ever have figured that one out.
    Marilyn A

  • Hello - When I steam Netflix from my iPad, I only receive black and white on the TV.  Any ideas why?   Thank you, jackiedd

    Hello - When I stream Netflix from my Ipad, I only received black and white TV reception??  Any thoughts why?  Thank you, Jackiedd

    Nope. It will reset all settings. For fix errors.
    Or you can try Logging out and Restart your iPad and Sign in again.

  • Hp photosmart 7150 only prints black and white with mac

    My hp photosmart 7150 only prints black and white with mac.  I have tried installing and uninstalling, installing drivers, but no change.

    Hi,
    You did not mentioned your Mac OS X version, however I assume you have one of the latest versions.
    The Photosmart 7150 is not supported on Mac OS X v10.6, v10.7, v10.8 or v10.9 and therefore it is more than likely that there are no drivers for your OS and the used Generic Driver only provide B&W printing.
    Although it is not officially supported you may check 3rd party solutions such as the 3rd party HP-IJS print drivers which list your printer as supported.
    Be sure to install any of the 3 required downloads, then click the plus sign under Printers & Scanners, click the Use drop down and click on Select Printer Software.
    Search for your printer model form the list and select the driver, I believe that may work:
    http://www.linuxfoundation.org/collaborate/workgroups/openprinting/macosx/hpijs
    Although it only list up to 10.8 (Mountain Lion) it should also work on Mavericks from my experience.
    Hope that may help,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Why is some of my iTunes artwork showing up as black and white?

    I have already posted this issue here (Reddit) but I guess I'll make a post here too.
    I'm having a major problem with iTunes on Windows 7 (64 bit), where my iTunes artwork is showing up as black and white, and videos play with a majorly distorted output. (http://imgur.com/TQXA9OH)
    No idea how to fix this, but if I copy paste artwork in from somewhere else, it works fine, however if I download album artowrk using iTunes' built in feature that automatically does it, 75% of the time the album artwork turns out black and white. What's even stranger is that on my iPhone the artwork is fine, but on my iPod Classic it shows up as black and white too. Videos play fine on both devices, but are still distorted in iTunes.
    Can anyone help me fix this? I'm running the newest version of iTunes.

    In your sync boxes for TV shows have you checked the box for remove after viewing and/or don't sync after viewing?

  • URGENT - how do I convert and image from colour to black and white?

    Hi,
    I'm new to Java, and I really need some code to convert an image from colour to black and white! I would really appreciate any help, but since I don't know much about Java I would prefer some code or links to websites with the code.
    Thanks!!!

    http://forum.java.sun.com/thread.jsp?forum=5&thread=368759

  • Mail pdf attachment is showing/printing in black and white only

    PDF attachments with color in content are now only appearing and printing in black and white.  Is this a setting somewhere?

    I have the same problem here.  A PDF file created in Illustrator and sent to my client via email. I can see the color on my iPhone and on an iPad but under Lion (10.8.3) it displays in black and white. I was going to look at prior versions of the OSX and see that you are running 10.6? and are getting the same thing.  I have received other PDF files with color and no problem.  I am wondering if it an Illustrator and OSX problem.  More to come.

  • TV shows up as black and white when I hook Ipod to TV

    I have the dock and the remote, the cables, etc.... Yet when I hook up to the T.V. to watch downloaded show 1. I either get the show in Black and White
    or 2. I get audio only. What's the solution?

    if you are not using cables specifically designed for the iPod make sure you switch the red and the yellow. also make sure the TV out setting is on in your video settings on your iPod.
    if you are using a cable specifically for the iPod and it doesn't work after trying the above the cable maybe defective.

  • 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.

  • Only printing black and white

    I'm using a macbook 13" with an airport express and an HP deskjet 4100. I can print wirelessly just fine, but I can only print in black and white. Any ideas how to remedy this situation?

    Hello MariPan,
    Welcome to the HP Forums.
    Have you attempted to do a colour copy?  If the copy is black and white as well, we then know that it is strictly an issue with the printer and not a setting on the computer.
    Please respond with which Operating System you are running just in case it is an issue in the computer.
    Which Windows Operating System am I running?
    Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    Write me back when you have time and I will be happy to help.
    Cheers,  
    Click the “Kudos Thumbs Up" at the bottom of this post to say “Thanks” for helping!
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    W a t e r b o y 71
    I work on behalf of HP

  • Only prints black and white

    my sisters brand new Envy 5660 printer only prints in black and white.
    i've been all over the net and my iMac trying to figure out what the problem, but to no avail.
    i've looked for the paper type/ quality etc settings that were soloutions to other problems but those options are not on my computer.  i've gone through every menu both on the printer and in multiple of my programs in an effort to try and change some setting that is telling this printer not to print colour.  i have opened the printer settings and my computer settings and nothing has given me the option to make it print either in colour or black and white.
    what the heck?
    the closest solution i could find was that someone uninstalled and reinstalled the printer and it helped for a time, until she had to repeat the same thing.  that can not be a feasible solution, and my first guess would be that there is an issue with the printer.
    however, if there is something i'm overlooking, can you please let me know?  i'm annoyed at the moment, and its not even my printer...
    This question was solved.
    View Solution.

    well crap, eh?
    i appreciate you trying to help...my sister was the one who picked up the printer and tried to pair it with my computer but i guess we're out of luck.  i'll try another inkjet driver, but i won't get my hopes up.
    sucks, since my computer isn't really THAT old (2009) but i guess that's ancient in the computer world.
    thanks again.  

  • Downloaded images to IPAD become black and white

    After updating to the lates version of IOS downloading images from the computer many turned out black and white. Never had this problem before.

    setings>general>accesibility

  • Hp psc 950 printer only prints black and white, no driver for Canon lpb 5000

    Hi everyone,
    I am trying to install my two printers on mac book pro.
    Problem 1.
    My HP psc 950 printer is only printing in a bad black and white quality - no color at all?? - any idea where I can download a printerdriver that is actually up to date? The one mac book has preinstalled seems not to be the right one?
    Problem 2.
    My may can´t find a driver for my other printer Canon LPB 5000 at all. I´ve already downloaded the canon drivers for Mac book  - so I see a long list of Canon drivers but the LPB 5000 is not there and I don´t find any download of it in the web. I work with os x 10.7 and there is just an old mac driver for 10.6 to be found on the Canon website. I downloaded it but still does not work.
    Hope someone can help. Both printers used to work fine on Windows but I am changing to Mac now and need to get them work.
    Thanks,
    K.

    Canon LPB5000 driver for 10.7 is at http://support-au.canon.com.au/P/search?model=LASER+SHOT+LBP5000&menu=download&f ilter=0&tagname=g_os&g_os=Mac%20OS%20X%20v10%2E7
    There is also this note: When using with OS X Lion, install this printer driver, and then register the printer. For information on how to register ... support-au.canon.com.au/contents/AU/EN/0100359005.html

Maybe you are looking for

  • HOw can I re activate the Yahoo toolbar in order to utilize the identity safe feature which contains all of my passwords?

    The Yahoo toolbar I previously utilized was not able to be converted once I downloaded the latest Firefox version. I need the identity safe feature from the Yahoo toolbar in order to obtain many of my passwords. How can I reactivate the yahoo toolbar

  • Copy and Paste from an excel spreadsheet to a JTable

    Hi, does someone know how to copy and paste data from an excel spreadsheet to a JTable. It seems like copy and paste do not fuction from an to a JTable. Thanks, Fred.

  • Charactersvisible in preview but not printed from Reader

    Hi, System: Mini Mac, Canon MX870, Adobe Reader 11 (up to date) When downloading pdf from our uni web site (exam candidate lists etc) the document prints faithfully from OS Preview but printing directly from Reader causes character loss (such letters

  • IPhone 4 Bumper Marks on Phone?

    I have marks on the aluminium rim of my iPhone and I believe it is due to the bumper because, from day one, I have the bumper on and I've just taken it off and seen a lot of precise, small marks on the iPhone 4. I was wondering if anyone else had exp

  • Routing - Field Selection

    Dear All, I would like to know is it possible to make the field PLPOD-INFNR as a required input field for the control key PP02 for a particular plant? I checked in OP5B & OP5D, but not quite sure how to link the 2, as plant is at header level & info-