How do I convert an HSB value  (-180 +180) into 0 - 1

HI there
Im a designer and have been colour shifting some images using flashes HSB filter that uses -180 +180 values. We're designing an iphone app and apparently the HSB used by the sdk requires a figure of between 0 & 1.  Does any body know a way to convert?
many thanks for your help!
Nick

(Value + 180)/360
Adding 180 makes sure the value is between 0 and 360. Dividing by 360 then scales that to the range between 0 and 1. (0/360 = 0 and 360/360 = 1)

Similar Messages

  • How do u convert a numeric value to char

    hi,
    how do u convert a numeric value NUMBER(22) to a character value.... like a to_char() function?
    i've tried the CAST function it won't work.

    Hi,
    Use of CAST function will convert NUMBER to CHAR but it takes a lot of time if there are large number of recrods.
    Syntax:
    CAST(col_name AS char)
    I have tried this, it worked fine for less records.
    Are you getting any error while using cast function or while querying..
    As far as I know it won't give error in these cases (if correct syntax used) but it will take very much time (depending on the number of records) while querying.
    -Vency

  • How do i convert a float value to a double value?

    How do i convert a float value to a double value? HELP PLEASE!! im very stuck!! i gota float data type and i need to convert it to a double data type in order to use it in another operation.....
    thank u so much!

    safe dint realise ppl were so arrogant. thanks for the reply but less of the sarcasm!

  • How can I convert my Open Source document files into Word document files? I cannot download Pages since my Macbook Air does not have the most recent software.

    How can I convert my Open Source document files into Word document files? I cannot download Pages since my Macbook Air does not have the most recent software. I downloaded open office to my mac to try and save money. It worked well for a while. Now I get this pop-up message that asks me to "Reopen" and when I select the option, nothing happens. I cannot save my documents anymore and I cannot convert them to word. Help!

    dwb wrote:
    Does OpenOffice output Word documents by default or do you have to select it manually?
    You have 17 options to save as in Open Office, one of which is .doc  files,  yes it needs to be saved manually.
    You may be able to default to DOC, but have not tried same.
    Since Open Office is 99% same as Word, I use it, or Word, either one.  Open Office is a bit less buggy than Word 11'

  • How can i convert a window media player file into a format playable on ipod

    hey guys can you tell me how can i convert an widdow media player file into a format that can be played on my ipod, i used videora ipod converter but it can't convert the window media player file

    the program you show change wma to mp3, but the mp3 file can't be understanded by the iPod, how can i change a wma file to a format understanded by the Ipod?

  • How do I convert a vcard or Contact group into a textfile?

    how do I convert a vcard or Contact group into a textfile?

    Start to learn about PDF Forms here:
    Acrobat User Community Tutorials

  • How do I convert a very long text message into a multimedia message

    How do I convert a very long text message into a multimedia message

    Well, you didn't mention Mac, but to my knowledge, TouchCopy works on both platforms. And, my understanding of the OP was to send each one individually, whereas WiseJD was referring to selecting them all so you could copy them all and send, rather than emailing each individual piece.
    It wasn't that I thought it was rude, but that it was a complaint about something that someone said a year ago. You did not come here to ask a question, or indicate at all that you were looking for a solution to a similar question. It was just that you came on, slammed a response and left it at that. Those of us that take the time to answer people's questions as volunteers and users just like you. If you spend a great deal of time here, you will see a lot of different types of questions/comments that can get on your nerves. Here is a link for TouchCopy and it does work on both platforms. http://www.wideanglesoftware.com/touchcopy/

  • How do I convert a Pages file (a form) into another programme like Word or InDesign? I do not have Pages

    how do I convert a Pages file (a form) into another programme like Word or InDesign? I do not have Pages

    In OS X Pages '09 v4.3, do not be tempted to File > Save... copy as Word document. Instead, you want to export (or Share as Mail), both the PDF and the Word Documents.
    If you choose Share > Send as Mail > PDF (and/or Word), make sure that in Apple Mail, that your composition window has Send Windows-Friendly Attachments selected. You can enable this from the paper-clip icon on the Mail composition window toolbar.

  • How do I convert analogue 5.1 surround sound into a digital signal? (Pioneer SE-DIR800C headphon

    I understand that my SB Audigy 2 card will only output 5. sound from games through its 3 analogue connectors. How do I convert this analogue signal into a digital one? What hardware do I need to purchase?
    I have read the thread on "Digital Connections, SPDIF and Dolby Digital Info", and also I've thoroughly read the "Creative Speaker Connectivity Guide".
    The reason I ask is that I have just bought a pair of Pioneer SE-DIR800C Surround Sound headphones. This are supposedly fantastic for recreating surround sound on headphones because there is a clever little decoder box. They accept a DTS / Dolby Digital signal via the digital co-axial and optical inputs, and there is a single analogue input which only accepts stereo sound.
    My XBox and PS2 will output true digital 5. sound via an optical cable and I am confident this will work perfectly with these headphones. I'm really looking forward to playing Halo in surround sound! But for gaming on my PC, I'll be limited to just an analogue stereo signal. Well, unless I can find some device that will convert my SoundBlaster's analogue 5. outputs into a digital signal, which I can then plug into the little decoder box for these headphones.
    So, back to my question:
    What hardware do I need to buy to convert an analogue 5. signal (via 6 x RCA or 3 x 3.5mm stereo ) into a true digital signal (via optical or co-axial SP/DIF)? Is it some type of headphone amplifier I need? If possible, please recommend makes & models of equipment.

    Thanks stefan
    OK, basically I have found 3 options for getting digital 5. out of a PC:
    a) Creative DTS-60 (approx $90). This converts the SB's analogue into digital, but it's not available in the UK and it also introduces a noticeable 50ms sound delay. Also, who wants an extra box hanging out of their PC?
    b) Buy a new sound card which has Dolby Digital Li've output. For example, ) BlueGears HDA X Mystique 7., or 2) Turtle Beach Montego DDL, or 3) Terratec Aureon 7. PCI (NOT the Space, FireWire or Uni'verse cards). I couldn't find the first two available in the UK so I have just ordered the Terratec card from Komplett.
    c) Buy a new motherboard that has built-in Dolby Digital Li've output, for example the ABIT Fatalty AA8XE. Unfortunately my PC is only just over year old and I'm not quite ready to replace it.
    I hope this info is useful for people. Maybe Creative will start making a card with DDL output too.Message Edited by NinjaHeretic on 2-22-2005 08:46 AM

  • How do I convert a text, word or photo into a pdf doc?

    How do I convert a text, word or photo to a pdf coc for E-Mail?

    Install Acrobat XI (Standard or Pro).
    Use Acrobat's create PDF feature for supported file formats (TXT, RTF, DOC, DOCX, JPEG, TIFF and others are supported).
    Use the installed Adobe PDF virtual printer to "print" a PDF from any application that can print to an installed printer.
    Be well...

  • How do you convert a swf or mp4 file into flv using creative cloud programs?

    I am trying to embed a video as HTML5 with Flash fallback into my Dreamwaver site and only have the swf file of the video. 
    Please let me know if you have any ideas about how to convert a swf or mp4 file into flv, without loosing pixels and quality of the swf file.
    Thank you!

    If you have MP4 video, you can use Pickle Player which has built-in Flash fallback for Mozilla.  No conversions required .
    http://www.pickleplayer.com/
    Nancy O.

  • How do i convert a Logic 4.7 file into a Logic 7.2?

    I've recorded an album with my old G4 using Logic Pro 4.7 and a Korg 1212 audio interface a few years back.
    Now i've loaded it into my MacBook Pro using Logic Pro 7.2 and the MOTU Traveler. it opens the arrangement but obviously all plugins aren't working because i used the Korg 1212 interface before. Once i change to CoreAudio, all the plugins on that channel strip disappear. I realized that Logic uses AU now but how can i convert the 4.7 songs with the VST plugins into 7.2 songs?
    Would it make sense to open the 4.7 songs with Logic 5.5, then save again and re-open it with 7.2?
    all help is welcome
    17" MacBook Pro Mac OS X (10.4.9)

    Hi,
    I realized that Logic uses AU now but how can i convert the 4.7 songs with > the VST plugins into 7.2 songs?
    You would have to have EVERY VST plugin available also as an AU plugin.And it still probably would not work,because logic is SO different than what it was in version 4.The code for most of it has been optimized for g5 and Intel processors,which weren't around in version 4.That alone will change it too much to just open it up straight away.
    I would open the old version,if possible,on the old logic version,and then render each MIDI into audio,and get the settings for each plugin.Tons o' work,but if you really MUST do this,to me,it's the only way to ensure it plays back the same as before.
    Personally,I like to render each track after a final mix into it's own track,with FX included except for reverbs/delays,as an additional copy of the song.Afterwards,I can playback these copies,all at 0dB on their respective faders,and get a very close facsimile of the mix.I just have to add the reverb and delay effects,and I'm there.
    Cheers

  • How can I convert an array with varying length into a cluster

    Hi,
    I need to convert an array of n elements into a cluster. Usually, it only involves the "Array to Cluster" function. But since the array length is not constant and the number of elements in the function is constant and can not be changed programaticaly, I need to find another way to do that.
    Any ideas?
    Thanks.

    Hi,
    I also tried to do this but without success. I think that's not possible.
    For me it's a general problem using labview. I often wanted to generate standard controls dynamically which is not possible (or I haven't found the solution yet). So I think that's the reason why you can't create a cluster during runtime (the program would have to add controls dynamically to the cluster).
    Do you have an upper limit for your array-size? Although it needs a lot more memory, it would be a possibility to create the cluster with the maximum number of elements.
    If you don't have a maximum, you will have to look for another way, I'm afraid.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • How do I convert an .mp4 h.264 file into a simple Mpeg 2 file...

    I've had Quicktime for quitesometime now.
    I'been been through many QT versions but version 7 series, I think has problems.
    I've been dl'ing .mp4 files, with h.264 codecs.
    Quicktime plays them wonderfully but I'd like to put the movies on my media servers and stream them to my network dvd players(thin-clients).
    They can stream mpeg 1 and 2 great, as well as Xvid, Divx, and even VOBs'.
    I installed Quicktime 7 along time ago, and tried an export to many different data file formats. I would either get no video or no sound. I have just about every codec needed to do any conversion to Divx or Xvid.
    I also installed 3ivx.
    Can anyone tell me how something so simple can be so difficult? QuickTime, if it plays it, and shows that its capable of exporting to different formats, should be able to do the job.
    Beleive me, I know what your thinking. I've going as far as formatting, reinstalling Windows XP Pro, Updating, etc many times just to try to re-encode these .mp4 files into something big, yes, a large RAW file. Something that can be easily converted into anything else such as the basic old Mpg 1 or 2 file...
    Please, any help would be apprecaited!
    NeuroPsyche

    I tried ffmpeg but it just doesn't seem like it does a very good job at converting. I dont know why, but I think its because the .mp4 file has 6.1 sound or that new acc codec.
    I'm not sure about it, but when I do use ffmpeg, the sound doens't come out.
    Thanks!
    Dave.
    QuickTime doesn't have the capability to export to
    MPEG-1 or MPEG-2, at least not without third-party
    codecs (and I'm not aware of any for Windows for
    those formats, though there could be some somewhere).
    You might want to take a look at the open-source ffmpeg which can
    convert H.264 to MPEG-1 and MPEG-2 (as well as a
    number of other formats).
    Hope this helps.

  • How do I convert a Vector to be passed into the session

    Hi I have a vector in a JSP that I need to pass on to a second JSP. I use the following command to do that just as I pass normal other strings:
    session.setAttribute("MyVector",vecData);
    But the follwoing error is been thrown by Tomcat.
    Incompatible type for method. Can't convert void to java.lang.Object.
    out.print(session.setAttribute("ResultsSet",set));
    ^
    I guess I have to convert it explicitly into an object and then how do I do that? could someone please help me fast on this?
    if this doesn't work is there some other way to send this vector to my other page? I am currently sending enough strings using the above method, but for Vectors it doesn't seem to work though I am told that a session object can carry any object unlike the request object that carries only strings. Please help!!!!

    Hi Calin thank you so much for taking ur time to help me with my problem.
    well let me explain my requirement fully in detail. JSP1 has a form on it for the user to fill in. its in the form of a table with multiple rows. say as in entering product details one after the other in an invoice.
    I want each of these rows taken in and passed into JSP2.
    What I do is pack each row of the table into a hashtable using a 'for' loop.
    Then I add each record (within the 'for' loop) to a Vector. After the 'for' loop, outside of it, I set this Vector to the session as :
    session.setAttribute("RecordSet",vecRecordSet);
    Well let me copy paste and extract of the coding from my source which shows what I have done.
    Vector set=new Vector();
    for (int i=0;i<Integer.parseInt(request.getParameter("NoOfRecords"));i++)
    Hashtable Record=new Hashtable();
                   Record.put("ReminderStatus",ReminderStatus);
                   Record.put("CustomerNo",CustomerNo);
                   Record.put("CustomerName",CustomerName);
                   Record.put("Address",address);
                   Record.put("ContractNo",ContractNo);
                   Record.put("MachineID",MachineID);
                   Record.put("ModelNo",ModelNo);
                   Record.put("Description",description);
                   Record.put("SerialNo",SerialNo);
                   Record.put("ContractValue",ContractValue);
                   Record.put("NoOfServices",NoOfServices);
                   Record.put("ContractStartDate",ContractStartDate);
                   Record.put("ContractEndDate",ContractEndDate);               set.add(Record);
         session.setAttribute("ResultsSet",set);//SHERVEEN
    well don't worry about the for loop condition up there cos it works for the main functionality that exists within the for loop. but what seems to go wrong is when I add records to the hashtable and when I pack it to the Vector "set"
    I hope I have not done something wrong as a principle over here.
    And btw the error that I showed u before, is pointed at a row which exists in the file that is generated when compiled. the out.println part is generated in that file during compilation and I don't know why.
    I hope I have given u information for u to make some sense of my requirement and thank u a million once again for ur effort to help me out. I am grateful to all of u.

Maybe you are looking for

  • Downloaded music from store and doesn´t show in the list of purchased items

    Hi everyone! Today I´ve bought a song from the Store and it seemed that I could download it. When I looked for the song in the purchased list, at the beginning it was there in light grey with a circle and two arrows by the song, but I wasn´t able to

  • PIXELATED IMAGES AFTER EXPORT TO IDVD

    Help! I'm confused and frustrated. I have imported 65 images from iPhoto to iMovie and added titles, music and a few transitions. The movie plays fine in iMovie full screen on my 20 inch iMac. After exporting to Idvd project a number of the images (m

  • When I film something the sound isn't recorded... why?

    When I try to film something, the sound isn't recorded only the images. Does anybody know what is the problem? In the begginning it used to record everything but after I don't know what happened and when I play the movie in the top of the screen appe

  • I want to render my stolen ipad useless

    IPAD AIR

  • Production issue with Smart Form

    Hi , Issue is: Data getting poplutated in Dev system but not getting in Production system. we are using standard FM CRM_OUTPUT_SINGLE_READ which contains FM SSF_FIELD_LIST to which our smartform name is passed. FM SSF_FIELD_LIST returns all the globa