Creating Image Buffer for long painting tasks

in the post -
http://forum.java.sun.com/thread.jspa?threadID=641283&messageID=3785845
tjacobs01 says...
"First of all in this case you would definitely want to create your image before sending it to the screen. ... What you should do is create an ImageBuffer, clear the background, and then paint your graph on top of it."
In my program I have a JPanel's paint method pass its Graphics2d object to a class that does A LOT of painting and processing.
The performance is decent now but when i read that statement i realized i should probably be doing it that way.
How would i implement an image buffer?

i didnt realize there was a java2d section - i reposted this there.
http://forum.java.sun.com/thread.jspa?messageID=3800261

Similar Messages

  • Unable to create image buffer after RAM preview

    Running into an odd and frustrating error. Built a comp using the new Ray-traced 3D renderer and now I'm regretting being an early adopter big time with all the problems I've been encountering with it. The latest comes whenever I do a longer RAM preview in an attempt to watch the whole duration of my comp. It will get to about 170 frames or so, at which point I've interrupted by pressing spacebar because I don't need to see all the way to the end of my work area (around 220 frames). It'll play the RAM preview back fine, and even loop it, but as soon as I stop playback, I get this error message: "After Effects warning: Unable to create image buffer." There's only one button: "okay" and as soon as I click it the same error pops up again and it will never go away, forcing me to close AE from the task manager. I've taken to saving before every RAM preview like I used to do with Flash before previewing my buggy swfs for fear I'll lose all my work after previewing. Any ideas about what might be causing this?
    Some more details about my comp:
    1920x1080 @ 29.97
    Ray-traced 3D
    About 70 3D layers (I'm guessing this is my downfall - new renderer not designed for this many layers?)
    Running Windows 7 Professional
    i7 2600K
    32GB RAM
    2x GTX 570 video cards running latest driver (301.42, CUDA 4.2.1)
    508GB free on my 2TB internal drive where the project and cache lives
    From my GPU info window in case it's useful:
    Fast Draft:
    Available
    Texture Memory:
    600.00 MB
    Ray-tracing:
    GPU
    OpenGL
    Vendor:
    NVIDIA Corporation
    Device:
    GeForce GTX 570/PCIe/SSE2
    Version:
    3.0.0
    Total Memory:
    1.20 GB
    Shader Model:
    4.0 or later
    CUDA
    Driver Version:
    4.2
    Devices:
    2 (GeForce GTX 570, GeForce GTX 570)
    Current Usable Memory:
    1.04 GB (at application launch)
    Maximum Usable Memory:
    1.25 GB

    Yeah, some buffer is very likely not flushing when you interrupt the preview and then there is no more memory on the graphics hardware. Consider setting the work area and your preview options to use only the work area. if it finishes the preview "correctly", it may not suffer the issue. Beyond that - raytracing doesn't/ shouldn't care about the number of items. The math is such, that it makes no difference whether you render a million polygons or just one. Of course there are still limitations due to the GPU dependency, but I doubt you ever truly exhaust the cards' geometry buffers. Compared to pixel data that is a small amount...
    Mylenium

  • Create t.code for report painter in CO-PA

    Dear experts!
    Now, I'm getting some issue about creating t.code for report painter in CO-PA.
    Really, I don't know to create t.code for report painter that is created and run in t.code KE30.
    Help me to solve the issue!
    Best regards, Huy

    Dear Huy,
    To create a tcode for report created on the KE30:
    1 - Get the parameters from your Z report, on table TKEB2 (on field REPID)
    2 - On the SE93 create your tcode with option "Transaction with parameters"
    2.1 - On the field "Transaction" fill with START_REPORT
    2.2 - Choose the option "Skip inicial screen" and "Inherit GUI attibutes"
    2.3 - On "Default Values" use the follow parameters:
    D_SREPOVARI-REPORTTYPE <RE>
    D_SREPOVARI-REPORT <NULL>
    D_SREPOVARI-EXTDREPORT <APPCLASS SUBCLASS+TABNAME     REPID>
    *This information you got in table TKEB2, eg:
    KE  01CE1CPFL                       ZDREB01
    I hope the information has been useful,
    Regards,
    Melina

  • Could Not Create image buffer & placing new RAM

    Hello,
    I 'm all the way from Holand ;) and I hope someone can help with the following:
    I'm running AE 7 and with the original configuration it ran well while rendering. But after putting 4 GB extra (total 6 GB) -I did it in the right way; 2x1 GB RAM in the upper tray and 2x2 GB in the lower tray- I constantly get the error 'Could Not Create 1920x1080 image buffer'. My computer (system profiler) detects the full 6 GB RAM though. Do I have to change any settings in AE 7? AE detects only 3.0 GB...
    I have no idea if it's a software or hardware problem. Maybe it's because I have the brand new Macpro 2.8 Ghz with 8800 GT card?
    Hope to hear from you guys!

    >I have no idea if it's a software or hardware problem. Maybe it's >because I have the brand new Macpro 2.8 Ghz with 8800 GT card?
    Both. When you change the RAM amount but do not re-initilaize the system, some kernel extensions and caches will not be cleared, resulting in wrong memory mapping for compatibility apps under Rosetta. You should be able to do that using OnyX or TinkerToy or by repairing your system with the install disks. Other than that it's somewhat pointless to run a non-intel-native version of AE on such a powerful system. You are wasting a lot of performance here. Only CS3 will improve matters, but to use the full potential of multiprocessing with HD comps you will need a lot more RAM than the 6GB you have.
    Mylenium

  • How to create t.code for report painter report created using CJE5

    Hi All,
    I'm trying to create T.code for a report painter program created using CJE5.
    I using the D_SREPOVARI-REPORTTYPE as "RE" and
    D_SREPOVARI-EXTDREPORT as KP 01RPSCO_X <report name>
    If I provide spaces between KP 01RPSCO_X <report name>, its not allowing spaces.
    If I didn't provide the space then its saying that "report does not exists"
    Please let me know how to overcome this issue?.
    What this KP  & 01RPSCO_X stands for? Is this always constant?
    There is a similar kind of transaction in other system which Looks like this " KP 01RPSCO_X <report name>" spaces in between
    I dont understand why its not allowing spaces in this system. As its in different system i cant make a copy of this transaction and change the parameters.
    Edited by: Mr A on Feb 18, 2010 5:28 PM
    Edited by: Mr A on Feb 18, 2010 5:54 PM

    thanks for giving me the link.
    I searched for all these link in SDN before posting itself.
    my issue is how to give the value for the parameater EXTDREPORT.
    If i give spaces for the value KP  01RPSCO_X <report name>, its throwing error, T,code its self is inconsistent.
    if i didnt give spaces its i'm able to create the t.code, but when i execute it, its giving error message saying "report does not exists"
    but if i go to CJE5, that report is there.
    thanks

  • Create T.Code for Report painter- report (GRR1)

    Hi Experts,
    I have created report in report painter( T.code - GRR1) using 1vk library, now i want to have a transaction code for my new report.
    So, How can i create a T.code for customized report in GRR1.
    Thanks
    Raj

    Dear Raj,
    Hope this link will help you.
    http://home4sap.com/Blog/2009/08/how-to-create-a-transaction-code-for-report-painter-reports/
    Thanks and regards
    Praveen.J

  • Create image buffer with dll function

    Hi,
    I have a usb barcode scanner which I control with a bunch of functions in a dll file. I used the wizard which was pretty straightforward. Now I can send most of the commands I want but have a slight problem when initializing image mode. There is a createimagebuffer function but it wants a string input, "a pointer to the destination buffer for image data returned from the scanner". What am I suppose to point at and how do I do it? Im new to this (first time experimenting with dll files) so I may have missed something important.
    Regards
    Andreas

    It should point to a string. The string should be large enough, e.g. it
    should have a lot of characters in it. If the function also has a length
    input, you can configure the dll so that the string length is automatically
    linked to that input.
    Regards,
    Wiebe.

  • How do I create a spinner for an "Activity" Task field???

    I am in need of a "spinner" for one of my Activity Task fields. What I term a spinner is basically a numeric field which which can be increased or decreased by the user through the use of either an up or down arrow next to the numeric field.
    Example: http://en.wikipedia.org/wiki/Spinner_%28computing%29
    Anyone know if this is possible? I need the spinner to be primed with numerical values of 0 through 99.
    Thanks in advance for your assitance.

    Well, I'd guess you could try to create it in a Form Applet, but I don't think a List Applet will allow you to have buttons next to a Field (Control).
    AFAIK Siebel doesn't have spinners. You could try to open a SR with lowest priority and see what Oracle comes up with. They might open an Enhancement Request, but I guess that won't be finished in time for you. ;-)

  • While creating proxie asking for transport Request/task...

    Hi Experts,
    This is the first time i am creating proxies. When i entered Spoxy transaction  and trying to activate the proxie its asking for package name,Prefix and Transport (Request/Task) .
    The transport request shouild be created by network people or we can ignore it and it can created later.
    Please guide me on how to proceed further.
    Regards
    Santosh

    Hi
    The prefix name will be used in the creation of Proxy-Interface ABAP Name and in Implemented Class ABAP Name.
    You should provide the transport request which will be helpful for further transport from one system to another.

  • Creating wrapper procedures for Long running procedures

    In SQL server, we can create a wrapper procedure to call long running procedure. Wrapper procedure calls long running procedure and returns to its calling application and give message "your request has been received and being processed. result will sent to your email-id." So user need not wait for complete execution for his request. From long running stored procedure we can send email to user stating all execution result he wants.
    Is there any way to implement it in Oracle9i? Or any other technique to call such long running procedures asynchronously through wrapper procedure sothat user need not to wait and also avoid "request time out" error.

    This question would be better off posed in the Oracle Data Provider for .NET forum.
    Christian

  • Creating Tcode for report painter program in 4.0B version?

    hi all,
    How to create a tcode for report painter program in 4.0 B?
    I searched the forums. but i couldn't find the same for 4.0 B?
    Please helo me to solve this?
    Thanks,
    Vamshi

    I am closing as no one answered and worked in alaternative way for the requirement.

  • Creating an app for different screen resolutions/sizes

    Hi
    I'm currently in the process of learning application development for the iPhone and could do with some help on how to cater for retina and non-retina screens. I want to create image assets for each screen type.
    What the best way to go about detecting if the user has an iPhone 4 for example and selecting the appropriate images for that resolution? I understand that you attach '2x' to file names when coding natively but for a pure Actionscript project where the assets might be contained in a swc file what would be best to do?
    Thanks

    Hi Vic,
    The biggest advantage of building apps in Flash CS5.5 or Flex is the ability to target multiple devices and the 2 major platforms, iOS and Android oh and also Blackberry (anyone?).
    Best way to approach a build is to assume you do not know the screen size your app will be used on, since Android is so all over the place.
    I have been using stage.stageHeight and stage.stageWidth religiously for all my scaling although I have heard that method has its problems, it has worked well for me, I have put out 2 apps personally and 3-4 for work using this method both in Landscape and Portrait orientations and this method has worked well.
    The easiest way to build a multi screen app is to design it for an average ratio, 3:4 being the lowest = iPad so lets say you pick some decent size that wont be too big for smaller screens like the iPhone 3gs 480x320 and wont be too low for high res screens like the new Google Nexus or the Motorola Xoom 1280x800. I usually target the iPhone 4 screen 960x640 right now it seems to fall in the middle between older phones and tablets.
    The real quick and dirty way of doing it is to build all your assets inside a movie clip and then scale that movie clip proportionally to the stage, first checking to make sure none of it would be cut off due to different screen ratios, this is not the best way of doing it but it works well and its the easiest method.
    A better way is to scale and place your content in relation to the stage, again the stage.stageWidth and Height properties are your friends so if you have an element that always goes in the middle you would place it my_mc.x = stage.stageHeight / 2 and same with the y, you can also scale it to the stage my_mc.width = stage.stageWidth/4 this way the movie clip is always 1/4th of the stage width regardless of the screen, its a lot planning up front but this method allows you to cover the entire screen instead of just cramming your movie clip in there however it fits.
    Let me know if any of that helped I can go into further detail but I feel like I am rambling on.

  • Create data buffer with arrays

    Hello.. I'm trying to create a data buffer but I can't...(I don't understand very well how to use the shift registers, feedback, auto-index, etc.) I receive real-data from 16 sources and I want the buffer to allocate 20 samples or so... (20 x 16 matrix or array). I'm trying to simulate the sources and using replace array subset, but I can't do what I want.. (that a single data fill the space in index 0, and when a value reaches index 19, the next number replace the one in index 0 and so on....)
    I want to create a buffer for when some disturbance ocurrs, I want to save the data from 1 or 2 seconds before the event. I think that I can use too a history data property node, but I'm not using a waveform chart anymore, because I want also the time stamp of the data in the xscale.. and with the chart I didn't manage to do it... (I tried with an offset property node.. but eventually the time in the xscale lagged the real time, I think that happens because the rate sample is not constant... but that's another problem.. =S)
    Thanks in advance for all your help...   Mitzi
    PS. I attach my attempt...
    Attachments:
    buffer_qst.vi ‏20 KB

    If you want a build a 20x16 array with only the 20 most recent values, what you can do is use the build array function to concatenate on the end of the data (you will need a shift register for this). 
    Next take the output of the build array and get the last 20 columns using the array subset function.
    (There's a real clever way to do this involving reversing the arrays, but I'm not going to confuse you with that).
    If you're still not getting it when I get home, I'll write up a VI and post it.  What version are you using?
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • Tcode for Report painter

    Hello All,
    when m trying to create a tcode for report painter through se93 its show erre for D_SREPOVARI-EXTDREPORT parameter,m felling the parameter with the value gatting from table TKEB1,-APPLCLASS /SUBCLASS /TABNAME  23 space / REPID.error is do not use blank char. Suggest Please and please give some idea about how to copy a stand. report painter and change the Z according to client requirement.
    Thanks
    Sam

    Hi,
    I will suggest you to execute the transaction START_REPORT and put the report type report and ext. name. If it executes well over here then you can create a transaction using SE93
    Something like this
    Default value for transaction ‘START_REPORT’
    In    bellow default value section insert default value
    SREPOVARI-REPORTTYPE      = AQ      "Parameter    indicating Abap Query
    D_SREPOVARI-REPORT           = ZY_CS_ALLSLS   "Query    User group
    D_SREPOVARI-EXTDREPORT= ZY_SLS_MST_001     "Query name  
    Hope this helps.
    Thanks,
    Tooshar Bendale

  • Custom T codes for Report painter in FI

    Hi All -
      I have list of report painter reports (created thru GR31) and need to create custom transaction codes. I need information for following points:
    1. How to create tcodes for report painter report
    2. We have to transport those tcodes from DEV server to production and client numbers are different, will the transaction codes work when we promote to different server.
    Thanks in advance.
    Rds,
    K

    Hi,
    Following are the Answers to your Queries.
    1. Please refer to [Creating Transaction Code For Report Painter Reports|http://www.google.com/url?sa=t&source=web&ct=res&cd=1&ved=0CAgQFjAA&url=http%3A%2F%2Fdap-consulting.com%2Fyahoo_site_admin%2Fassets%2Fdocs%2FReport_Painter_Reports.47142031.pdf&ei=MiWYS5ilCYeOlAfn4pCGDQ&usg=AFQjCNEZ0YO6vJ97K24MbU_NI5ROTb5vJA&sig2=Ke-svnqddqrz8RMcTuEnaw].
    2. Please refer to 5th chapter (Page 90) of this document for [Transporting the Report Painter Reports|http://www.google.com/url?sa=t&source=web&ct=res&cd=3&ved=0CA0QFjAC&url=http%3A%2F%2Fwww.sapficoconsultant.com%2FBonus%2FReport%2520painter.pdf&ei=UiaYS8WOA5KylAei3830DA&usg=AFQjCNEHYqOFUd4XmZeX0JFt80OS-u7-mQ&sig2=dz40ldGpk_iyIRFR-yIxug].
    Hope this helps.
    Regards,
    Chandravadan

Maybe you are looking for

  • How do i move and delete albums?

    need help in moving and deleting albums from a different computer.Want to move and delete on the phone

  • Processing unfinished stream with SAX

    Hi, I'm just writing some kind of a jabber plugin in java. I've decided to use sax for parsing server responses. However I've encountered a problem with sax. saxParser.parse(inputStream, this);Problem is, that events (such as startElement) are called

  • Change HTML background color with AS3

    Hi all, I'm looking or a way to change my HTML background color trough Flash. The problem is it's not working any ideas? here is the code i'm using HTML HEAD <script language="JavaScript"> function changeBgColor(newBgColor) if (window.document && win

  • Background of the image?

    Hello again, I have an image which has a white background and some stuff drawn in the middle, How can I display it without the white stuff as the background? thanks

  • Can I use "~" in Automator instead of user's home folder?

    I want to create an Automator action that I send to someone that can put a file in their iTunes Folder. If I create it on my computer however, Automator uses the actual file path to MY iTunes Library. Is there a way to use the "~/Music/iTunes/" to ha