I am writing a program that needs to draw gradient lines according to the points that i touch on ipad. For this i am using "DrawLinearGradient" function. But the 2 colors that i am giving for drawing gradient is not dividing equally in the complete line.

Can anyone please help about the parameters that need to be passed corectly.
CGColorSpace colorSpace = CGColorSpace.CreateDeviceRGB();
CGColor[] colors = {UIColor.Red.CGColor,UIColor.Green.CGColor};
float[] locations = {0.0f,0.5f,0.5f,1.0f};
CGGradient gradient = new CGGradient(colorSpace,colors,locations);
ColorMessage.FontSize = width;
context.SetLineWidth(width);
context.SaveState();
context.Clip();
context.DrawLinearGradient(gradient,penVertices[0],penVertices[count-1],0);
context.StrokePath();
gradient.Dispose();
colorSpace.Dispose();
context.RestoreState();

Wouldn't this be better posted in a developers forum? This forum is for Using an iPad, not writing programs for one.

Similar Messages

  • My CS6 program that has never had a problem before, is not telling me that there is an error and that it "unexpectedly quit" when I simply try to launch the program.  I have restarted my computer several times.  It does the same thing each time.  So then

    My CS6 program that has never had a problem before, is not telling me that there is an error and that it "unexpectedly quit" when I simply try to launch the program.  I have restarted my computer several times.  It does the same thing each time.  So then I tried uninstalling the program and re-installing.  It said that it could not install due to an error.  So I STILL can't launch my program.  I don't know what to do.  Any help would be appreciated.  I have to edit photos for a photoshoot and return them tomorrow. :/

    Reset Photoshop's Preferences?
    Your Photoehop preferences will survive un-installing and re-installing Photoshop......

  • HT4400 I'm looking for a Braille note system that interacts with IPAD. This will be use in a classroom settings where you see both the braille & text communicated simultaneously.

    I'm looking for a Braille note system that interacts with IPAD. This will be use in a classroom settings where you see both the braille & text communicated simultaneously.

    This should be able to help ya out -> Support for wireless braille displays in iOS 6

  • Can I use an iPad for taking hand written notes using a stylus? Not a large stylus, but a one like Sumsungs.

    Can I use an iPad for taking hand written notes using a stylus? Not a large stylus, but a one like Sumsungs.

    Hi HawkeyeD1977, thank you for watching!
    1) I don't think you can really scratch the screen with the Jot Script. I don't have a screen protector, but I have reasons to think it will still work if you have one (I tried the Scrip through a think sheet of plastic, and I still works: more on that in my next video).
    2) It's true that the Script is noisy, but as I often say: have you ever tried to focus on the background noise of, say, a classroom? It is very noisy too! I'm always surprised by how good our brain is to filter background noises. So really, it depends on your environment and on the ability of your brain to filter noise. For me, I'd rather use a stylus that is a little noisy but very precise. It also depends on how you write text: as you can see on my video, I don't lift my pen very often, I write big groups of letters together.
    3) You should watch my latest video about that: I talk about Memo and Notes Plus. Memo has a handwriting technology that you can test for free, and buy as an in-app purchase inside Notes Plus, to use in a realy note-taking app. In Notes Plus, you can indeed convert just selected areas containing text.
    4) It won't have a text convertor, not in the next update. Maybe latter!
    If you want more information about the Jot Script, stay tuned: by the end of the week, I will have uploaded a video to talk about the Scrip with more hindsight after one month.

  • HT4060 My USB charger is not supporting while i am connecting from PC to iPad for charging (showing as " Not Charging"), Kindly advice me

    My USB charger is not supporting while i am connecting from PC to iPad for charging (showing as " Not Charging"), Kindly advice me

    Hi Folks,
    I have tried most of what have been said here ( thank you for the great Job) but unforunatally it didn't solve the issue.
    However, now the "Not Charging" message in the right corner disappeared and my iPad is charging normally from my laptop.
    The reason behind that is using the USB3.0 port in my Dell inspiron N5110. Earlier, I was using the USB 2.0  ports and that is why it was showing that message but as sooon as I pluged it in the eSATA USB 3.0 port , the message disapeared and the iPad started charging normally.
    So don't waste ur time here and there try to plug it to USB 3.0 port and it will works, Insha ALLAH.
    Cheers
    KoRn

  • I'm writing a report and need a title page, so I want the auto-numbering to start with the second page. So the title page is zero and the next page will read "1"

    I'm writing a report and need a title page, so I want the auto-numbering to start with the second page. So the title page is zero and the next page will read "1" How do I do this?

    Hi H4S,
    Click at the end of the Tile page.
    Menu > Insert > Section Break.
    Click in the second Section. Insert a page number in the Header or Footer.
    Inspector > Layout > Section:
    Regards,
    Ian.

  • HT1212 itunes could not be connected to ipad because it is locked with a passcode, i must enter a passcode on the ipad before it can be used with itunes but all i see is "iPad is disabled connect to itunes" I have a passcode but nothing shows on the scree

    itunes could not be connected to ipad because it is locked with a passcode, i must enter a passcode on the ipad before it can be used with itunes but all i see is "iPad is disabled connect to itunes" I have a passcode but nothing shows on the screen

    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school enviroment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • I have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this

    i have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this bluetooth with my devices, thanks

    sos1der wrote:
    pairing the apple equipment is not a big deal just wanted to add songs from itunes wirelessly.
    You can only add songs to your iOS device from iTunes via Wi-Fi sync or via your cable, not Bluetooth.
    sos1der wrote:
    but i tried paring my LG bluetooth so i can listen to music on my computer wirelessly buy it gives me the same error message
    That's an entirely different issue, unrelated to your iOS devices.

  • I try to connect to iTunes and it comes up with a box saying "iTunes could not connect to the iPad because it is locked with a passcode. you must enter your code on the iPad before it can be used with iTunes", but i cant enter the code on the iPad

    I try to connect to iTunes and it comes up with a box saying "iTunes could not connect to the iPad because it is locked with a passcode. you must enter your code on the iPad before it can be used with iTunes", but i cant enter the code on the iPad because it is saying "connect to iTunes". Can anybody help?? It is on the new iPad.

    FORCE IPAD INTO RECOVERY MODE
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.

  • Help writing a program that uses Add/Remove programs

    Hey everyone,
    I'm trying to create a program that will utilize add/remove programs to repair an installation of a program. Specifically I'm trying to write something that will help automate repairs of QuickBooks installations. I've tried using Filemon to figure out what executables I might need to call and I've searched high and low in the forums and Google for help but I'm not getting anywhere. Is there some sample code out there that shows you how to work with the Add/remove programs screen and the programs in it?
    Thank you for any help you all can provide me.

    [email protected] wrote:
    It might be possible if you use the JNI, ** ouch ** That's going to hurt.
    but more than likely, Java is a poor choice for the program that you're trying to write.I'll second that. You might want to try C# if you want to write a more Windows-centric program. Its syntax is extremely similar to Java's (I wouldn't say that it was ripped-off of Java, but you could say that probably and not be wrong). But it is a powerful language with a rich library and would interact with the Windows libraries much more readily than java would.

  • Writing a program that sending e-mails , Please help

    Hello ,
    I want to write a program that gets
    the the user email (the server of the email , it's username and passowrd)
    and the reciver email , and the message , and sending the message from the
    user's email to the reciver email.
    But I want to write by myself a class that connects to the user's email
    and not to use Smtp classes....
    (I know how to use Sockets , etc...)
    But I actually dont know where to start from...
    Okay ,I know that first of all I need to get from ther user the server of his email , his username
    and his password.
    (I will take Gmail for example)
    So I create a Socket
    Socket mySocker = null;
    try
    mySocket = new Socket("smtp.gmail.com" , 465);
    } catch (UnknownHostException e) {
                System.err.println("Don't know about host : Gmail.");
                System.exit(1);
    } catch (IOException e) {
                System.err.println("Couldn't get I/O for the connection to: Gmail.");
                System.exit(1);
            }but from here , how do I connect the user's email with the password and the username that he gave me..?

    duffymo wrote:
    Gonen wrote:
    Hello ,
    I want to write a program that gets
    the the user email (the server of the email , it's username and passowrd)
    and the reciver email , and the message , and sending the message from the
    user's email to the reciver email.
    But I want to write by myself a class that connects to the user's email
    and not to use Smtp classes....Why not?
    (I know how to use Sockets , etc...)If you're going to connect to SMTP servers, you'll make a socket connection to the default port and then....send....SMTP commands....so.....it'll.....understand.....you.
    Geez, if you want to learn how to write SMTP from scratch this makes sense, but if you just want to send e-mail I'd reconsider and just download JavaMail.
    %I am not doing it becuase I need it , I am doing to train :)
    and do you have any list of SMTP commads or somthing like that??

  • The Cyberlink program that came with my hp2000-2b20CA computer does not seem to have any volume.

    I have tried everything I could think of but the only thing that works when trying to play a DVD is plug into my tv and use that volume. I really don't want to do that as it should work using the computer. I believe the volume works fine on the computer as I have used it. I just does not work when using the cyberlink program that came with the computer to play a DVD.

    Hello Dixy1953. I understand you're having issues playing the sound through the TV when you plug the computer up to it. Is this correct?
    Which interface are you using to connect your TV and computer?
    I will await your response; have a great weekend.
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Writing java program that uses UMTS service

    Hi
    I wonder if it is possible to write java programs that use UMTS services. Is there any class-package in java related with UMTS services?

    you can call a batch file using NT service. the batch file executes the java program. and you can also send an email thru that java program.

  • Need to revert to my old OS on iPad. Cannot. Tried using old backup but this Trojan horse type software has corrupted my ability to do so. Tried emailing but it bounced back unacknowledged. I was sent notice that I can't get support. Christmas 2012 gift.

    New OS causing major problems. Forced to purge data and wipe iPad. Now my computer has changed. My software has changed on iPad. Tried using old backup from earlier date but Trojan horse software created by Apple has decided to stay.
    Have 16gig. IPad 2 bought December 2012 for Christmas but according to Apple I am out of Apple care and would need to pay for support. When has 1 year apple care become 9 months?
    Wasted an entire day trying to purge my older computer which is linked to this iPad. I reset my iPod and ended up deleting and wiping clean but it's not factory but the aggressive 7.2 which returned. I want my old OS back. Their software has destroyed my ability to use my iPad for the purposes I intended it for.
    I don't do social media other than Pinterest and I want the fluffy stuff gone. They need to forget trying to get me into the clouds and fix this iPad so I can use it for real world applications.
    You can only keep resetting so often. There has been hardware issues almost since purchase because it crashed several times even before updated fiasco.
    Help please.

    Ralph9430, thanks for responding but the fact that they don't support AppleCare on a unit less than a year old despite being an older version is wrong.
    It suppose to be from date of purchase so their not taking responsibility for the maiming of people's computers and their subsequent arrogance in not removing it is going to their undoing.
    We have purchased iPhones, Mac Pro, iPad, iPod touches in the nano, shuffle and touch versions in the past as well as the more solid 80gig version. I
    I am still using 3G model phone and I can no longer find apps to use with it because Apple feels I don't deserve new apps. 
    My children are using iPhone 4 and my daughter was seeking to upgrade to the newest model when it becomes available. They are social, I am not and I deserve the software I paid for. It should always be an option.
    I can tell you that this particular oversight is causing me to look elsewhere for future purchases and  I will not be recommending Apple to others as I have in the past.

  • Why do I keep getting problems with Apple not recognizing my email password? This suddenly started and just reminds me of the mess that mobileme was. Calendar dev also is not working. What a complete mess!

    Can't access my email - endless messages saying password is wrong, which it is not. Mobileme all over again. I now need to forward all Apple mail to GMail, which is how an email system should work. Same is true with the calendar - a complete mess on the integration with my Google calendar.
    This is really, really a pain!!

    OK this is Cormacin Texas - these idiots have put me through the hoops, effectively locking me out of the support forum. Anyway I've solved the problem - it took 3.5 hours, involved a trip to the Genius bar at the local Apple store, and one and a half hours escalating through the dial-in help support - which was about the only thing the Genius was good for.
    What you need to know is:
    1. Apple are having problems with their servers, but have not published the fact - we've all wasted a lot of time because these guys want to keep their Customer Sat scores high, I guess. (I'm starting to feel like one of their Chinese factory workers!)
    2. This server problem is compounded by the fact that it only affects a few random servers
    3. It in turn can lead to problems sending emails which require you to change your Apple Mail password, and in my case surgically remove bad records for various hidden email and library folders. (Good luck with that!)
    So, a problem that they hide, a knock-on set of work that the problem indirectly causes, which they also hide, and a support structure that is geared for hardware, not the services that they are now selling.
    My suggestion is to change your mail password using the web (icloud.com) access to Mail and see if that works. After that, remove and reset up your Apple email (Preferences) and pray that you don't have to join endless telephone answering lines where some of the folks will cut you off because they can't be arsed.
    The two guys that finally helped me were brilliant, knew their stuff and could not have done a better job. The key guy was Danny - if you get him, your golden!

Maybe you are looking for

  • What is the difference between the "sent" and "sent items" folders?

    My email is in the "sent" folder but not the "sent items" folder. How do I know my email has actually been sent? Why are there two folders? Can I just use one? Thanks in advance for any help.

  • I need to know how to reset the security questions

    hello,can someone plz help,i would like to know how to reset my security questions for my apple id?

  • Video File Location

    I have a considerable number of home movies (mp4) on an external hard drive.  I would like to add them to my iTunes library so I can watch them on my ATV.  My question is:  When the title is added to the iTunes library, is the entire video file physi

  • Infinity, well that was a mistake !

    Went for Infinity as I wanted the best internet experience I could get, so went for option 1. Anyway, my usage ramps up by 10GB a day, regarless of whether we use it or not, even when nobody is in and no devices are attached. Due to my high usage (as

  • Shipment cost pricing report - Scaled

    Hi, We created multi dimentional scales for shipment costing. May i know if there are SAP standard reports (like V/LD for pricing) that we can use to view the data along with scales? Thanks Venkat