I have a graphics 2D object which takes ages to draw....
I have made a graphics 2D object which draws rectangles of sizes (5,5) accross the width and height of the screen on at a time.
As you can imagine, this takes ages!!!
does any one have an idea of how to make this quicker without sacrificing the resolution???
thanks!
well, withought code I just can give you some tipps:
* don't create a new Color in the loop, try to share it
* try to paint rectangles with same color at one time -> minimize the time how often setColor is called
* do not create new Objects (like Color) in your paint-loop, share share share...
btw. I would cache it in an image, otherwise everytime the window-content is invalidated (which can happen quite frequently) your slow drawing code is called.
btw2. I can't smell your mistakes over the net, already told you to show your rendeing code.
Similar Messages
-
Why is the “Empty Trash” option missing? All I have is “Secure Empty Trash” which takes a considerable amount of time.
check your finder preferences.
-
After the PC boots up I click on the firefox icon in the start menu, the hour glass appears but then goes out and nothing happens. I have to re install firefox using safari (which opens) and took 4 hours.
Hello kkhelp, can you open firefox in [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode#os=winxp&browser=fx24 safe mode] by holding down the shift key while starting Firefox. ? (DON'T Reset firefox, select Start in Safe Mode).
thank you -
I am having major problems with itunes match. I cannot operate it from my pc as every time it tries to get the information itunes stops responding and shuts down. It then can take 15 minutes of more to reopen itunes as it check my library. I have reinstalled itunes and my software is up to date. It is intensly irritating as I have to remember to tune match off or else I cannot do anything in itunes. Any ideas or do I just tell Apple I want my money back?
If I am persistent and keep tapping the download icon then one by one I can download the entire album but it normally takes a few hours/days. Anyone else had this?
-
I am using Indesign cs5 version 7.0.4 with a mac OS X version 10.9.4. I am having an issue where the save and save as option disappears. I am exporting the file as .idml and then resaving to avoid losing work but has to import all the images which takes ages. Any help out there?
I believe there are a couple of similar threads about CC or CC2014 behaving this way that might give yo some hints, but CS5 is not supported on your OS and may not run properly regardless of what you do. An in-place OS upgrade or an attempt to migrate the application would both be major problems for ID, so if you did either of those things you'll want to uninstall, run the cleaner tool (CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3) and reinstall.
-
Invoking Business Service method which takes Hierarchy / Integration Object
Hi,
I want to invoke Business Service methods using JDB API invokeMethod(). There are some methods which take Hierachy/Integration object as argument. The question here is how do I creat and pass these arguments?
Following two are the methods which take these arguments.
1)[Hierarchy]
Business Service:
SHM Calculate Tax
Method:
SumCalculateTax
Args:
CalculateTax - Hierarchy - Input
ForWhich - String- Input
GetSubTaxCodes - Number- Output
GetTaxCodes - Number- Output
2)[Integration Object]
Business Service:
External Contact
Method : Update
Args :
SiebelMessage - Integration Object - Input / Output
Can you direct me to some sample code please?
Thanks,
ramThank you both for the response. Regarding Rennays posting I have an additional question. When I create a new web service I don't have the "Document Literal" option nor a "Concrete Configuration" tab. I've created the web service using the "Web Application" project type and then adding a web service using the "Web Service..." wizard. This wizard doesn't have the configuration properties you mention, but if I add a WSDL-file to a BPEL-project the wizard has the properties you mention.
Is it possible to create a web service, programmed as an ordinary Java-class, from an existing WSDL-file? In that case it may solve the problem with the Document Literal property. Currently I dont know any other way to create such a web-service other than the through the web service wizard in a web application project. Of course, its possible to craft it from scratch but thats to much work to be practical.
Regards, Ola -
First, how do I create my own favorite theme template for DVD slideshows? I used to be able to select this from pulldown menu, but cannot now do so. I am directed straight to already existing themes, which take more memory. I have a large slideshow, and need all the space I can get. I just want to use a picture as my DVD cover, and then insert a slideshow. Also, when I try to burn my 8.5gb double sided slideshow, all that burns is the music. It is a large slideshow, a memorial on the life of my now deceased brother. This means a lot to me and to my family, and I am having so much trouble trying to burn it. I have gone into Project View and selected appropriately. The bar shows I have room to burn this DVD, but it does not burn. I have burned so many DVDs in the past, but this one just will not burn. I am so confused at this point. I will say this is the first 8.5gb I have attempted to create and burn. My specs list a 7.7gb or 4.7gb as operable....but there are no 7.7gb dvds. I had to purchase 8.5gb. Help? What am I doing wrong? I have spent so much time on this, and just cannot figure it out.
Final Cut is a separate, higher end video editor. The pro version of iMovie.
Give iPhoto a look at for creating the slideshow. It's easy to assemble the photos in an album in iPhoto, put them in the order you want and then make a slideshow of them. You can select from various themes and transitions between slides and add music from your iTunes library.
When you have the slidshow as you want use the Export button at the bottom of the iPhoto window and export with Size = Medium or Large.
Save the resulting Quicktime movie file in your Movies folder.
Next, open iDVD, choose your theme and drag the QT movie file into the menu window being careful to avoid any drop zones.
Then follow this workflow to help assure the best qualty video DVD:
Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image menu option. This will separate the encoding process from the burn process.
To check the encoding mount the disk image, launch DVD Player and play it. If it plays OK with DVD Player the encoding is good.
Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality. Always use top quality media: Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.
The reason I suggest iPhoto is that I find it much easier to use than iMovie (except for the older iMovie 6 HD version). Personal preferences showing here. -
PS CC - I have a B/W background which I flattened - Then, change to RGB and add an RGB color graphic - print out makes background a greenish color - Can't figure out how to adjust.
Thanks,
DaveIf the grayscale looks ok on screen, you are probably not setting up your print correctly. What OS? What printer?
-
How to make a code in which i have to detect 3 objects
Hello everyone,
I am new in Labview. I want to make a code in which i have to detect 3 objects and they are in different shapes (rectangle, triangle etc).
1. How many objects in image.
2. What is the size of each object in image
3. At what position they are laying.
4. Data array of histogram of each object.
5. What is the color of each object.
Please help me out. I am confused with the tool. Which tool i will use for this Vision Assistant or Vision Builder AI or if i use labview directly to make the code what steps should follow to make this code.
Thanks
ZeeshanHello Zeeshan,
this is Vanessa, AE from Germany. I really like to help you with your project but like the other members already told you it would be easier if you have a certain problem.
Using your Shapes.jpg you have several options in the Vision Assistant. For identifiying circular objects of different size the tool "Find circular Edge" from the "Machine Vision" tab is the right choice (see screenshot attached). The result will be the center position and the radius so on. The pattern match function is not the right option because each of your objects has a different shape. In order to use this tool you need several copies of your object.
Do you really need colored images? For most application it is sufficient to use grayscale images. Be aware that some functions are only available for grayscale and your program will speed up.
Please tell us more details about your project.
Kind regards,
Vanessa
Attachments:
vision assistant.PNG 305 KB -
I have a problem with my Macbook air which keeps reloading all my old emails to my inbox. Even thought i delete them, which takes a long time, over 10,000...they keep coming back? How do I delete old messages? Thank you
check your account settings, possibly under advanced settings.
look for an option to check "remove messages from server" or similar. -
Hallo ,I have an IMAC 21.5. which does not start.When i press the power button i hear only beep with an interval of 4-5 seconds.Some times when i take off the RAMS and put them again then get a white screen and shows that i have to insert a bootable device.Then i bought OSX mountainlion on line and wrote it on a DVD and tried with a USB key board to start the DVD.But does not work.Please help me to get this imac work.
Thankyou in advance for your help.
TerrenceHey terremo,
Thanks for the question. From the information you provided, it sounds like the iMac is successfully turning on, however video is not displayed. These symptoms can usually be isolated further by the troubleshooting steps in this article:
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/HT1573
Thanks,
Matt M. -
Is there anyway I can have a graphic track an object in a video?
Is there anyway I can have a graphic track an object in a video?
In FCE it can be done, but it's a rather tedious process. Load the graphic from the Timeline into the Viewer, then click on the Motion tab. Keyframe the movement as needed to follow the subject in the video (while watching the Canvas window).
-DH -
My iPhone 4 keeps freezing up. I have turned it off, used the off switch n home button to try to restart it. It slowly comes on I type in my pass code which takes awhile to come up n it does do anything. I can't get in to any app.
try to back up and restore to factory settings
iTunes: Backing up, updating, and restoring iOS software -
I have an iMac 21.5" which is currently running 10.7. It takes between 5-10minutes to boot into system and i have these console error messages listed below:
12/3/2014 5:17:49.000 PM kernel: USBF: 1586.748 AppleUSBHubPort[0xffffff800e51b600]::FatalError - Port 2 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (2)
12/3/2014 5:17:49.000 PM kernel: USBF: 1587. 26 AppleUSBHubPort[0xffffff800f55a800]::FatalError - Port 3 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (1)
12/3/2014 5:17:49.000 PM kernel: USBF: 1587. 27 AppleUSBHubPort[0xffffff800f575200]::FatalError - Port 1 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (1)
12/3/2014 5:17:53.000 PM kernel: USBF: 1590.840 AppleUSBHubPort[0xffffff800e51b600]::FatalError - Port 1 of Hub at 0xfa110000 reported error 0xe000404f while doing getting port status (4)
12/3/2014 5:17:53.000 PM kernel: USBF: 1590.840 AppleUSBHubPort[0xffffff800e51b600]::FatalError - Port 1 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (2)
12/3/2014 5:17:54.000 PM kernel: USBF: 1591.122 AppleUSBHubPort[0xffffff800f55a800]::FatalError - Port 2 of Hub at 0xfa110000 reported error 0xe00002c0 while doing clearing port feature (1)
Any help as i notice it has something to do with the usb but i cant tell which device. also it has been behaving the same in Mountain Lion as well. Any help will be greatly appreciated.If you don't have a hub attached, then I suggest a visit to an Apple repair station. I don't have one and don't see any of those kinds of messages in any Console log.
-
Every time I install iPad/iPod updates I end up having to go back to the original settings and reinstalling all the media, which takes 36 hours. Any ideas why?
Every time I install iPad/iPod updates I end up having to go back to the original settings and reinstalling all the media, which takes 36 hours. Any ideas why?
Maybe you are looking for
-
Hi Friends, Please help me in finding the change logs for the TCODE FILE, i.e The changes made to the Logical paths I had tried Utilities---->change logs , but unfortunately i cannot find any changes logs But there are changes made
-
E-mail doesn´t send...
I have just configured my E51 for e-mail...(POP3) I tried writing an e-mail...no problem! I klick on "send"...the phone starts sending...and sending...and sending...and sending...etc... After about 5 minutes I aborted the operation. There must be som
-
Read receipt not working in Outlook 2010
Hi. I am having some problems with read receipt. It does not work on my computer, it works fine on my co-workers computers. It worked fine for a couple of weeks but no I neither receive read receives from others to confirm nor do mine get sent with
-
Hi all, I am a newbie to the SAP Business One 2007 A. I have to print outgoing payment voucher. In the voucher I need the account no. of the business partner to whom the payment is being made, the account no. from which the payment is being made (G.L
-
How to get a string in an int??
Hi, I have a computerport in a String variable(f.i. 8080) and i want to cast it to an int I tried ldap_port = (int) ldap_port_str; but the compiler complains. I didn't find a method for casting a string to an int how can i solve this?? THX