GrabPixel() not working - ImageObserver.ALLBITS- HELZ PLZ

I capturing an image form a camera (that works). Now I want to process the image so I call grabPixels but i get a problem. The bug occurs in the following piece of code.
PixelGrabber pgObj = new PixelGrabber(
          rawImg,0,0,imgCols,imgRows,
          oneDPix,0,imgCols);
try{                              
if(pgObj.grabPixels() && ((pgObj.getStatus() & ImageObserver.ALLBITS != 0)) {   .. .etc etc
So the problem is that ((pgObj.getStatus() & ImageObserver.ALLBITS != 0)) returns false. Same happens when I use ImageObserver.ERROR, ABORT and PROPERTIES.
However it returns true when i use ImageObserver.FRAMEBITS, HEIGHT, SOMEBITS and WIDTH but the image i get is extremelly messed up (like disturbed by vertical black lines and u can hardly recognize a thing).
Does anyone have an idea about what the cause might be?
I would really appreciate some help!

I capturing an image form a camera (that works). Now I want to process the image so I call grabPixels but i get a problem. The bug occurs in the following piece of code.
PixelGrabber pgObj = new PixelGrabber(
          rawImg,0,0,imgCols,imgRows,
          oneDPix,0,imgCols);
try{                              
if(pgObj.grabPixels() && ((pgObj.getStatus() & ImageObserver.ALLBITS != 0)) {   .. .etc etc
So the problem is that ((pgObj.getStatus() & ImageObserver.ALLBITS != 0)) returns false. Same happens when I use ImageObserver.ERROR, ABORT and PROPERTIES.
However it returns true when i use ImageObserver.FRAMEBITS, HEIGHT, SOMEBITS and WIDTH but the image i get is extremelly messed up (like disturbed by vertical black lines and u can hardly recognize a thing).
Does anyone have an idea about what the cause might be?
I would really appreciate some help!

Similar Messages

  • HT1491 I'm trying to recover it .....but it's not working ....plz help me what shoud i do now?

    I'm trying to recover it .....but it's not working ....plz help me what shoud i do now?

    What error are you getting?

  • Hello dear repersented. i have a iphone 3g seriel no.85945sy43nr using at saudi arbia bcz this phone is coming from Uk thats y the sim is not working at here . so plz give me sulution of this problum.

    hello dear repersented. i have a iphone 3g seriel no.85945sy43nr using at saudi arbia bcz this phone is coming from Uk thats y the sim is not working at here . so plz give me sulution of this problum.

    um..pretty simple solution. when you bought this iphone its obviously still linked to the old sim which is probably a UK carrier. you need to contact whoever you bought it from and get them to pay the fee to use this phone on a saudi arabian sim.

  • FloodFill Not working with transparent BirmapData, Plz. help...

    Hello friends,
    I hav a movie [instance name : myObject] clip with some pattern design in it. Now i hav converted it to Bitmap to use FloodFill method on Runtime.
    code in which The floodFill not working:
    Code:
    var bitmapData:BitmapData = new BitmapData(350, 450, true, 0x00FF0000);
    bitmapData.draw(myObject);
    var con:Bitmap = new Bitmap(bitmapData);
    con.smoothing = true;//turn on smoothing
    addChild(con);
    con.x = myObject.x;
    con.y = myObject.y;
    // and called following floodFill function on a button click event
    bitmapData.floodFill(myObject.mouseX, myObject.mouseY,   0x00FF0000);
    code in which The floodFill working
    Code:
    var bitmapData:BitmapData = new BitmapData(350, 450, false, 0x00000000);
    //Next lines as above
    i hav set the transparency to false, it Works. But i hav a object in background that i hav to keep visible to user.

    Hey miah-hamid,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    Do you have a BlackBerry data plan with your network service provider?  I would suggest connecting to a Wi-Fi network and then wait for the BBM Setup screen to finish.
    Let me know if the issue still persists after 15 minutes.
    Cheers.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • App Store Is Not Working ??? plz help

    Hey guys I updated my iPod (4th generation) to iOS6.1.2 about 2 weeks ago but suddenly yesterday my App Store stopped working. When I open it it's all blank in features,search,etc?? Plz help how can I make my App Store work ??

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Go to Settings>iTunes and App Stores and sign out and sign back in
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          

  • Trying to download itunes and its not working, can someone help plz??

    I am trying to download itunes to my computer, and everything seemed to be loading ok, but then when I get to the terms&conditions and I try to hit agree, nothing happens, it's as if I can not even click it, does anyone have any idea on what i can do? Thanks
    hewlet packard   Windows XP  

    hi April!
    just doublechecking something. is the download hanging at the initial phase of proceedings? or is this happening after the installation has actually pretty much completed?
    if it's at the later stage of proceedings, are you getting a sort of "brief flash of a license screen? or is something else a little different happening?
    love, b

  • Reverse SSH not working for Cisco 3750.Plz help.

    Hi,
    I have configured the reverse ssh mentioned on the cisco document:http://www.cisco.com/en/US/docs/ios/12_3t/12_3t11/feature/guide/gt_rssh.html#wp1051457.
    But now I am running into the issue that When I  issue command ssh -l alex:rotary1 192.38.6.8 from the cli of the router  I’m presented with a password prompt.
    I  enter my password and get connected. However at this point when I type, for  example, the atdt command I don’t see any output  displayed.
    So I  tried typing command atdt <tel no.> and at the same time ran a debug modem  on a separate session. It was from the separate session I could see the call  been made to the remote device and connected successfully. However almost  immediately the modem debug displays message 0236596: Dec  7 2010  12:18:18.236 GMT: TTY69: cleanup pending. Delaying DTR. At no point do I see  output displayed on the session where I connected to the  modem.
    When using telnet to  connect, i.e using the same modem and the same remote device, we have had no  problems it is just with SSH.
    Any suggestion on this will be highly appriciated.
    Thanks
    Alex.

    Philip,
    I first thank you for coming forward to help me on this.
    I use the 30DM(Digital Modem) Card on the router. I have configured on of this modem  on the PRI card(1/18) to make outbound calls. We use this dailup to cyclades the devices located on our remote office. Hence we loose the main internet connectivity we use this option as a backup.
    Show ver:Cisco IOS Software, 3700 Software (C3725-ADVSECURITYK9-M), Version 12.3(11)T5
    ine con 0
    transport output none
    line 72 92
    modem InOut
    modem autoconfigure type mica
    transport input all
    transport output all
    autoselect during-login
    autoselect ppp
    line 93
    absolute-timeout 60
    modem InOut
    modem autoconfigure type mica
    rotary 1
    no exec
    transport input ssh
    transport output none
    line aux 0
    no exec
    transport output none
    line vty 0 4
    logging synchronous
    transport input ssh
    transport output ssh
    Please let me know is this a bug or anything else. AS the same setup works fine when I use TElnet rather than ssh.
    Thanks in advance.
    REgards
    Alex.

  • IOS 6 not working well! Help plz!

    OK so I updated my iPod touch 4 to IOS 6 wirelessly... Every thing turned out ok just the passbook app won't go into the App Store to find apps..... And the Game Center won't even load I tap it it will open but it doesn't say loading or anything after a minute it will freeze and go to the home screen, now with that being said twitter keeps freezing on me now Facebook is fine but twitter is being dumb... Any suggestions to help me plz that would be great!!:)

    I have the same problem. I didn't get this feature with the download.

  • Desk top manager will not work on my computer plz help

    I've downloaded the software and installed it and when i open it up the program wont work I found a troubleshoot on the forums and tryed it and it didnt work for me. short of calling rogers i dont know what to do.Can someone help me out I am running windows XP
    Solved!
    Go to Solution.

    i found a post that finally worked for me and was able to get all the .netframes GONE and got the DM6 installed followed this post
      http://supportforums.blackberry.com/t5/Desktop-Software-for-PC/HELP-Rim-Desktop-exe-No-debugger-foun...

  • Sap xi SCENARIO source directory working ,but not working target directory

    sap xi SCENARIO source directory working ,but not working target directory..
    plz help me

    Hi,
    Be more specific on the problem you are facing so that the ppl here can help..
    looks like your are trying to file to file scenario and the file is not generating at the target folder ...
    then check the communication logs of the receiver adapter using RWB->CC logs..
    post the error you have received there..
    HTH
    Rajesh

  • Increment of + 1 not working properly for KUNNR

    Hi Guys,
    I might be asking a very basic question,but tried several ways not found a solution.
    Lets say I have a Customer No KUNNR with value '0000000111'.
    I am doing a increment for this KUNNR like + 1.
    When I am adding +1 to KUNNR with value '0000000111' , the result is becoming '112'.
    But I want the result as '0000000112'.
    How to achieve this.
    I used counter type as kunnr.
    Assigned this Counter to '0000000001'.
    But still not working.Could any one plz suggest.
    Waiting for your reply.

    Haven't heard or came across any requirement where you add something to KUNNR.
    If you are populating a new KUNNR, use number ranges.
    But just for your info, if you want to increment, you need to apply conversion exit 'CONVEXITALPHAINPUT/OUTPUT routines and store in KUNNR variable.
    BTW appreciate if you can highlight your requirement of adding 1 to KUNNR.
    Regards,
    Santosh

  • HT2534 My Apple ID is not working.....plz help

    My Apple ID is not working I made it yesterday using my PC .......plz help.......

    Try sign in to iTunes and App Store
    Settings>iTunes and App Store>Apple ID

  • My Apple TV is not working. On tv display, I'm getting unsupported signal. Check your device output. Can anyone help plz.

    My Apple TV is not working. On tv display, I'm getting a message 'unsupported signal. Check your device output. ' Can anyone help plz.

    connect it to a tv which support full hd and go into the settings and lower the resolution as much as possible and then connect it with your tv once more

  • My iphone's setting menu is not working.plz help me

    When i enter into the setting tab all the menu is not working i cant eneter to any item there or even i cant scroll down.plz help me

    Try hard resetting the phone.
    Hold down the sleep/wake button and the home button at the same time until the apple appears and let the phone reset itself.
    Let me know if you've already tried this or if it works.

  • My macbook cam is not working after i reinstalled it plz help?

    i just reinstalled my macbook os x 10.8.2  but i found out that my camera is disable not working with FaceTime and messenger  plz kindly assist me on how to make my cam start working again please someone should help me ...........

    Are you sure you are running 10.8.2 or is it 10.8.5. There was an issue with 10.8.5 and the recent supplemental update should fix that camera problem.
    If it is 10.8.2, I'm not sure what is wrong. Might try an SMC or NVRAM reset.

Maybe you are looking for

  • Blank Email Screen after 4.3.2 upgrade

    After upgrading my iPhone 4 to version 4.3.2, mail opens with a blank screen for a couple of seconds then goes away. Any idea why? Resetting/rebooting is without effect and it works fine on my iPad. Joseph

  • How to correct old sales order with wrong Profit centre for which settmnt..

    Hi All, I have an issue as follows Sales order has items 10 and 20. From period Jan 2011 to May 2011, Item 10 had wrong Profit Centre assignmnet as 400004. Material also had Profit centre as 400004. Result Analysis and Settlemet to COPA has been done

  • IPhone 3GS calendar

    Hi Is there a way of changing the calendar so that Sunday is the first day of the week? If not, is there a calendar app which can do this and is fully syncable with outlook? Thanks for your help

  • Basic WLAN query

    This is my second week with the N95 and so far so good. I have posted one query on this forum and had a fantastic response. I am interested in being able to connect the phone to my home PC to transfer files use the internet access and possibly stream

  • Drag-drop stack bar in JGraph

    Hi, I have a stack graph created out of the database values. My requirement is to drag the graph bar and reposition it (the updated values should be saved in the DB). Could any one please help me in doing this. Please advice me on any logic to make t