OutOfMemoryException because Image is too big

hi,
I'm trying to learn java by devoloping a simple 2D-action-game. Now I want to draw the the ground of the game-world (or the map) on an image, in order to be able to copy the piece of the image on the screen, on which the player is currently looking.
My problem is, that createImae() (used in a JComponent) throws an OutOfMemoryException, because the map seems to be too big. How can I deal with this problem? Is there a way to not load the whole image into the cache, but to save it on hard-disk?
thanx

Objects are stored on the heap. The default heap size is 64 MByte. If your image is bigger than that you can increase the heap size when your program is started by specifying a comand line parameter.

Similar Messages

  • "Adobe Photoshop Clip Image is Too Big To Be Exported" - Registry fix does nothing.

    Hello folks.
    I cannot paste any images out of Photoshop that are over 1200x900 pixels in size. I get the error message "Adobe Photoshop Clip Image is Too Big To Be Exported."
    I've tried the registry fix available on this forum, and nothing happens. I double click the file - ClipboardSizeLimit_OFF.reg - and get a message saying the data has been added to the registry. Then I copy and attempt to paste into, say, Paint or JASC Animation Shop and just get the "Adobe Photoshop Clip Image is Too Big To Be Exported" message again.
    What's going on?? Is the registry fix actually doing anything at all?
    Paul.

    I had been having this clipboard problem for a long time before I finally found this forum post, which clued me that there is a registry setting available to fix the problem. I found and downloaded a ClipboardSizeLimit_OFF.reg file and realized that just clicking on it would not solve my problem, because the file I downloaded was specific to a different version of Photoshop than the version that I am using. The file I downloaded adds the DWORD value MaxClipSize = 0 under the key HKEY_CURRENT_USER\Software\Adobe\Photoshop\7.0. Well, since I'm using version 6.0, I needed to add the value under the key HKEY_CURRENT_USER\Software\Adobe\Photoshop\6.0. Bingo! I did not even need to restart Photoshop. The clipboard export of large images now works. You need to find the appropriate key in your registry and add the value manually, or change the .reg file to refer to the appropriate key for your version of Photoshop.
    Roy

  • Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Hi! I need help, today I connected my mac Book Air to a tv for a presentation and as soon as I conected it the image on my screen went bigger. And I cant find the way to put it back as it was before. The Images are too big! heelp

    Morning DeeHutton,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at this article:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/ts2802
    Best of luck,
    Mario

  • My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    My homescreen won't resize and I can't access anything because everything is too big to navigate.  Help.

    Double-tap the screen with three fingers to disable Zoom.
    To turn off Zoom go to Settings > General > Accessibility > Zoom and turn this Off.

  • I have my iTunes library on an external HD because it is too big for my iMAC 500GB HD. I want to backup my external HD. Can I do this with any Apple cloud product or should I look elsewhere? Also is it worth just buying another external HD to back up

    I have my iTunes library on an external HD because it is too big for my iMAC 500GB HD. However, it is not backed up, so I need a solution to backup my external HD. Can I do this with any Apple cloud product or should I look elsewhere for cloud products? Will it be cheaper/easier just to buy another external HD to back up my existing external HD? Thanks

    I don't know if this is me adding files to iTunes when the external wasn't connected
    it is.
    is it OK to just keep deleting that library on the Air?
    i wouldn't - at least not until i
    mount the external
    point iTunes media folder location back to the external via preferences > advanced
    consolidate my library via file > library > organize library
    The ntfs hasn't seem to be causing any problems, but I've always wanted to know.
    in order for your Mac to write to NTFS drives, it needs some help by installing e.g. the NTFS 3G driver. apparently that or something similar is installed on your Mac already. preferably, it would be formatted for Mac but then windows machines would need to have e.g. MacDrive installed to recognize the drive.

  • CS6 PSD Could not export the clipboard because it is too big to export

    I have been getting the error "Could not export the clipboard because it is too big to export" since upgrading to CS6. The same files at the same bit depth on the same computer  do not cause this error in CS5.
    In fact, I can open a file in CS5, copy it, and paste it into CS6 with no trouble. If I then copy again within CS6 and leave the program, I am given the error. (As a note, I have not run these programs simultaneously, except to run this test.)
    This error appears regardless of whether Photoshop CS6 is running alone, or with several apps.
    The Raw files are from a Canon 5D mark ii and tend to be 20-25MB in size,
    I am running a Mac Pro 2.8GHz Quad Core Intel with 24GB of RAM. I have set the preferences to allocate 70% of this RAM, which should be sufficient. Changing the allocation to 90% or 100% has no effect, nor does adjusting the tiles configuration. My scratch disks have 130GB and 500GB free.
    How do I correct this problem?

    Hi, FYI, To duplicate a layer on top of itself, use Command+A, Command+J (jump the layer) if you need part of it, make a selection instead of a Command+A, this will also avoid the clipboard, and use Photoshop's scratch disk instead.
    (I don't know why you run into that issue in CS6 and not in CS5, so I try to give you useful workarounds)
    I'm not talking about bigger tiles, but of unlimited clipboard size that you find here for CS5: http://www.adobe.com/support/downloads/detail.jsp?ftpID=4965
    But are not listed here for CS6: http://helpx.adobe.com/photoshop/kb/plug-ins-photoshop-cs61.html#id_68969?PID=3350462
    Maybe did you install it in CS5, but forgot all about it?

  • I'm doing a photo montage.if the size of image is too big like 3mb per pic

    i'm doing a photo montage.if the size of image is too big like 3mb per pic, will it make the rendering too slow ?

    File size has nothing to do with rendering performance. Search the forum, there's tons of threads on this. and by all means, read some basics:
    Getting started with After Effects
    Mylenium

  • I keep hearing that I can't email videos from iPhoto because they are too big. What I don't understand is that I was able to send videos via email in the past. Why?

    I keep hearing that I can't email videos from iphoto because they are too big. What I don't understand is that I have emailed videos via email in the past. Why is that?

    Look at your settings iPhoto>Preferences>Accounts
    and make changes here or add your email account if not in the list
    One thing to look at for sure is the SMTP sever name, I think by default it fills it in as smtp.me.com  or some such,  which may not be your email outgoing server.

  • A Protocal Message was rejected because it was too big

    Hi,
    We are having SAP BOBJ 4.1 support pack 2 and patch 3, on linux environment,
    when we run some specific reports we are facing any issue
    A protocol message was rejected because it was too big (more than 100663296 bytes).  To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.
    we have increased the value of
    List of Values Batch size = 4000
    Maximum list of Valuses Size =  100000
    Still we are facing the same issue.
    Please let me know what could be the issue as other reports are working fine.
    Thanks,
    Balaji.S

    Hi Balaji,
    Yes, However at times issues do appear due to "ulimit" settings.
    Also this error comes from maximum size of protobuf packets, which are exchanged
    between WIPS and DSLBridge service.
    It seems that data being retrieved might have increased.
    Tune the BICSResultChunkSize value to an appropriate one.
    ******Please take a backup of registry before doing the cahnges.
    1. Open the Windows Registry
           a. Click Start > Run. The Run dialog box appears
    b. Type #regedit# in the Open: text box. Click OK. The Registry Editor appears
    c. navigate to the key [HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Suite XI 4.0\default\WebIntelligence\Calculator]
    2. right click, select New > String Value  and name it BICSResultChunkSize and value (e.g. 4000) lower than default 100000 lines
    3. close the Windows Registry
    4. Restart the Web Intelligence Processing Server and the Adaptive Processing Servers that host the DSL Bridge Service
    Regards,
    Nachiket

  • I am having trouble with a video.  I have tried to copy it to a flash drive because it is too big to fit on a DVD, it says it is too large for the volumes format.  Please advise.

    I have done many DVD's for seniors for graduation so I am familier with Imovie.  I have just finished a projec that is a combination of video, music and stills.  I shared it through idvd.  Now I can't burn it to a dvd because it is too large.  It is too big even for a two sided disk.  I have researched it and i find that blue ray would be big enough.  Does apple offer  blue ray burner?  if so, what is the cost?  I tried another route and took my external hard drive to copy it to a PC.  there computer wouldn't recongize my drive.  I am assuming it is because it is formated for apple.  I tired copying it to a flash drive and and it says that it can't be copied because it is too large for the volume's format.  Suggestions?   PLEASE!!!!!

    Could the video be too big because of using too high a resolution?   480p is sufficient for a DVD.  the thread at:
    https://discussions.apple.com/thread/5868958?tstart=30
    may be of help.
    Apple does not support Blue ray - you have to use a thrid party application like Toast.
    To transfer the video to a PC you need a FAT-formatted hard drive (or of course a sufficiently big memory stick).
    You could also go via a network, via the cloud (eg Dropbox) or with 'Wetransfer" or similar.
    Geoff.

  • Disk image of HD -- "image/device too big"

    I'm trying to make a disk image of my hard drive as a backup. I did this with the other three Macs in my house, using Disk Utility and saving them to an external Firewire drive. No problem. But when I try to do the same thing with my G5, I get a message saying "image/device is too big." If I was getting this message from my wife, I guess I'd be flattered ... from my Mac, not so much.
    The thing is, I should have plenty of room. The external drive has 139 GB of space available and the G5 is only using 51GB. Get Info says I have 148 GB capactiy and about 97 GB available. Does the external drive need room for the whole 148 GB to create the disk?
    The main difference between the other operations and the troublesome one is that I save the other Disk Images using my G5 running MacOS 10.4.11. The other Macs all were running 10.3.9. I'd access them in Target Mode on my G5 and save the Disk Image. When I tried to reverse the process and used the newest 10.3.9 machine (a G4) to save a dmg of my G5, I get the "too big" message.
    Any suggestions? Would Carbon Copy Cloner (or something else) allow me to do this from the G5? Any help would be appreciated.

    Found answer elsewhere.

  • Photoshop images are TOO big to import

    I need to import color images into InDesign from Photoshop. Anything over 4MB is TOO big and it says ClipBoard failed. How do I import an image of 14MB or so into InDesign.
    Thanks,
    Alley Cat

    >Use File>Place; not copy/paste.
    In almost every case, copy/paste is a TERRIBLE idea, even if you don;t run into any problem pasting...

  • Screen content image is too big. I can see very little of the screen content.I cannot enter my passcode.

    iPhone 4s. 64GB. Recently installed iOS 8. The problem happened suddenly upon booting the phone. The screen content image is expanded way beyond the size of the screen. Therefore almost nothing is visible. It is possible to move different parts of the content into view, but this is very limited. Using fingers to try to shrink the screen content image does not work. I have tried booting by holding down the start button and the home button together. I still get the expanded screen content image. Finally, because of this problem I am unable to enter my passcode. Unfortunately I do not have a backup on my MacBook Air. iTunes will not recognize my iPhone because I have not entered the passcode.

    Hi pm90, 
    Welcome to the Apple Support Communities!
    It sounds like the Zoom feature may have been activated on your iPhone. I know the Zoom can be very frustrating when you cannot turn it off. Please follow the steps in the following article to disable the Zoom accessibility feature. 
    iOS: Home screen icons are magnified or large
    Have a great day, 
    Joe

  • In Android Firefox, image is too big!

    Sorry to my bad english
    When I use another browser(like aosp, chrome. etc) big image is smaller and fit screen width.
    But using firefox, just big image show original?state. Many mobile site cannot zoom in/out, So I don't see full image
    How can i solve about that?

    Hi SangHoon-Lee:
    This is usually the result of the website using non standard HTML markup that only works on some browsers but doesn't work on others
    Please file a bug at webcompat.org about this:
    https://webcompat.com/
    What other sites have this image problem?

  • Image size too big after drag and drop from iphoto

    I capture around 30 images/day with a point and shoot digital camera (5 MB/image). These images are used as content for about 10 documents/day that I create in Pages. After importing them into the computer I convert to grayscale and resize (via batch processing) in photoshop, so that each image is about 2x2.67 inches, 300ppi, and drop into iphoto. This is the size/resolution that i want them to be when i import them into the pages documents I am creating. When i drag them into pages though they resize to 72 ppi, as if the default is that the document will be seen on the screen and not printed. I then have to resize them again from within pages, which is a pain. Does anybody know what I am doing wrong?
    Thank you.

    You'll get best help on a question like that on Adobe's InDesign forum.

Maybe you are looking for