PixelGrabber is too slow and has memory problems!

Have any of you figured out a way to get pixels from an Image
WITHOUT using PixelGrabber??
PixelGrabber is really slow -- is a memory hog -- and has other problems
that cause me to need another way to get pixels from an image.
Does anyone else have a way to get the pixels directly from an Image
without using PixelGrabber?
Ken Warner

Hi, there are ways to do it if you can live with certain restrictions.
            BufferedImage img=new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);
            img.setRGB(10,15,0x01020304);   // a=1 r=2 g=3 b=4
            WritableRaster r=img.getRaster();
            DataBuffer db=r.getDataBuffer();
            if (db.getDataType() != DataBuffer.TYPE_INT)
                throw new IllegalStateException("Hey that must be a int!");
            if (db.getNumBanks() != 1)
                throw new IllegalStateException("Uh - Someone else got to do this job!");
            DataBufferInt dbi=(DataBufferInt)db;
            int[] data=dbi.getData();           
            System.out.println(" Pixel (10,15) = "+Integer.toHexString(data[10+32*15]));
            // Test: No coy
            data[10+32*15]=0xaabbccdd;
            System.out.println(" Pixel (10,15) = "+Integer.toHexString(data[10+32*15]));As you see it works best if you can set the pixel format and if it only contains a single array of data (i.e. bank).

Similar Messages

  • My MacBook (10.5.8) is very slow and has significant problems loading will Snow Leopard (10.6.3) help or make my computer slower?

    My MacBook (10.5.8) is very slow and has significant problems loading will Snow Leopard (10.6.3) help or make my computer slower?
    Also why does my Macbook make so much noise (The noise concerns me because it is so loud it sounds like the laptop will break down or something at any point)?

    It depends on your Macbook model how to open the bottom case.
    Anyway you need to open up the buttom case or keyboard panel to access the CPU fan like following.
    https://www.youtube.com/watch?v=3hHA4DDEvZA
    http://www.ifixit.com/Guide/MacBook+Core+2+Duo+Lower+Case+Replacement/537
    If you think you can't do that by yourself, you'd better bring it to Apple Store Genius Bar or Authorized Servce Shop to tell them about the problem.

  • Firefox lags after being open for too long, and has memory issues

    After having FF on for like 24 hours it starts to respond slowly to typing in text boxes, clicking links, and generally lagging the entire system until I restart it.
    Is there any way to fix this without restarting the program?

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    You can uninstall (remove) the Java Console extensions and disable the Java Quick Starter extension as you do not need them to run Java applets.
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    See http://www.java.com/en/download/help/quickstarter.xml - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    Disable the Java Quick Starter extension: Tools -> Addons -> Extensions<br />
    Control Panel -> Java -> Advanced tab -> Miscellaneous -> Java Quick Starter (disable)

  • E65 default browser... too slow and without memory...

    When i click on a link in an email/SMS message, the default browser (services)automatically opens.
    If i set the browser to the minimal font size and to avoid images, the browser doesen't mantain the settings and if i open a link from another message the browser loads images and show text at the medium font size.
    Do you know if there is a way to set Opera Mobile as default browser or to memorize settings in the default browser when opened from email/sms application?
    Thank You

    Hi, there are ways to do it if you can live with certain restrictions.
                BufferedImage img=new BufferedImage(32,32,BufferedImage.TYPE_INT_ARGB);
                img.setRGB(10,15,0x01020304);   // a=1 r=2 g=3 b=4
                WritableRaster r=img.getRaster();
                DataBuffer db=r.getDataBuffer();
                if (db.getDataType() != DataBuffer.TYPE_INT)
                    throw new IllegalStateException("Hey that must be a int!");
                if (db.getNumBanks() != 1)
                    throw new IllegalStateException("Uh - Someone else got to do this job!");
                DataBufferInt dbi=(DataBufferInt)db;
                int[] data=dbi.getData();           
                System.out.println(" Pixel (10,15) = "+Integer.toHexString(data[10+32*15]));
                // Test: No coy
                data[10+32*15]=0xaabbccdd;
                System.out.println(" Pixel (10,15) = "+Integer.toHexString(data[10+32*15]));As you see it works best if you can set the pixel format and if it only contains a single array of data (i.e. bank).

  • Mac Os 10.7.4 too slow and buggy

    Mac Os 10.7.4 too slow and buggy,
    its random sometimes fine but mostly slow buggy, maybe the mac os needs a scan buit in to show whats responsible for slow speed.
    like will it result answer conflict with 2 apps running or the mac os its self that sort of inbuilt mac os app is due for us users to enjoy and know
    whats the real problem. like a light in the dark we need more tools in the mac os like whats running now in back ground  and foreground and what
    resources performance/strain is incurred. also is slow due to back ground anti virus work load strain on cpu and ram we need a mac app in built that
    informs us who why and what, how and where then recommend the solution. like quit that app or upgrade ram so on.
    or the app conflicts with safari example thus slow performance.
    anyone else agree? anyone else know a mac app that will do ther above?
    Mac Os 10.7.4 need bug fixes in next update of mac os 10.7.5 do we agree?

    like a light in the dark we need more tools in the mac os like whats running now in back ground  and foreground and what
    resources performance/strain is incurred. also is slow due to back ground anti virus work load strain on cpu and ram we need a mac app in built that
    informs us who why and what, how and where then recommend the solution. like quit that app or upgrade ram so on.
    or the app conflicts with safari example thus slow performance.
    Hello, Ian.  You will find the information requested above in the Mac Utility called "Activity Monitor"  There, you can find what processes you have actively running, how much of your CPU they are taking, and how much RAM they are using.  You can also check to see whether your RAM is sufficient by selecting "system memory" in the Activity Monitor.  If you are getting lots of "page outs," this means that you are using your hard drive for "virtual" memory and should consider adding RAM.
    With regard to antivirus work load strain, I cannot comment on that--I use only the Mac OS and do not have antivirus installed.  However, if you search in Discussions you can find recommendations.
    I hope this helps.  Take care.

  • The browers (FireFox, IE) too slow and hang when load Spanish language many

    Hello There,
    I am using the STRUTS Framework 1.1 for developing web application.
    My objects:
    Buyer{
    String scompanyName;
    String scompanyAddress;
    Supplier{
    String ssupplierName;
    String ssupplierAddress;
    I created 2 ArrayList Buyer and Supplier and put them to the ComBox. One Buyer has many Supplier when you select any Buyer....
    If you select Supplier then the sub info of this Supplier will be displayed in below. As this action, I have selected many many Supplier for see sub info (Address, Employee...) many time.
    When the action submit to Server then I see the Buyer info also change when display because Company Name and Company Address are the Spanish language.
    Origin info:
    Name : ABC Espa�a S.A.
    Address: Carretera de LHospitalet, n� 11, Nave 1, 08940 Cornell� de Llobregat (Barcelona)
    First time:+
    Buyer:
    Name : ABC Espa��a S.A.
    Address: Carretera de LHospitalet, n�� 11, Nave 1, 08940 Cornell�� de Llobregat (Barcelona)
    Second Time:
    Name : ABC Espa�&#131;��a S.A.S.A.
    Address: Carretera de LHospitalet, n�&#130;�� 11, Nave 1, 08940 Cornell�&#131;�� de Llobregat (Barcelona)
    We have 2 string very long in results when I select many many time and browser too slow and hang if the are to long. That problem only happen with the Spanish language, in other languages are not, It works good.
    Please help me to solve these above problems, I have tried to add code in JSP page
    <meta http-equiv="Content-Type" content="text/html; charset =ISO-8859-1"> or <meta http-equiv="Content-Type" content="text/html; charset =UTF-8">
    But it also hang the browser.
    Thanks a lot,
    Vu Nguyen

    Well... Are you sure that the problem is within the browser? If both browser hang, then check if your OS supports the language the right way. Also, your browsers my have plugins/addons for supporting other languages. Try to look for them or/and post your systems-names here to help others helping you =).
    X--spYro--X

  • HT1338 I need to update to Lion and then Mountain Lion, but I need a CD or other means to update as my internet is too slow and I have a GB limit. Is this possible?

    I need to update to Lion and then Mountain Lion, but I need a CD or other means to update as my internet is too slow and I have a GB limit. Is this possible?

    Thanks for your response. I was told, obviously misinformed, that you needed to dl Lion prior to Mountain Lion, so thanks for clarifying that. I cannot dl from the internet as it is too slow and I have limited GB per month. I know, at one point, you could purchase a jumpdrive with Lion for those of us who have this problem or no internet access. I will check into that via Apple or try to borrow internet service from a friend and move my computer there.
    Thanks again.

  • I was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    i was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    You may not be able to get a refund, since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store, explain the reason for your request, and ask, though:
    http://www.apple.com/support/itunes/contact.html
    It's possible they'll make an exception for you, particularly if the problem was on their end preventing the movie from downloading in a reasonable time.
    Good luck.

  • Internet too slow and erratic to update software

    I have had an iMac G5 at home for about one year. The problem is my internet connection (DSL) is too slow and erratic to download files bigger than 10 mb. Can I get software updates on a CD? Or is there another way to get those downloaded files? Zipped, maybe?

    Hi & a warm welcome to the forums!
    Quite often getting them direct is far better than SU, this works on my Dialup asccount most times...
    http://www.apple.com/support/downloads/

  • Laptop run too slow and hang

    I bought toshiba setelite amd quad core 4 gb ram 640gb hdd model is l745d laptop 1 months ago , and this laptop running too slow , and hang many times and heatin too much and when I play song there songs play stop play stop mean cauz of hang so plz tell me what is the reason is there a hdd problem motherborad problem or ram problem plz tell me

    Hi I recommend you go back to factory setting. That will eliminate software problems.
    Dokie!!
    I Love my Satellite L775D-S7222 Laptop. Some days you're the windshield, Some days you're the bug. The Computer world is crazy. If you have answers to computer problems, pass them forward.

  • I just brought a brand new Macbook pro retina display, when i connect it to my apple tv through airplay its too slow and when it try to play a movie apply tv is always a minute or 2 behind. How can i fix this?

    I just brought a brand new Macbook pro retina display, when i connect it to my apple tv through airplay its too slow and when it try to play a movie apply tv is always a minute or 2 behind. How can i fix this?

    Hello HanaAmer1,
    We've an article which provides troubleshooting steps that can help get AirPlay workign correctly.
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS5209
    Cheers,
    Allen

  • New iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server

    new iphone 6 with ios 8.0 crushed and didnt open again. call center told me that use itunes to update 8.0.2 but server is too slow and didnt let me download it. it stopts in the middle of the session. how can i download it from another link or server. by the way i try to dowload from turkey.

    anyone help me there? )=

  • My imac is getting slower and slower and has probems connecting to internet. Any idea on how to restore initial performance? thanks

    my imac is getting slower and slower and has probems connecting to internet. Any idea on how to restore initial performance? thanks

    What year, screen size, CPU speed and amount of RAM installed?
    What version of OS X is your iMac running?
    How full is your Mac's hard drive?
    How many applications do you run simultaneously in the background while working in another application?
    Do you run any antivirus software on your Mac? Antivirus software can slow down the normal operation of OS X.
    Do you run any "crapware" like Mackeeper or any other type of so called hard drive "cleaning" apps?

  • Appeaers a message that battery is too slow and the phone turns off

    When the battery is yellow since today appears a massage saying that the battery is too slow and the cellphone turns off! Whats going on? Before, it could have the battery in red buy never turned off :s i need help please. Ah! The emails are taking hours to arrive! I have the 9300 and im too upset!

    This tends to indicate some rogue app running in the background or an email stuck in the outbox constantly trying to send.
    Reset the device by pressing and holding the home and power buttons until the white Apple logo appears.
    Check the outbox for all email accounts configured on the device to ensure no messages are "stuck".

  • Suddenly my macbook pro 10.9.1 is slow and has this message in disc utility: Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.

    suddenly my macbook pro 10.9.1 is slow and has this message in disc utility: Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.

    See this Apple Discussion https://discussions.apple.com/thread/5785712

Maybe you are looking for

  • Interrupt workflow process in process controlled workflow

    Hello experts, In a custom requirement, we need to interrupt the workflow process. For example, if we have 4 levels of approval. After the 2nd approver has approved the shopping cart, then the workflow process should be kept on hold. Based on a custo

  • Problems with Hindi language translation into DW8

    Hi, I have a whole truck load of problems ...but two have so far beat me! I have a Hindi text translation in MS Word ( yes I know copy and paste is evil...but (I have no other option) I have installed "Shusha" font, as advised by the translators who

  • How do i get my music library just to be the music i currently have on my Ipod?? Help!

    My Library on my Itunes has music from past ipods. I want it to just have music that i currently have on my Ipod touch. How do I do that?

  • BPF Issues?

    Hi Folks, Please correct me on following. 1. Can u create an activity without Performer?. eg: I have 3 activities (steps) in 1st step (activity), user (performer) submits data and reviewer approves or rejects the data.in 2nd activity,  i just need a

  • REPRINT TDS CRETIFICATE (NEW FORMAT)

    Hi all, can any one please suggest me regarding tds certificate reprint (new format -form 16a ) for INDIA. i.e when i am trying to reprint then i am unable to display BANK NAME in the 3rd page.