Curves in UIScrollView and zoom : how to keep the width ?

Dear all,
I have a very simple issue. I successfully implemented a UIScrollView with a Bezier Curve, and the zoom is also working fine. (I'm also using a CATiledLayer to improve the final render. But it's optional for this issue...)
The point is the following : if I zoom in, the width of the curve will be increased (original width * Zoom). So, to keep a good width at the screen, I reduce dynamically the width (CGContextSetLineWidth(context, 1.0/scale)).
This methods works but... I have the deep feeling that it's not the best solution. Because if I zoom in a lot (like 10x), the curbe became darker (because the width becomes 1/10...)
So, is it possible to keep the width of the Curve of 1px without modifying the width manually ? (like in the bloomberg application, for instance...)
Thanks a lot for your tips !

Since I see that nobody really seems understanding... my question can be summarized by this :
Is it possible to define a curve width zoom independent ?

Similar Messages

  • How to keep the Sonogram settings and make them "Sticky"?

    I am a Forensic Audio Examiner and would love to use Soundtrack Pro. Does anyone know how to keep the Sonogram settings and make them "Sticky" so you don't have to reset it every time you open up the project?
    Also the Sonogram loses it's frequency range settings while changing the zoom.
    Where is the feedback link for this application?
    Thanks

    are you talking about the spectrum analysis?

  • Does Anybody know how to keep the license files and Certificates in ISE-3315 During the upgrade.

    Hi,
    I have two ISE-3315 Appliances in production network.
    I need someone's help to explain, how to make the Secondary node as the primary admin note to reset-config.
    And then I would like to know how to keep the license files and Certificate during the Upgrade.
    Please help me to answer my questions.
    Thanks
    CSCO11872447

    The Cisco Identity Services Engine (ISE) provides distributed  deployment of runtime services with centralized configuration and  management. Multiple nodes can be deployed together in a distributed  fashion to support failover.
    If you register a  secondary Monitoring ISE node, it is recommended that you first back up  the primary Monitoring ISE node and then restore the data to the new  secondary Monitoring ISE node. This ensures that the history of the  primary Monitoring ISE node is in sync with the new secondary node as  new changes are replicated.
    Please  Check the below configuration guide for Secondary ISE- Nodes.
    http://www.cisco.com/en/US/docs/security/ise/1.0/user_guide/ise10_dis_deploy.pdf

  • How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    How can I control the image size when I export form iphoto, the choice is too limited, I need to send a photo under 3 MB but if I choose high quaulity it is only 1.1 and i need to keep the best quaulity I can. Thanks for help.

    Any image can only be as large as the Original. With a program like Photoshop you can UpRes an image and get it to a bigger size, larger files size as well, but the actual quality of the image will be degraded, depending on the UpRes system and the original quality of the image.
    iPhoto is not the program to be doing that in and I don't think it even has that option.
    So I suspect the image you are trying to send isn't much bigger than what you are getting. You can also try Exporting it from iPhoto to yopur desktop and see what size you end up with. If it is still that 209KB +/- file size then that is the size of the original image.

  • How to keep the WBS & Order in account assignment tab of SD contract item?

    Hi Experts,
    If I remove the plant from the shipping tab in the contract item (the contract type is WV), I will be able to enter the WBS or Order in accounting assignment tab. However, if I enter the plant (in order to determine the tax in pricing), the WBS and Order are disappered and there is one new settlement rule button showed up.
    Do you know any configuration could keep the WBS and order in the accounting assigment tab even the plant is there.
    Thanks in advance!
    Norman

    Hi Chandra,
    Thanks for your answer. However, I even added the plant in the WBS, the tax (we use tax jurisdiction) still could not be determined.
    The problem is that SAP changes the account assignment tab screen (it suppresses the WBS and Order fields, but addes settlement rule) with the plant in the shipping tab. Do you know how to keep the same account assignment tab screen with the plant in the shipping tab?
    Thanks,
    Norman

  • How to keep the data entered on a page apex

    how to keep the data entered on a page apex
    so, I've got a registration page then wish go to another page P2 and I return to this P1 without losing data

    Hi,
    As long as the registration page is within the same session, the values will remain in the session until they are specifically cleared out. This can be done by a process on a page - so check if you have a "reset page" process on P1 and, if you do, delete it. This can also be done on a branch - so check the branch that takes you to P2 and see if there is anything entered in the Clear Cache setting and, if it shows *1*, remove that. There are other ways as well, but these are most typical.
    Andy

  • The popup window won't open at a normal size. Any ideas on how to keep the popup window a normal size when opening?

    I recently did the latest update for my MacBook Air and when I use a specific website it won't open the popup blocker at a normal size. Any ideas on how to keep the popup blocker at the size that I select?

    This is a user to user forum and Adobe Staff does drop by.
    First thing to try is Reset the Type Tool by right-clicking on its' icon in the Options bar.
    If you still have problems, it could be related to fonts. Here is a step by step troubleshooting help doc for that.
    Troubleshoot fonts | Photoshop CC 2014, CC, CS6, CS5
    And basic troubleshooting: Photoshop: Basic Troubleshooting steps to fix most issues
    Gene

  • How to keep the Recent Call Record more than a week?

    How to keep the Recent Call Record more than a week? I found the iPhone only can keep the Recent Call Record for only a week.

    I have to disagree with your response with respect. My i phone is limiting me to call going back only 7 days ie today is 29 July and my call log will only go back to 22 July. I have only 40 calls logged for that period. I cannot view up to the 100 you mention. I have included all calls for a single caller as well ie one caller shows 7 so ive counted that as 7 calls. There appears no way to set up to 100 in the settings
    Thanks
    Graham

  • How to keep the first edge coordinate as reference?

    Hi..
    My program is to detect movement of an object using a webcam and Labview 8.5.1.
    I used an IMAQ RAKE with 'top to bottom' scan direction to find the first edge of my object and I want to keep the coordinate of this first edge (X1,Y1). Then when the object moves, the IMAQ RAKE will find the first edge with same scan direction and the coordinates (Xi,Yi) are needed to calculate the distance of the movement (X1-Xi,Y1-Yi). And this calculation is running in real-time.
    My problem is, when the IMAQ RAKE detect the very first edge (X1,Y1), how can I store this as a reference coordinate that I'm going to use in the calculation? Because in my current program, the coordinate will follow the current first edge detection, thus the distance will always be 0.
    Many thanks.
    Message Edited by Amila on 02-25-2009 05:43 PM

    Hi Amila,
    I assume that you are using the output of the function 'first edges'.  Depending on your architecture there are different ways to go about doing this.  From your problem I assume that you are usign a loop with the function on the inside meaning that on the second itteration the result of the first is being overwritten.  My suggestion would be to use a shift register so that the result from the first itteration can be fed back around into the second.
    If you need any help in implementing this please don't hesitate to ask.
    Regards,
    Thomas Clark
    Applications Engineer
    National Instruments UK & Ireland

  • How to keep the highlight when the JTextComponent lose focus?

    I wanted to do some basic copy/cut/paste on the JTextPane from the Menu. But when I selected the menu, the highlight disappeared. How do keep the highlight?
    The only topic I found about this was here:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=214931
    but it appeared intimidating and not exactly what I needed.

    Most javax objects will accept things in <html> tags why don't you try setting them onto the JTextPane (never tried this btw but should be worth a try) using html and the transferring the same syntax to the output email

  • How to keep the current http session after returning from external web site

    Hi,
    When I use the response.sendRedirect api to redirect the web page to the external payment site, after payment and return back to the current application, I found that the current http session is lost.
    How to keep the current http session after returning from external web site?
    Thanks

    You should make your sidebar1 and sidebar2 fixed positioned. Make your content DIV fluid.
    This should help you: http://www.glish.com/css/7.asp

  • How to keep the doucuments in ep

    Hi Experts,
    how to keep the documents in Enterprise portal?
    and this douments will be seen to allthe employees.
    how we will do this?
    Thanks in advance
    Regards,
    Sid

    Hi Sid,
    I'm not sure what your problem is, but maybe you are searching for something like KM.
    KM is Knowledge Management and gives you a highly configurable User Interface to access various document repositories.
    KM is shipped with EP.
    See [this|http://help.sap.com/saphelp_nw70/helpdata/EN/4c/9d953fc405330ee10000000a114084/frameset.htm] link for futher information.
    HTH,
    Carsten

  • How to keep the MB powered on with Lid closed

    How to keep the MB powered on with Lid closed and no monitor connected?

    You can't. And you shouldn't due to heating issues.
    There are however 'hacks' that allow you to bypass
    this.
    http://www.alxsoft.com/mac/sleepless.html
    http://semaja2.net/insomniaxinfo/
    Blackbook C2D   Mac OS X
    (10.4.10)   120Gig, 1Gig, Superdrive.
    This may be true of overheating, but ONLY in the iBooks and very old laptops, if you think about it what is the difference between native clamshell mode (Using the monitor/keyboard etc) and the hacked clamshell mode? does plugging a screen in to the laptop some how create more ventilation :S
    This rumor is really really wrong, and as stated only affected the old machines which were not capable of native clamshell mode, but of course we keep the warnings there because we dont want to be sued if some idiot places it in there laptop bag while rendering a movie.
    PS. If anyone can give me evidence to prove otherwise i will add it to the investigation that im slowly compiling to "bust" this annoying myth

  • How to keep the waveform chart updated when changing states in state machine/

    Hello Everyone,
                           Can anyone please sugest me how to keep the waveform chart updated even if I am changing the states in a state machine??
    I am having analog inputs on the waveform chart...
    Thanks in advance...
    Now on LabVIEW 10.0 on Win7

    hello guys,
                    thanks a lot for the suggestions, here is the attached code... please follow the following steps to run it..
    ONce you hit play,press either Start Main/Cyl UP button on the front panel,
    once you start observing the waveforms, you can press the Cyl_Dwn button on the front panel... You can observe that the state changes to Start Counter state,
    and the waveform chart also stops updating... I would like both the waveform charts to conitnuously show the data even if the state is changed....
    Now on LabVIEW 10.0 on Win7
    Attachments:
    Soda Vending MAchine.vi ‏212 KB

  • How to keep the whole page open during browsing

    I am trying to work out how to keep the whole page open in Safari i.e. the top most line with the Apple logo, file, edit, view etc. whilst browsing.  What is the setting to achieve this ?  Since installing Yosemite my MBP 2011 with SSD is behaving oddly at times. Where is the "back" when in Support Communities or is going into the history tab the only way ?
    thanks

    When in the ASC pages, my method involves opening separate windows.
    So I can go back to the reference page from where I first visited a thread.
    Also, pages open faster at times into a new window instead of a tab. As
    my setup has a bit more display than necessary, a few extra windows are
    easier than a bunch of tabs in one frame that have no point of reference.
    Plus, if I wish to copy/paste or drag into another window, or access extra
    content for the sake of reference, I have that; & may use another browser.
    For some content, different browsers may be a preference. I'm used to more
    than two, and one of three becomes more dedicated to things like web mail.
    There may be some options in launchpad items, such as they are.
    Mission Control can access other hidden windows. There's a short
    cut for Full Screen that when used again, reverts to previous size.
    Not sure if this gets near your question, but thought I'd put it out here anyway.
    edited

Maybe you are looking for

  • Nano error message when trying to Sync

    I have a new 2 G Nano, and tried to Sync to my Itunes library. I downloaded the latest version of Itunes and restarted my computer before plugging it in for the first time. Im running Windows XP Pro. An error message comes up. "Unable to sync. Requir

  • I turned the equalizer off and can't get it to turn back on?

    I turned the equalizer off and can't get it to turn back on?

  • Calling webservice in SAP XI from Servlet

    I have requirment of Calling webservice in SAP XI from Servlet. COuld you provide information of caling simple webservice from servlet

  • Standard Business Content Queries not found

    Hi all As i was installing the business content queries for the CRM Analytics, I have found all the Queires except two queries. When checked in the SAP Help portal i can see these two queries as newly added to the list. But they are not available in

  • Problem downloading Packages at SAP MARKETPLACE.

    Hi SAP Gurus, Need your assistance in downloading an Support Package (SP). When I'm accessing the SP STACK DOWNLOAD, the internet browser that opened in a new separate windows has an error message " Not visible for the logged on user "Not visible for